bitfab 0.54.4 → 0.54.6

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/index.d.cts CHANGED
@@ -836,68 +836,6 @@ declare class AssertionCategoriesClient {
836
836
  delete(id: string): Promise<AssertionCategory>;
837
837
  }
838
838
 
839
- type TraceTargetOccurrence = "first" | "last" | number;
840
- type TraceTarget = {
841
- kind: "output";
842
- } | {
843
- kind: "span";
844
- name: string;
845
- occurrence?: TraceTargetOccurrence;
846
- };
847
- type TraceAssertionSource = "human" | "agent";
848
- type TraceAssertion = {
849
- id: string;
850
- traceId: string;
851
- assertion: string;
852
- humanNote: string | null;
853
- category_assertion_id: string | null;
854
- category: AssertionCategorySummary | null;
855
- passCriteria: string | null;
856
- failCriteria: string | null;
857
- targetOnEvaluatedTrace: TraceTarget | null;
858
- source: TraceAssertionSource;
859
- createdAt: string;
860
- updatedAt: string;
861
- };
862
- type SaveAssertion = {
863
- /** Omit to preserve the category, or pass null to clear it. */
864
- category_assertion_id?: string | null;
865
- id?: string;
866
- assertion: string;
867
- passCriteria?: string | null;
868
- failCriteria?: string | null;
869
- targetOnEvaluatedTrace?: TraceTarget | null;
870
- };
871
- type TraceAssertionsResult = {
872
- assertions: TraceAssertion[];
873
- inheritedFrom: string | null;
874
- };
875
- type TraceAssertionsUpdate = {
876
- traceId: string;
877
- assertions: SaveAssertion[];
878
- };
879
- type SaveAssertionsParams = {
880
- traceId: string;
881
- assertions: SaveAssertion[];
882
- source?: TraceAssertionSource;
883
- };
884
- type SaveAssertionsAllParams = {
885
- updates: TraceAssertionsUpdate[];
886
- source?: TraceAssertionSource;
887
- };
888
- type ArchiveAssertionsParams = {
889
- traceId: string;
890
- assertionIds: string[];
891
- };
892
- declare class TracesClient {
893
- private readonly httpClient;
894
- constructor(httpClient: HttpClient);
895
- getAssertions(traceId: string): Promise<TraceAssertionsResult>;
896
- saveAssertions(params: SaveAssertionsParams): Promise<TraceAssertion[]>;
897
- saveAssertionsAll(params: SaveAssertionsAllParams): Promise<TraceAssertion[]>;
898
- archiveAssertions(params: ArchiveAssertionsParams): Promise<string[]>;
899
- }
900
-
901
839
  /**
902
840
  * BAML execution utilities for the Bitfab TypeScript SDK.
903
841
  * This module provides functions to execute BAML prompts dynamically on the client side.
@@ -2231,6 +2169,97 @@ declare class ReplayBranch implements Omit<DbBranchLease, "databaseUrl"> {
2231
2169
  get databaseUrl(): string;
2232
2170
  }
2233
2171
 
2172
+ type TraceTargetOccurrence = "first" | "last" | number;
2173
+ type TraceTarget = {
2174
+ kind: "output";
2175
+ } | {
2176
+ kind: "span";
2177
+ name: string;
2178
+ occurrence?: TraceTargetOccurrence;
2179
+ };
2180
+ type TraceAssertionSource = "human" | "agent";
2181
+ type TraceSearchFilters = {
2182
+ callerMetadata?: Record<string, string>;
2183
+ name?: string;
2184
+ nameContains?: string;
2185
+ };
2186
+ type TraceSearchParams = TraceSearchFilters & ({
2187
+ callerMetadata: Record<string, string>;
2188
+ } | {
2189
+ name: string;
2190
+ } | {
2191
+ nameContains: string;
2192
+ }) & {
2193
+ traceFunctionKey?: string;
2194
+ cursor?: string | null;
2195
+ limit?: number;
2196
+ };
2197
+ type TraceSearchResult = {
2198
+ traces: Array<{
2199
+ id: string;
2200
+ traceFunctionKey: string | null;
2201
+ name: string | null;
2202
+ status: "pending" | "completed" | "failed" | "dropped";
2203
+ createdAt: string;
2204
+ callerMetadata: Record<string, string>;
2205
+ }>;
2206
+ nextCursor: string | null;
2207
+ hasMore: boolean;
2208
+ };
2209
+ type TraceAssertion = {
2210
+ id: string;
2211
+ traceId: string;
2212
+ assertion: string;
2213
+ humanNote: string | null;
2214
+ category_assertion_id: string | null;
2215
+ category: AssertionCategorySummary | null;
2216
+ passCriteria: string | null;
2217
+ failCriteria: string | null;
2218
+ targetOnEvaluatedTrace: TraceTarget | null;
2219
+ source: TraceAssertionSource;
2220
+ createdAt: string;
2221
+ updatedAt: string;
2222
+ };
2223
+ type SaveAssertion = {
2224
+ /** Omit to preserve the category, or pass null to clear it. */
2225
+ category_assertion_id?: string | null;
2226
+ id?: string;
2227
+ assertion: string;
2228
+ passCriteria?: string | null;
2229
+ failCriteria?: string | null;
2230
+ targetOnEvaluatedTrace?: TraceTarget | null;
2231
+ };
2232
+ type TraceAssertionsResult = {
2233
+ assertions: TraceAssertion[];
2234
+ inheritedFrom: string | null;
2235
+ };
2236
+ type TraceAssertionsUpdate = {
2237
+ traceId: string;
2238
+ assertions: SaveAssertion[];
2239
+ };
2240
+ type SaveAssertionsParams = {
2241
+ traceId: string;
2242
+ assertions: SaveAssertion[];
2243
+ source?: TraceAssertionSource;
2244
+ };
2245
+ type SaveAssertionsAllParams = {
2246
+ updates: TraceAssertionsUpdate[];
2247
+ source?: TraceAssertionSource;
2248
+ };
2249
+ type ArchiveAssertionsParams = {
2250
+ traceId: string;
2251
+ assertionIds: string[];
2252
+ };
2253
+ declare class TracesClient {
2254
+ private readonly httpClient;
2255
+ constructor(httpClient: HttpClient);
2256
+ search(params: TraceSearchParams): Promise<TraceSearchResult>;
2257
+ getAssertions(traceId: string): Promise<TraceAssertionsResult>;
2258
+ saveAssertions(params: SaveAssertionsParams): Promise<TraceAssertion[]>;
2259
+ saveAssertionsAll(params: SaveAssertionsAllParams): Promise<TraceAssertion[]>;
2260
+ archiveAssertions(params: ArchiveAssertionsParams): Promise<string[]>;
2261
+ }
2262
+
2234
2263
  /**
2235
2264
  * Tracing utilities for external trace submission to Bitfab.
2236
2265
  *
@@ -3391,7 +3420,7 @@ interface CommitRef {
3391
3420
  /**
3392
3421
  * SDK version from package.json (injected at build time)
3393
3422
  */
3394
- declare const __version__ = "0.54.4";
3423
+ declare const __version__ = "0.54.6";
3395
3424
 
3396
3425
  /**
3397
3426
  * Constants for the Bitfab SDK.
@@ -3530,4 +3559,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
3530
3559
  run?: boolean;
3531
3560
  }): Promise<SeedResult>;
3532
3561
 
3533
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, 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 GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, 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, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
3562
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, 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 GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, 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, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
package/dist/index.d.ts CHANGED
@@ -836,68 +836,6 @@ declare class AssertionCategoriesClient {
836
836
  delete(id: string): Promise<AssertionCategory>;
837
837
  }
838
838
 
839
- type TraceTargetOccurrence = "first" | "last" | number;
840
- type TraceTarget = {
841
- kind: "output";
842
- } | {
843
- kind: "span";
844
- name: string;
845
- occurrence?: TraceTargetOccurrence;
846
- };
847
- type TraceAssertionSource = "human" | "agent";
848
- type TraceAssertion = {
849
- id: string;
850
- traceId: string;
851
- assertion: string;
852
- humanNote: string | null;
853
- category_assertion_id: string | null;
854
- category: AssertionCategorySummary | null;
855
- passCriteria: string | null;
856
- failCriteria: string | null;
857
- targetOnEvaluatedTrace: TraceTarget | null;
858
- source: TraceAssertionSource;
859
- createdAt: string;
860
- updatedAt: string;
861
- };
862
- type SaveAssertion = {
863
- /** Omit to preserve the category, or pass null to clear it. */
864
- category_assertion_id?: string | null;
865
- id?: string;
866
- assertion: string;
867
- passCriteria?: string | null;
868
- failCriteria?: string | null;
869
- targetOnEvaluatedTrace?: TraceTarget | null;
870
- };
871
- type TraceAssertionsResult = {
872
- assertions: TraceAssertion[];
873
- inheritedFrom: string | null;
874
- };
875
- type TraceAssertionsUpdate = {
876
- traceId: string;
877
- assertions: SaveAssertion[];
878
- };
879
- type SaveAssertionsParams = {
880
- traceId: string;
881
- assertions: SaveAssertion[];
882
- source?: TraceAssertionSource;
883
- };
884
- type SaveAssertionsAllParams = {
885
- updates: TraceAssertionsUpdate[];
886
- source?: TraceAssertionSource;
887
- };
888
- type ArchiveAssertionsParams = {
889
- traceId: string;
890
- assertionIds: string[];
891
- };
892
- declare class TracesClient {
893
- private readonly httpClient;
894
- constructor(httpClient: HttpClient);
895
- getAssertions(traceId: string): Promise<TraceAssertionsResult>;
896
- saveAssertions(params: SaveAssertionsParams): Promise<TraceAssertion[]>;
897
- saveAssertionsAll(params: SaveAssertionsAllParams): Promise<TraceAssertion[]>;
898
- archiveAssertions(params: ArchiveAssertionsParams): Promise<string[]>;
899
- }
900
-
901
839
  /**
902
840
  * BAML execution utilities for the Bitfab TypeScript SDK.
903
841
  * This module provides functions to execute BAML prompts dynamically on the client side.
@@ -2231,6 +2169,97 @@ declare class ReplayBranch implements Omit<DbBranchLease, "databaseUrl"> {
2231
2169
  get databaseUrl(): string;
2232
2170
  }
2233
2171
 
2172
+ type TraceTargetOccurrence = "first" | "last" | number;
2173
+ type TraceTarget = {
2174
+ kind: "output";
2175
+ } | {
2176
+ kind: "span";
2177
+ name: string;
2178
+ occurrence?: TraceTargetOccurrence;
2179
+ };
2180
+ type TraceAssertionSource = "human" | "agent";
2181
+ type TraceSearchFilters = {
2182
+ callerMetadata?: Record<string, string>;
2183
+ name?: string;
2184
+ nameContains?: string;
2185
+ };
2186
+ type TraceSearchParams = TraceSearchFilters & ({
2187
+ callerMetadata: Record<string, string>;
2188
+ } | {
2189
+ name: string;
2190
+ } | {
2191
+ nameContains: string;
2192
+ }) & {
2193
+ traceFunctionKey?: string;
2194
+ cursor?: string | null;
2195
+ limit?: number;
2196
+ };
2197
+ type TraceSearchResult = {
2198
+ traces: Array<{
2199
+ id: string;
2200
+ traceFunctionKey: string | null;
2201
+ name: string | null;
2202
+ status: "pending" | "completed" | "failed" | "dropped";
2203
+ createdAt: string;
2204
+ callerMetadata: Record<string, string>;
2205
+ }>;
2206
+ nextCursor: string | null;
2207
+ hasMore: boolean;
2208
+ };
2209
+ type TraceAssertion = {
2210
+ id: string;
2211
+ traceId: string;
2212
+ assertion: string;
2213
+ humanNote: string | null;
2214
+ category_assertion_id: string | null;
2215
+ category: AssertionCategorySummary | null;
2216
+ passCriteria: string | null;
2217
+ failCriteria: string | null;
2218
+ targetOnEvaluatedTrace: TraceTarget | null;
2219
+ source: TraceAssertionSource;
2220
+ createdAt: string;
2221
+ updatedAt: string;
2222
+ };
2223
+ type SaveAssertion = {
2224
+ /** Omit to preserve the category, or pass null to clear it. */
2225
+ category_assertion_id?: string | null;
2226
+ id?: string;
2227
+ assertion: string;
2228
+ passCriteria?: string | null;
2229
+ failCriteria?: string | null;
2230
+ targetOnEvaluatedTrace?: TraceTarget | null;
2231
+ };
2232
+ type TraceAssertionsResult = {
2233
+ assertions: TraceAssertion[];
2234
+ inheritedFrom: string | null;
2235
+ };
2236
+ type TraceAssertionsUpdate = {
2237
+ traceId: string;
2238
+ assertions: SaveAssertion[];
2239
+ };
2240
+ type SaveAssertionsParams = {
2241
+ traceId: string;
2242
+ assertions: SaveAssertion[];
2243
+ source?: TraceAssertionSource;
2244
+ };
2245
+ type SaveAssertionsAllParams = {
2246
+ updates: TraceAssertionsUpdate[];
2247
+ source?: TraceAssertionSource;
2248
+ };
2249
+ type ArchiveAssertionsParams = {
2250
+ traceId: string;
2251
+ assertionIds: string[];
2252
+ };
2253
+ declare class TracesClient {
2254
+ private readonly httpClient;
2255
+ constructor(httpClient: HttpClient);
2256
+ search(params: TraceSearchParams): Promise<TraceSearchResult>;
2257
+ getAssertions(traceId: string): Promise<TraceAssertionsResult>;
2258
+ saveAssertions(params: SaveAssertionsParams): Promise<TraceAssertion[]>;
2259
+ saveAssertionsAll(params: SaveAssertionsAllParams): Promise<TraceAssertion[]>;
2260
+ archiveAssertions(params: ArchiveAssertionsParams): Promise<string[]>;
2261
+ }
2262
+
2234
2263
  /**
2235
2264
  * Tracing utilities for external trace submission to Bitfab.
2236
2265
  *
@@ -3391,7 +3420,7 @@ interface CommitRef {
3391
3420
  /**
3392
3421
  * SDK version from package.json (injected at build time)
3393
3422
  */
3394
- declare const __version__ = "0.54.4";
3423
+ declare const __version__ = "0.54.6";
3395
3424
 
3396
3425
  /**
3397
3426
  * Constants for the Bitfab SDK.
@@ -3530,4 +3559,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
3530
3559
  run?: boolean;
3531
3560
  }): Promise<SeedResult>;
3532
3561
 
3533
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, 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 GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, 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, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
3562
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, 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 GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, 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, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ import {
29
29
  getCurrentTrace,
30
30
  reseedFromRegistry,
31
31
  seedFromRegistry
32
- } from "./chunk-WFNCKWDC.js";
32
+ } from "./chunk-FCJHKGEE.js";
33
33
  import "./chunk-EGWJYCNT.js";
34
34
  import {
35
35
  BITFAB_PROGRESS_PREFIX,
@@ -38,7 +38,7 @@ import {
38
38
  ReplayError,
39
39
  reportReplayProgress,
40
40
  serializeReplayResult
41
- } from "./chunk-YO332W7L.js";
41
+ } from "./chunk-EBDVWYCV.js";
42
42
  import {
43
43
  BitfabError,
44
44
  DEFAULT_SERVICE_URL,
@@ -46,7 +46,7 @@ import {
46
46
  MixedTracingError,
47
47
  __version__,
48
48
  flushTraces
49
- } from "./chunk-UJRT3MLT.js";
49
+ } from "./chunk-5FRFNRFA.js";
50
50
  import "./chunk-VCRFFCLY.js";
51
51
  export {
52
52
  AssertionCategoriesClient,
package/dist/node.cjs CHANGED
@@ -97,7 +97,7 @@ var __version__, __packageName__;
97
97
  var init_version_generated = __esm({
98
98
  "src/version.generated.ts"() {
99
99
  "use strict";
100
- __version__ = "0.54.4";
100
+ __version__ = "0.54.6";
101
101
  __packageName__ = "bitfab";
102
102
  }
103
103
  });
@@ -4365,45 +4365,6 @@ var AssertionCategoriesClient = class {
4365
4365
  }
4366
4366
  };
4367
4367
 
4368
- // src/assertions.ts
4369
- var ASSERTIONS_PATH = "/api/sdk/traces/assertions";
4370
- function traceAssertionsPath(traceId, suffix = "") {
4371
- return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
4372
- }
4373
- var TracesClient = class {
4374
- constructor(httpClient) {
4375
- this.httpClient = httpClient;
4376
- }
4377
- async getAssertions(traceId) {
4378
- return this.httpClient.get(
4379
- traceAssertionsPath(traceId)
4380
- );
4381
- }
4382
- async saveAssertions(params) {
4383
- return this.saveAssertionsAll({
4384
- updates: [{ traceId: params.traceId, assertions: params.assertions }],
4385
- source: params.source
4386
- });
4387
- }
4388
- async saveAssertionsAll(params) {
4389
- if (params.updates.length === 0) {
4390
- return [];
4391
- }
4392
- const response = await this.httpClient.request(ASSERTIONS_PATH, {
4393
- updates: params.updates,
4394
- source: params.source ?? "agent"
4395
- });
4396
- return response.assertions;
4397
- }
4398
- async archiveAssertions(params) {
4399
- const response = await this.httpClient.request(
4400
- traceAssertionsPath(params.traceId, "/archive"),
4401
- { assertionIds: params.assertionIds }
4402
- );
4403
- return response.archived;
4404
- }
4405
- };
4406
-
4407
4368
  // src/claudeAgentSdk.ts
4408
4369
  init_constants();
4409
4370
  init_http();
@@ -7052,6 +7013,49 @@ var StreamFinalizationError = class extends Error {
7052
7013
  // src/client.ts
7053
7014
  init_traceMetadata();
7054
7015
 
7016
+ // src/traces.ts
7017
+ var ASSERTIONS_PATH = "/api/sdk/traces/assertions";
7018
+ var SEARCH_PATH = "/api/sdk/traces/search";
7019
+ function traceAssertionsPath(traceId, suffix = "") {
7020
+ return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
7021
+ }
7022
+ var TracesClient = class {
7023
+ constructor(httpClient) {
7024
+ this.httpClient = httpClient;
7025
+ }
7026
+ async search(params) {
7027
+ return this.httpClient.request(SEARCH_PATH, params);
7028
+ }
7029
+ async getAssertions(traceId) {
7030
+ return this.httpClient.get(
7031
+ traceAssertionsPath(traceId)
7032
+ );
7033
+ }
7034
+ async saveAssertions(params) {
7035
+ return this.saveAssertionsAll({
7036
+ updates: [{ traceId: params.traceId, assertions: params.assertions }],
7037
+ source: params.source
7038
+ });
7039
+ }
7040
+ async saveAssertionsAll(params) {
7041
+ if (params.updates.length === 0) {
7042
+ return [];
7043
+ }
7044
+ const response = await this.httpClient.request(ASSERTIONS_PATH, {
7045
+ updates: params.updates,
7046
+ source: params.source ?? "agent"
7047
+ });
7048
+ return response.assertions;
7049
+ }
7050
+ async archiveAssertions(params) {
7051
+ const response = await this.httpClient.request(
7052
+ traceAssertionsPath(params.traceId, "/archive"),
7053
+ { assertionIds: params.assertionIds }
7054
+ );
7055
+ return response.archived;
7056
+ }
7057
+ };
7058
+
7055
7059
  // src/tracing.ts
7056
7060
  init_constants();
7057
7061
  init_http();