@bitfab/sdk 0.64.30 → 0.65.1
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/dist/autoTrace.cjs +28 -0
- package/dist/autoTrace.cjs.map +1 -1
- package/dist/autoTrace.d.cts +2 -1
- package/dist/autoTrace.d.ts +2 -1
- package/dist/autoTrace.js +3 -1
- package/dist/{chunk-BTCJ5XGH.js → chunk-4O5APMS4.js} +65 -21
- package/dist/chunk-4O5APMS4.js.map +1 -0
- package/dist/{chunk-5H2UZ2LR.js → chunk-4RU4RZSM.js} +2 -2
- package/dist/chunk-4RU4RZSM.js.map +1 -0
- package/dist/{chunk-N3CG4AHU.js → chunk-7OR34NXC.js} +2 -2
- package/dist/{chunk-GSHCHCB5.js → chunk-LXBV37XY.js} +2 -39
- package/dist/chunk-LXBV37XY.js.map +1 -0
- package/dist/{chunk-IBWW3SP4.js → chunk-P7JUVRYZ.js} +2 -2
- package/dist/{chunk-YWXQM6J3.js → chunk-QRNHRY7F.js} +28 -1
- package/dist/chunk-QRNHRY7F.js.map +1 -0
- package/dist/{chunk-PIMCRSR2.js → chunk-S2EYDTUH.js} +2 -2
- package/dist/{chunk-DARYURT3.js → chunk-SXNYSDXU.js} +2 -2
- package/dist/chunk-SXNYSDXU.js.map +1 -0
- package/dist/{chunk-MN3E2RUU.js → chunk-VS36LW4L.js} +3 -3
- package/dist/{chunk-GLBBZLG2.js → chunk-VYIIDV2D.js} +4 -4
- package/dist/chunk-VYIIDV2D.js.map +1 -0
- package/dist/{http-JI7TADRE.js → http-2R2LUIGH.js} +2 -2
- package/dist/{http-5HVQJKA7.js → http-NWJPWZF5.js} +2 -2
- package/dist/index.cjs +74 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +76 -43
- package/dist/index.d.ts +76 -43
- package/dist/index.js +6 -4
- package/dist/node.cjs +74 -15
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +6 -4
- package/dist/node.js.map +1 -1
- package/dist/{replay-FRGREQBV.js → replay-3GJHADDC.js} +3 -3
- package/dist/{replay-WL7ZJP3A.js → replay-Z5ND6EVB.js} +3 -3
- package/dist/replayCli.js +3 -3
- package/dist/seedCli.js +3 -3
- package/dist/transform/babel.cjs +1 -38
- package/dist/transform/babel.cjs.map +1 -1
- package/dist/transform/babel.js +1 -1
- package/dist/transform/bun.cjs +1 -38
- package/dist/transform/bun.cjs.map +1 -1
- package/dist/transform/bun.js +3 -3
- package/dist/transform/esbuild.cjs +1 -38
- package/dist/transform/esbuild.cjs.map +1 -1
- package/dist/transform/esbuild.js +3 -3
- package/dist/transform/loaderRuntime.cjs +1 -38
- package/dist/transform/loaderRuntime.cjs.map +1 -1
- package/dist/transform/loaderRuntime.js +2 -2
- package/dist/transform/nest.cjs +1 -38
- package/dist/transform/nest.cjs.map +1 -1
- package/dist/transform/nest.js +3 -3
- package/dist/transform/next.cjs +1 -38
- package/dist/transform/next.cjs.map +1 -1
- package/dist/transform/next.js +3 -3
- package/dist/transform/nodeLoader.js +1 -38
- package/dist/transform/nodeLoader.js.map +1 -1
- package/dist/transform/rolldown.cjs +1 -38
- package/dist/transform/rolldown.cjs.map +1 -1
- package/dist/transform/rolldown.js +3 -3
- package/dist/transform/rollup.cjs +1 -38
- package/dist/transform/rollup.cjs.map +1 -1
- package/dist/transform/rollup.js +3 -3
- package/dist/transform/rsbuild.cjs +1 -38
- package/dist/transform/rsbuild.cjs.map +1 -1
- package/dist/transform/rsbuild.js +3 -3
- package/dist/transform/rspack.cjs +1 -38
- package/dist/transform/rspack.cjs.map +1 -1
- package/dist/transform/rspack.js +3 -3
- package/dist/transform/swc.cjs +1 -38
- package/dist/transform/swc.cjs.map +1 -1
- package/dist/transform/swc.js +2 -2
- package/dist/transform/unplugin.cjs +1 -38
- package/dist/transform/unplugin.cjs.map +1 -1
- package/dist/transform/unplugin.js +3 -3
- package/dist/transform/vite.cjs +1 -38
- package/dist/transform/vite.cjs.map +1 -1
- package/dist/transform/vite.js +3 -3
- package/dist/transform/webpack.cjs +1 -38
- package/dist/transform/webpack.cjs.map +1 -1
- package/dist/transform/webpack.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-5H2UZ2LR.js.map +0 -1
- package/dist/chunk-BTCJ5XGH.js.map +0 -1
- package/dist/chunk-DARYURT3.js.map +0 -1
- package/dist/chunk-GLBBZLG2.js.map +0 -1
- package/dist/chunk-GSHCHCB5.js.map +0 -1
- package/dist/chunk-YWXQM6J3.js.map +0 -1
- /package/dist/{chunk-N3CG4AHU.js.map → chunk-7OR34NXC.js.map} +0 -0
- /package/dist/{chunk-IBWW3SP4.js.map → chunk-P7JUVRYZ.js.map} +0 -0
- /package/dist/{chunk-PIMCRSR2.js.map → chunk-S2EYDTUH.js.map} +0 -0
- /package/dist/{chunk-MN3E2RUU.js.map → chunk-VS36LW4L.js.map} +0 -0
- /package/dist/{http-5HVQJKA7.js.map → http-2R2LUIGH.js.map} +0 -0
- /package/dist/{http-JI7TADRE.js.map → http-NWJPWZF5.js.map} +0 -0
- /package/dist/{replay-FRGREQBV.js.map → replay-3GJHADDC.js.map} +0 -0
- /package/dist/{replay-WL7ZJP3A.js.map → replay-Z5ND6EVB.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -22,6 +22,38 @@ type ApprovalFields = {
|
|
|
22
22
|
approvedAt: string | null;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* BAML execution utilities for the Bitfab TypeScript SDK.
|
|
27
|
+
* This module provides functions to execute BAML prompts dynamically on the client side.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Provider definition from the server.
|
|
31
|
+
*/
|
|
32
|
+
interface ProviderDefinition {
|
|
33
|
+
provider: string;
|
|
34
|
+
apiKeyEnv: string;
|
|
35
|
+
models: Array<{
|
|
36
|
+
model: string;
|
|
37
|
+
description: string;
|
|
38
|
+
}>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Result of a BAML function execution with raw collector data.
|
|
42
|
+
*/
|
|
43
|
+
interface BamlExecutionResult {
|
|
44
|
+
/** The parsed result of the function */
|
|
45
|
+
result: unknown;
|
|
46
|
+
/** Raw collector data for the server to parse */
|
|
47
|
+
rawCollector: Record<string, unknown> | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Type for allowed environment variables.
|
|
51
|
+
* Only OPENAI_API_KEY is currently supported.
|
|
52
|
+
*/
|
|
53
|
+
type AllowedEnvVars = {
|
|
54
|
+
OPENAI_API_KEY?: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
25
57
|
/** A node is identified by its workflow key and span name, never its display label. */
|
|
26
58
|
interface ReplayNodeIdentity {
|
|
27
59
|
traceFunctionKey: string;
|
|
@@ -964,66 +996,50 @@ interface SpanTreeResponse {
|
|
|
964
996
|
root: SpanTreeNode;
|
|
965
997
|
}
|
|
966
998
|
|
|
967
|
-
type
|
|
999
|
+
type CategorySummary = {
|
|
968
1000
|
id: string;
|
|
969
1001
|
title: string;
|
|
970
1002
|
description: string;
|
|
971
1003
|
};
|
|
972
|
-
type
|
|
1004
|
+
type Category = CategorySummary & {
|
|
973
1005
|
organizationId: string;
|
|
974
1006
|
createdAt: string;
|
|
975
1007
|
updatedAt: string;
|
|
976
1008
|
};
|
|
977
|
-
type
|
|
1009
|
+
type SaveCategoryParams = {
|
|
978
1010
|
id?: string;
|
|
979
1011
|
title: string;
|
|
980
1012
|
description?: string;
|
|
981
1013
|
};
|
|
982
|
-
/**
|
|
983
|
-
|
|
1014
|
+
/** @deprecated Use {@link CategorySummary}. Same shape. */
|
|
1015
|
+
type AssertionCategorySummary = CategorySummary;
|
|
1016
|
+
/** @deprecated Use {@link Category}. Same shape. */
|
|
1017
|
+
type AssertionCategory = Category;
|
|
1018
|
+
/** @deprecated Use {@link SaveCategoryParams}. Same shape. */
|
|
1019
|
+
type SaveAssertionCategoryParams = SaveCategoryParams;
|
|
1020
|
+
/** Organization-scoped groupings for assertions and scenarios. */
|
|
1021
|
+
declare class CategoriesClient {
|
|
984
1022
|
private readonly httpClient;
|
|
985
1023
|
constructor(httpClient: HttpClient);
|
|
986
1024
|
/** Create a category, or update it by ID. Omitted descriptions are preserved. */
|
|
987
|
-
save(params:
|
|
1025
|
+
save(params: SaveCategoryParams): Promise<Category>;
|
|
988
1026
|
/** Read one category in the API key's organization. */
|
|
989
|
-
get(id: string): Promise<
|
|
1027
|
+
get(id: string): Promise<Category>;
|
|
990
1028
|
/** List the organization's categories ordered by title. */
|
|
991
|
-
list(): Promise<
|
|
1029
|
+
list(): Promise<Category[]>;
|
|
992
1030
|
/** Delete a category and clear its assignments, preserving assertions and verdicts. */
|
|
993
|
-
delete(id: string): Promise<
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
/**
|
|
997
|
-
* BAML execution utilities for the Bitfab TypeScript SDK.
|
|
998
|
-
* This module provides functions to execute BAML prompts dynamically on the client side.
|
|
999
|
-
*/
|
|
1000
|
-
/**
|
|
1001
|
-
* Provider definition from the server.
|
|
1002
|
-
*/
|
|
1003
|
-
interface ProviderDefinition {
|
|
1004
|
-
provider: string;
|
|
1005
|
-
apiKeyEnv: string;
|
|
1006
|
-
models: Array<{
|
|
1007
|
-
model: string;
|
|
1008
|
-
description: string;
|
|
1009
|
-
}>;
|
|
1031
|
+
delete(id: string): Promise<Category>;
|
|
1010
1032
|
}
|
|
1011
1033
|
/**
|
|
1012
|
-
*
|
|
1034
|
+
* @deprecated Use {@link CategoriesClient}. Same class.
|
|
1035
|
+
* @alias
|
|
1013
1036
|
*/
|
|
1014
|
-
|
|
1015
|
-
/** The parsed result of the function */
|
|
1016
|
-
result: unknown;
|
|
1017
|
-
/** Raw collector data for the server to parse */
|
|
1018
|
-
rawCollector: Record<string, unknown> | null;
|
|
1019
|
-
}
|
|
1037
|
+
declare const AssertionCategoriesClient: typeof CategoriesClient;
|
|
1020
1038
|
/**
|
|
1021
|
-
*
|
|
1022
|
-
*
|
|
1039
|
+
* @deprecated Use {@link CategoriesClient}. Same class.
|
|
1040
|
+
* @alias
|
|
1023
1041
|
*/
|
|
1024
|
-
type
|
|
1025
|
-
OPENAI_API_KEY?: string;
|
|
1026
|
-
};
|
|
1042
|
+
type AssertionCategoriesClient = CategoriesClient;
|
|
1027
1043
|
|
|
1028
1044
|
/**
|
|
1029
1045
|
* Claude Agent SDK handler for Bitfab tracing.
|
|
@@ -1528,7 +1544,7 @@ type ExperimentTotals = {
|
|
|
1528
1544
|
skipped: number;
|
|
1529
1545
|
};
|
|
1530
1546
|
type ExperimentCategoryTally = {
|
|
1531
|
-
category:
|
|
1547
|
+
category: CategorySummary;
|
|
1532
1548
|
labels: ExperimentTally;
|
|
1533
1549
|
};
|
|
1534
1550
|
type ExperimentJitter = {
|
|
@@ -1610,8 +1626,10 @@ type TraceAssertion = {
|
|
|
1610
1626
|
traceId: string;
|
|
1611
1627
|
assertion: string;
|
|
1612
1628
|
humanNote: string | null;
|
|
1629
|
+
category_id: string | null;
|
|
1630
|
+
/** @deprecated Use {@link category_id}. Same value. */
|
|
1613
1631
|
category_assertion_id: string | null;
|
|
1614
|
-
category:
|
|
1632
|
+
category: CategorySummary | null;
|
|
1615
1633
|
passCriteria: string | null;
|
|
1616
1634
|
failCriteria: string | null;
|
|
1617
1635
|
targetOnEvaluatedTrace: TraceTarget | null;
|
|
@@ -1640,6 +1658,8 @@ type AssertionLabelEvidence = {
|
|
|
1640
1658
|
};
|
|
1641
1659
|
type SaveAssertion = {
|
|
1642
1660
|
/** Omit to preserve the category, or pass null to clear it. */
|
|
1661
|
+
category_id?: string | null;
|
|
1662
|
+
/** @deprecated Use {@link category_id}. Ignored when `category_id` is also set. */
|
|
1643
1663
|
category_assertion_id?: string | null;
|
|
1644
1664
|
id?: string;
|
|
1645
1665
|
assertion: string;
|
|
@@ -1653,7 +1673,7 @@ type SaveAssertion = {
|
|
|
1653
1673
|
*/
|
|
1654
1674
|
justification?: Justification | null;
|
|
1655
1675
|
/**
|
|
1656
|
-
* Why `
|
|
1676
|
+
* Why `category_id` is the right category. Changing the category
|
|
1657
1677
|
* clears it. Omit on an edit to preserve it.
|
|
1658
1678
|
*/
|
|
1659
1679
|
categoryJustification?: Justification | null;
|
|
@@ -1757,6 +1777,8 @@ type Scenario = {
|
|
|
1757
1777
|
dataSummary: string;
|
|
1758
1778
|
/** What the run actually did, or null when none has been saved. */
|
|
1759
1779
|
actualOutcome: ScenarioActualOutcome | null;
|
|
1780
|
+
/** Every category the scenario is filed under, sorted by title. */
|
|
1781
|
+
categories: CategorySummary[];
|
|
1760
1782
|
};
|
|
1761
1783
|
type SaveScenarioHistoryEntry = Omit<ScenarioHistoryEntry, "source"> & {
|
|
1762
1784
|
source?: ScenarioSource | null;
|
|
@@ -1786,6 +1808,12 @@ type SaveScenarioParams = {
|
|
|
1786
1808
|
* Sending only this field, null included, is a valid save.
|
|
1787
1809
|
*/
|
|
1788
1810
|
actualOutcome?: SaveScenarioActualOutcome | null;
|
|
1811
|
+
/**
|
|
1812
|
+
* Categories to file the scenario under. Replaces the whole set. Leave it
|
|
1813
|
+
* out to keep the current set, or pass an empty array to clear it. An id
|
|
1814
|
+
* outside the organization fails the save.
|
|
1815
|
+
*/
|
|
1816
|
+
categoryIds?: string[];
|
|
1789
1817
|
} & ({
|
|
1790
1818
|
data?: SaveScenarioData;
|
|
1791
1819
|
appendData?: never;
|
|
@@ -1804,6 +1832,8 @@ type SaveScenarioParams = {
|
|
|
1804
1832
|
appendData: ScenarioDataAppend;
|
|
1805
1833
|
} | {
|
|
1806
1834
|
actualOutcome: SaveScenarioActualOutcome | null;
|
|
1835
|
+
} | {
|
|
1836
|
+
categoryIds: string[];
|
|
1807
1837
|
});
|
|
1808
1838
|
type AssertionGenerationStatus = "running" | "completed" | "failed";
|
|
1809
1839
|
type AssertionGeneration = {
|
|
@@ -3537,7 +3567,10 @@ declare class Bitfab {
|
|
|
3537
3567
|
private readonly httpClient;
|
|
3538
3568
|
/** Dataset operations for the authenticated organization. */
|
|
3539
3569
|
readonly datasets: DatasetsClient;
|
|
3540
|
-
|
|
3570
|
+
/** Organization-scoped groupings for assertions and scenarios. */
|
|
3571
|
+
readonly categories: CategoriesClient;
|
|
3572
|
+
/** @deprecated Use {@link categories}. Same client. */
|
|
3573
|
+
readonly assertionCategories: CategoriesClient;
|
|
3541
3574
|
readonly organizationMembers: OrganizationMembersClient;
|
|
3542
3575
|
readonly traces: TracesClient;
|
|
3543
3576
|
readonly spans: SpansClient;
|
|
@@ -4251,7 +4284,7 @@ interface CommitRef {
|
|
|
4251
4284
|
/**
|
|
4252
4285
|
* SDK version from package.json (injected at build time)
|
|
4253
4286
|
*/
|
|
4254
|
-
declare const __version__ = "0.
|
|
4287
|
+
declare const __version__ = "0.65.1";
|
|
4255
4288
|
|
|
4256
4289
|
/**
|
|
4257
4290
|
* Constants for the Bitfab SDK.
|
|
@@ -4390,4 +4423,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
4390
4423
|
run?: boolean;
|
|
4391
4424
|
}): Promise<SeedResult>;
|
|
4392
4425
|
|
|
4393
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionVerdict, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
|
4426
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionVerdict, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,38 @@ type ApprovalFields = {
|
|
|
22
22
|
approvedAt: string | null;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* BAML execution utilities for the Bitfab TypeScript SDK.
|
|
27
|
+
* This module provides functions to execute BAML prompts dynamically on the client side.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Provider definition from the server.
|
|
31
|
+
*/
|
|
32
|
+
interface ProviderDefinition {
|
|
33
|
+
provider: string;
|
|
34
|
+
apiKeyEnv: string;
|
|
35
|
+
models: Array<{
|
|
36
|
+
model: string;
|
|
37
|
+
description: string;
|
|
38
|
+
}>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Result of a BAML function execution with raw collector data.
|
|
42
|
+
*/
|
|
43
|
+
interface BamlExecutionResult {
|
|
44
|
+
/** The parsed result of the function */
|
|
45
|
+
result: unknown;
|
|
46
|
+
/** Raw collector data for the server to parse */
|
|
47
|
+
rawCollector: Record<string, unknown> | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Type for allowed environment variables.
|
|
51
|
+
* Only OPENAI_API_KEY is currently supported.
|
|
52
|
+
*/
|
|
53
|
+
type AllowedEnvVars = {
|
|
54
|
+
OPENAI_API_KEY?: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
25
57
|
/** A node is identified by its workflow key and span name, never its display label. */
|
|
26
58
|
interface ReplayNodeIdentity {
|
|
27
59
|
traceFunctionKey: string;
|
|
@@ -964,66 +996,50 @@ interface SpanTreeResponse {
|
|
|
964
996
|
root: SpanTreeNode;
|
|
965
997
|
}
|
|
966
998
|
|
|
967
|
-
type
|
|
999
|
+
type CategorySummary = {
|
|
968
1000
|
id: string;
|
|
969
1001
|
title: string;
|
|
970
1002
|
description: string;
|
|
971
1003
|
};
|
|
972
|
-
type
|
|
1004
|
+
type Category = CategorySummary & {
|
|
973
1005
|
organizationId: string;
|
|
974
1006
|
createdAt: string;
|
|
975
1007
|
updatedAt: string;
|
|
976
1008
|
};
|
|
977
|
-
type
|
|
1009
|
+
type SaveCategoryParams = {
|
|
978
1010
|
id?: string;
|
|
979
1011
|
title: string;
|
|
980
1012
|
description?: string;
|
|
981
1013
|
};
|
|
982
|
-
/**
|
|
983
|
-
|
|
1014
|
+
/** @deprecated Use {@link CategorySummary}. Same shape. */
|
|
1015
|
+
type AssertionCategorySummary = CategorySummary;
|
|
1016
|
+
/** @deprecated Use {@link Category}. Same shape. */
|
|
1017
|
+
type AssertionCategory = Category;
|
|
1018
|
+
/** @deprecated Use {@link SaveCategoryParams}. Same shape. */
|
|
1019
|
+
type SaveAssertionCategoryParams = SaveCategoryParams;
|
|
1020
|
+
/** Organization-scoped groupings for assertions and scenarios. */
|
|
1021
|
+
declare class CategoriesClient {
|
|
984
1022
|
private readonly httpClient;
|
|
985
1023
|
constructor(httpClient: HttpClient);
|
|
986
1024
|
/** Create a category, or update it by ID. Omitted descriptions are preserved. */
|
|
987
|
-
save(params:
|
|
1025
|
+
save(params: SaveCategoryParams): Promise<Category>;
|
|
988
1026
|
/** Read one category in the API key's organization. */
|
|
989
|
-
get(id: string): Promise<
|
|
1027
|
+
get(id: string): Promise<Category>;
|
|
990
1028
|
/** List the organization's categories ordered by title. */
|
|
991
|
-
list(): Promise<
|
|
1029
|
+
list(): Promise<Category[]>;
|
|
992
1030
|
/** Delete a category and clear its assignments, preserving assertions and verdicts. */
|
|
993
|
-
delete(id: string): Promise<
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
/**
|
|
997
|
-
* BAML execution utilities for the Bitfab TypeScript SDK.
|
|
998
|
-
* This module provides functions to execute BAML prompts dynamically on the client side.
|
|
999
|
-
*/
|
|
1000
|
-
/**
|
|
1001
|
-
* Provider definition from the server.
|
|
1002
|
-
*/
|
|
1003
|
-
interface ProviderDefinition {
|
|
1004
|
-
provider: string;
|
|
1005
|
-
apiKeyEnv: string;
|
|
1006
|
-
models: Array<{
|
|
1007
|
-
model: string;
|
|
1008
|
-
description: string;
|
|
1009
|
-
}>;
|
|
1031
|
+
delete(id: string): Promise<Category>;
|
|
1010
1032
|
}
|
|
1011
1033
|
/**
|
|
1012
|
-
*
|
|
1034
|
+
* @deprecated Use {@link CategoriesClient}. Same class.
|
|
1035
|
+
* @alias
|
|
1013
1036
|
*/
|
|
1014
|
-
|
|
1015
|
-
/** The parsed result of the function */
|
|
1016
|
-
result: unknown;
|
|
1017
|
-
/** Raw collector data for the server to parse */
|
|
1018
|
-
rawCollector: Record<string, unknown> | null;
|
|
1019
|
-
}
|
|
1037
|
+
declare const AssertionCategoriesClient: typeof CategoriesClient;
|
|
1020
1038
|
/**
|
|
1021
|
-
*
|
|
1022
|
-
*
|
|
1039
|
+
* @deprecated Use {@link CategoriesClient}. Same class.
|
|
1040
|
+
* @alias
|
|
1023
1041
|
*/
|
|
1024
|
-
type
|
|
1025
|
-
OPENAI_API_KEY?: string;
|
|
1026
|
-
};
|
|
1042
|
+
type AssertionCategoriesClient = CategoriesClient;
|
|
1027
1043
|
|
|
1028
1044
|
/**
|
|
1029
1045
|
* Claude Agent SDK handler for Bitfab tracing.
|
|
@@ -1528,7 +1544,7 @@ type ExperimentTotals = {
|
|
|
1528
1544
|
skipped: number;
|
|
1529
1545
|
};
|
|
1530
1546
|
type ExperimentCategoryTally = {
|
|
1531
|
-
category:
|
|
1547
|
+
category: CategorySummary;
|
|
1532
1548
|
labels: ExperimentTally;
|
|
1533
1549
|
};
|
|
1534
1550
|
type ExperimentJitter = {
|
|
@@ -1610,8 +1626,10 @@ type TraceAssertion = {
|
|
|
1610
1626
|
traceId: string;
|
|
1611
1627
|
assertion: string;
|
|
1612
1628
|
humanNote: string | null;
|
|
1629
|
+
category_id: string | null;
|
|
1630
|
+
/** @deprecated Use {@link category_id}. Same value. */
|
|
1613
1631
|
category_assertion_id: string | null;
|
|
1614
|
-
category:
|
|
1632
|
+
category: CategorySummary | null;
|
|
1615
1633
|
passCriteria: string | null;
|
|
1616
1634
|
failCriteria: string | null;
|
|
1617
1635
|
targetOnEvaluatedTrace: TraceTarget | null;
|
|
@@ -1640,6 +1658,8 @@ type AssertionLabelEvidence = {
|
|
|
1640
1658
|
};
|
|
1641
1659
|
type SaveAssertion = {
|
|
1642
1660
|
/** Omit to preserve the category, or pass null to clear it. */
|
|
1661
|
+
category_id?: string | null;
|
|
1662
|
+
/** @deprecated Use {@link category_id}. Ignored when `category_id` is also set. */
|
|
1643
1663
|
category_assertion_id?: string | null;
|
|
1644
1664
|
id?: string;
|
|
1645
1665
|
assertion: string;
|
|
@@ -1653,7 +1673,7 @@ type SaveAssertion = {
|
|
|
1653
1673
|
*/
|
|
1654
1674
|
justification?: Justification | null;
|
|
1655
1675
|
/**
|
|
1656
|
-
* Why `
|
|
1676
|
+
* Why `category_id` is the right category. Changing the category
|
|
1657
1677
|
* clears it. Omit on an edit to preserve it.
|
|
1658
1678
|
*/
|
|
1659
1679
|
categoryJustification?: Justification | null;
|
|
@@ -1757,6 +1777,8 @@ type Scenario = {
|
|
|
1757
1777
|
dataSummary: string;
|
|
1758
1778
|
/** What the run actually did, or null when none has been saved. */
|
|
1759
1779
|
actualOutcome: ScenarioActualOutcome | null;
|
|
1780
|
+
/** Every category the scenario is filed under, sorted by title. */
|
|
1781
|
+
categories: CategorySummary[];
|
|
1760
1782
|
};
|
|
1761
1783
|
type SaveScenarioHistoryEntry = Omit<ScenarioHistoryEntry, "source"> & {
|
|
1762
1784
|
source?: ScenarioSource | null;
|
|
@@ -1786,6 +1808,12 @@ type SaveScenarioParams = {
|
|
|
1786
1808
|
* Sending only this field, null included, is a valid save.
|
|
1787
1809
|
*/
|
|
1788
1810
|
actualOutcome?: SaveScenarioActualOutcome | null;
|
|
1811
|
+
/**
|
|
1812
|
+
* Categories to file the scenario under. Replaces the whole set. Leave it
|
|
1813
|
+
* out to keep the current set, or pass an empty array to clear it. An id
|
|
1814
|
+
* outside the organization fails the save.
|
|
1815
|
+
*/
|
|
1816
|
+
categoryIds?: string[];
|
|
1789
1817
|
} & ({
|
|
1790
1818
|
data?: SaveScenarioData;
|
|
1791
1819
|
appendData?: never;
|
|
@@ -1804,6 +1832,8 @@ type SaveScenarioParams = {
|
|
|
1804
1832
|
appendData: ScenarioDataAppend;
|
|
1805
1833
|
} | {
|
|
1806
1834
|
actualOutcome: SaveScenarioActualOutcome | null;
|
|
1835
|
+
} | {
|
|
1836
|
+
categoryIds: string[];
|
|
1807
1837
|
});
|
|
1808
1838
|
type AssertionGenerationStatus = "running" | "completed" | "failed";
|
|
1809
1839
|
type AssertionGeneration = {
|
|
@@ -3537,7 +3567,10 @@ declare class Bitfab {
|
|
|
3537
3567
|
private readonly httpClient;
|
|
3538
3568
|
/** Dataset operations for the authenticated organization. */
|
|
3539
3569
|
readonly datasets: DatasetsClient;
|
|
3540
|
-
|
|
3570
|
+
/** Organization-scoped groupings for assertions and scenarios. */
|
|
3571
|
+
readonly categories: CategoriesClient;
|
|
3572
|
+
/** @deprecated Use {@link categories}. Same client. */
|
|
3573
|
+
readonly assertionCategories: CategoriesClient;
|
|
3541
3574
|
readonly organizationMembers: OrganizationMembersClient;
|
|
3542
3575
|
readonly traces: TracesClient;
|
|
3543
3576
|
readonly spans: SpansClient;
|
|
@@ -4251,7 +4284,7 @@ interface CommitRef {
|
|
|
4251
4284
|
/**
|
|
4252
4285
|
* SDK version from package.json (injected at build time)
|
|
4253
4286
|
*/
|
|
4254
|
-
declare const __version__ = "0.
|
|
4287
|
+
declare const __version__ = "0.65.1";
|
|
4255
4288
|
|
|
4256
4289
|
/**
|
|
4257
4290
|
* Constants for the Bitfab SDK.
|
|
@@ -4390,4 +4423,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
4390
4423
|
run?: boolean;
|
|
4391
4424
|
}): Promise<SeedResult>;
|
|
4392
4425
|
|
|
4393
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionVerdict, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
|
4426
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionVerdict, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
BitfabOpenAITracingProcessor,
|
|
12
12
|
BitfabRivetIntegration,
|
|
13
13
|
BitfabVercelAiHandler,
|
|
14
|
+
CategoriesClient,
|
|
14
15
|
DatasetsClient,
|
|
15
16
|
ExperimentsClient,
|
|
16
17
|
GraderRerunError,
|
|
@@ -28,8 +29,8 @@ import {
|
|
|
28
29
|
getCurrentTrace,
|
|
29
30
|
reseedFromRegistry,
|
|
30
31
|
seedFromRegistry
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-4O5APMS4.js";
|
|
33
|
+
import "./chunk-QRNHRY7F.js";
|
|
33
34
|
import {
|
|
34
35
|
BITFAB_PROGRESS_PREFIX,
|
|
35
36
|
DbBranchReplayError,
|
|
@@ -37,7 +38,7 @@ import {
|
|
|
37
38
|
ReplayError,
|
|
38
39
|
reportReplayProgress,
|
|
39
40
|
serializeReplayResult
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-S2EYDTUH.js";
|
|
41
42
|
import {
|
|
42
43
|
BitfabError,
|
|
43
44
|
DEFAULT_SERVICE_URL,
|
|
@@ -45,7 +46,7 @@ import {
|
|
|
45
46
|
MixedTracingError,
|
|
46
47
|
__version__,
|
|
47
48
|
flushTraces
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-SXNYSDXU.js";
|
|
49
50
|
import "./chunk-MT36GJMW.js";
|
|
50
51
|
export {
|
|
51
52
|
AssertionCategoriesClient,
|
|
@@ -63,6 +64,7 @@ export {
|
|
|
63
64
|
BitfabOpenAITracingProcessor,
|
|
64
65
|
BitfabRivetIntegration,
|
|
65
66
|
BitfabVercelAiHandler,
|
|
67
|
+
CategoriesClient,
|
|
66
68
|
DEFAULT_SERVICE_URL,
|
|
67
69
|
DatasetsClient,
|
|
68
70
|
DbBranchReplayError,
|