@bitfab/sdk 0.53.5 → 0.54.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.
Files changed (31) hide show
  1. package/dist/{chunk-BOXLWX73.js → chunk-EPWQ43SC.js} +2 -2
  2. package/dist/{chunk-BOXLWX73.js.map → chunk-EPWQ43SC.js.map} +1 -1
  3. package/dist/{chunk-IDQBDBNS.js → chunk-IDUFXDV6.js} +3 -3
  4. package/dist/{chunk-PAL7VIWM.js → chunk-MZ42HQ7N.js} +2 -2
  5. package/dist/{chunk-Q7IB5VFZ.js → chunk-SOYIEIGU.js} +38 -6
  6. package/dist/chunk-SOYIEIGU.js.map +1 -0
  7. package/dist/{chunk-RMATODGT.js → chunk-X2FL37KB.js} +2 -2
  8. package/dist/{chunk-RMATODGT.js.map → chunk-X2FL37KB.js.map} +1 -1
  9. package/dist/{http-6F3OLGWX.js → http-EQ4PDMDO.js} +2 -2
  10. package/dist/{http-3WOABXYN.js → http-WTRCGTCE.js} +2 -2
  11. package/dist/index.cjs +34 -1
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +38 -4
  14. package/dist/index.d.ts +38 -4
  15. package/dist/index.js +5 -3
  16. package/dist/node.cjs +34 -1
  17. package/dist/node.cjs.map +1 -1
  18. package/dist/node.d.cts +1 -1
  19. package/dist/node.d.ts +1 -1
  20. package/dist/node.js +5 -3
  21. package/dist/node.js.map +1 -1
  22. package/dist/{replay-HVLPMPVQ.js → replay-5ZF55JZX.js} +3 -3
  23. package/dist/replayCli.js +2 -2
  24. package/dist/seedCli.js +2 -2
  25. package/package.json +1 -1
  26. package/dist/chunk-Q7IB5VFZ.js.map +0 -1
  27. /package/dist/{chunk-IDQBDBNS.js.map → chunk-IDUFXDV6.js.map} +0 -0
  28. /package/dist/{chunk-PAL7VIWM.js.map → chunk-MZ42HQ7N.js.map} +0 -0
  29. /package/dist/{http-3WOABXYN.js.map → http-EQ4PDMDO.js.map} +0 -0
  30. /package/dist/{http-6F3OLGWX.js.map → http-WTRCGTCE.js.map} +0 -0
  31. /package/dist/{replay-HVLPMPVQ.js.map → replay-5ZF55JZX.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -507,7 +507,7 @@ declare class HttpClient {
507
507
  */
508
508
  request<T>(endpoint: string, payload: Record<string, unknown>, options?: {
509
509
  timeout?: number;
510
- method?: "POST" | "PATCH" | "PUT";
510
+ method?: "POST" | "PATCH" | "PUT" | "DELETE";
511
511
  }): Promise<T>;
512
512
  /**
513
513
  * POST an already-encoded body. The span transport encodes its own batches,
@@ -516,7 +516,7 @@ declare class HttpClient {
516
516
  */
517
517
  sendEncoded<T>(endpoint: string, body: string, options?: {
518
518
  timeout?: number;
519
- method?: "POST" | "PATCH" | "PUT";
519
+ method?: "POST" | "PATCH" | "PUT" | "DELETE";
520
520
  }): Promise<T>;
521
521
  private sendPrepared;
522
522
  /**
@@ -799,6 +799,35 @@ interface SpanTreeResponse {
799
799
  root: SpanTreeNode;
800
800
  }
801
801
 
802
+ type AssertionCategorySummary = {
803
+ id: string;
804
+ title: string;
805
+ description: string;
806
+ };
807
+ type AssertionCategory = AssertionCategorySummary & {
808
+ organizationId: string;
809
+ createdAt: string;
810
+ updatedAt: string;
811
+ };
812
+ type SaveAssertionCategoryParams = {
813
+ id?: string;
814
+ title: string;
815
+ description?: string;
816
+ };
817
+ /** Organization-scoped groupings for assertions. */
818
+ declare class AssertionCategoriesClient {
819
+ private readonly httpClient;
820
+ constructor(httpClient: HttpClient);
821
+ /** Create a category, or update it by ID. Omitted descriptions are preserved. */
822
+ save(params: SaveAssertionCategoryParams): Promise<AssertionCategory>;
823
+ /** Read one category in the API key's organization. */
824
+ get(id: string): Promise<AssertionCategory>;
825
+ /** List the organization's categories ordered by title. */
826
+ list(): Promise<AssertionCategory[]>;
827
+ /** Delete a category and clear its assignments, preserving assertions and verdicts. */
828
+ delete(id: string): Promise<AssertionCategory>;
829
+ }
830
+
802
831
  type TraceTargetOccurrence = "first" | "last" | number;
803
832
  type TraceTarget = {
804
833
  kind: "output";
@@ -812,6 +841,8 @@ type TraceAssertion = {
812
841
  id: string;
813
842
  traceId: string;
814
843
  assertion: string;
844
+ category_assertion_id: string | null;
845
+ category: AssertionCategorySummary | null;
815
846
  passCriteria: string | null;
816
847
  failCriteria: string | null;
817
848
  targetOnEvaluatedTrace: TraceTarget | null;
@@ -820,6 +851,8 @@ type TraceAssertion = {
820
851
  updatedAt: string;
821
852
  };
822
853
  type SaveAssertion = {
854
+ /** Omit to preserve the category, or pass null to clear it. */
855
+ category_assertion_id?: string | null;
823
856
  id?: string;
824
857
  assertion: string;
825
858
  passCriteria?: string | null;
@@ -2685,6 +2718,7 @@ declare class Bitfab {
2685
2718
  private readonly httpClient;
2686
2719
  /** Dataset operations for the authenticated organization. */
2687
2720
  readonly datasets: DatasetsClient;
2721
+ readonly assertionCategories: AssertionCategoriesClient;
2688
2722
  readonly traces: TracesClient;
2689
2723
  readonly labels: LabelsClient;
2690
2724
  readonly graders: GradersClient;
@@ -3344,7 +3378,7 @@ interface CommitRef {
3344
3378
  /**
3345
3379
  * SDK version from package.json (injected at build time)
3346
3380
  */
3347
- declare const __version__ = "0.53.5";
3381
+ declare const __version__ = "0.54.0";
3348
3382
 
3349
3383
  /**
3350
3384
  * Constants for the Bitfab SDK.
@@ -3483,4 +3517,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
3483
3517
  run?: boolean;
3484
3518
  }): Promise<SeedResult>;
3485
3519
 
3486
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, 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 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 };
3520
+ 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 };
package/dist/index.d.ts CHANGED
@@ -507,7 +507,7 @@ declare class HttpClient {
507
507
  */
508
508
  request<T>(endpoint: string, payload: Record<string, unknown>, options?: {
509
509
  timeout?: number;
510
- method?: "POST" | "PATCH" | "PUT";
510
+ method?: "POST" | "PATCH" | "PUT" | "DELETE";
511
511
  }): Promise<T>;
512
512
  /**
513
513
  * POST an already-encoded body. The span transport encodes its own batches,
@@ -516,7 +516,7 @@ declare class HttpClient {
516
516
  */
517
517
  sendEncoded<T>(endpoint: string, body: string, options?: {
518
518
  timeout?: number;
519
- method?: "POST" | "PATCH" | "PUT";
519
+ method?: "POST" | "PATCH" | "PUT" | "DELETE";
520
520
  }): Promise<T>;
521
521
  private sendPrepared;
522
522
  /**
@@ -799,6 +799,35 @@ interface SpanTreeResponse {
799
799
  root: SpanTreeNode;
800
800
  }
801
801
 
802
+ type AssertionCategorySummary = {
803
+ id: string;
804
+ title: string;
805
+ description: string;
806
+ };
807
+ type AssertionCategory = AssertionCategorySummary & {
808
+ organizationId: string;
809
+ createdAt: string;
810
+ updatedAt: string;
811
+ };
812
+ type SaveAssertionCategoryParams = {
813
+ id?: string;
814
+ title: string;
815
+ description?: string;
816
+ };
817
+ /** Organization-scoped groupings for assertions. */
818
+ declare class AssertionCategoriesClient {
819
+ private readonly httpClient;
820
+ constructor(httpClient: HttpClient);
821
+ /** Create a category, or update it by ID. Omitted descriptions are preserved. */
822
+ save(params: SaveAssertionCategoryParams): Promise<AssertionCategory>;
823
+ /** Read one category in the API key's organization. */
824
+ get(id: string): Promise<AssertionCategory>;
825
+ /** List the organization's categories ordered by title. */
826
+ list(): Promise<AssertionCategory[]>;
827
+ /** Delete a category and clear its assignments, preserving assertions and verdicts. */
828
+ delete(id: string): Promise<AssertionCategory>;
829
+ }
830
+
802
831
  type TraceTargetOccurrence = "first" | "last" | number;
803
832
  type TraceTarget = {
804
833
  kind: "output";
@@ -812,6 +841,8 @@ type TraceAssertion = {
812
841
  id: string;
813
842
  traceId: string;
814
843
  assertion: string;
844
+ category_assertion_id: string | null;
845
+ category: AssertionCategorySummary | null;
815
846
  passCriteria: string | null;
816
847
  failCriteria: string | null;
817
848
  targetOnEvaluatedTrace: TraceTarget | null;
@@ -820,6 +851,8 @@ type TraceAssertion = {
820
851
  updatedAt: string;
821
852
  };
822
853
  type SaveAssertion = {
854
+ /** Omit to preserve the category, or pass null to clear it. */
855
+ category_assertion_id?: string | null;
823
856
  id?: string;
824
857
  assertion: string;
825
858
  passCriteria?: string | null;
@@ -2685,6 +2718,7 @@ declare class Bitfab {
2685
2718
  private readonly httpClient;
2686
2719
  /** Dataset operations for the authenticated organization. */
2687
2720
  readonly datasets: DatasetsClient;
2721
+ readonly assertionCategories: AssertionCategoriesClient;
2688
2722
  readonly traces: TracesClient;
2689
2723
  readonly labels: LabelsClient;
2690
2724
  readonly graders: GradersClient;
@@ -3344,7 +3378,7 @@ interface CommitRef {
3344
3378
  /**
3345
3379
  * SDK version from package.json (injected at build time)
3346
3380
  */
3347
- declare const __version__ = "0.53.5";
3381
+ declare const __version__ = "0.54.0";
3348
3382
 
3349
3383
  /**
3350
3384
  * Constants for the Bitfab SDK.
@@ -3483,4 +3517,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
3483
3517
  run?: boolean;
3484
3518
  }): Promise<SeedResult>;
3485
3519
 
3486
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, 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 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 };
3520
+ 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 };
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import {
2
+ AssertionCategoriesClient,
2
3
  Bitfab,
3
4
  BitfabClaudeAgentHandler,
4
5
  BitfabFunction,
@@ -19,7 +20,7 @@ import {
19
20
  getCurrentTrace,
20
21
  reseedFromRegistry,
21
22
  seedFromRegistry
22
- } from "./chunk-Q7IB5VFZ.js";
23
+ } from "./chunk-SOYIEIGU.js";
23
24
  import "./chunk-EGWJYCNT.js";
24
25
  import {
25
26
  BITFAB_PROGRESS_PREFIX,
@@ -28,7 +29,7 @@ import {
28
29
  ReplayError,
29
30
  reportReplayProgress,
30
31
  serializeReplayResult
31
- } from "./chunk-PAL7VIWM.js";
32
+ } from "./chunk-MZ42HQ7N.js";
32
33
  import {
33
34
  BitfabError,
34
35
  DEFAULT_SERVICE_URL,
@@ -36,9 +37,10 @@ import {
36
37
  MixedTracingError,
37
38
  __version__,
38
39
  flushTraces
39
- } from "./chunk-BOXLWX73.js";
40
+ } from "./chunk-EPWQ43SC.js";
40
41
  import "./chunk-VCRFFCLY.js";
41
42
  export {
43
+ AssertionCategoriesClient,
42
44
  BITFAB_PROGRESS_PREFIX,
43
45
  Bitfab,
44
46
  BitfabClaudeAgentHandler,
package/dist/node.cjs CHANGED
@@ -88,7 +88,7 @@ var __version__, __packageName__;
88
88
  var init_version_generated = __esm({
89
89
  "src/version.generated.ts"() {
90
90
  "use strict";
91
- __version__ = "0.53.5";
91
+ __version__ = "0.54.0";
92
92
  __packageName__ = "@bitfab/sdk";
93
93
  }
94
94
  });
@@ -4069,6 +4069,7 @@ var init_replay = __esm({
4069
4069
  // src/node.ts
4070
4070
  var node_exports = {};
4071
4071
  __export(node_exports, {
4072
+ AssertionCategoriesClient: () => AssertionCategoriesClient,
4072
4073
  BITFAB_PROGRESS_PREFIX: () => BITFAB_PROGRESS_PREFIX,
4073
4074
  Bitfab: () => Bitfab,
4074
4075
  BitfabClaudeAgentHandler: () => BitfabClaudeAgentHandler,
@@ -4112,6 +4113,36 @@ registerAsyncLocalStorageClass(
4112
4113
  import_node_async_hooks.AsyncLocalStorage
4113
4114
  );
4114
4115
 
4116
+ // src/assertionCategories.ts
4117
+ var CATEGORIES_PATH = "/api/sdk/assertionCategories";
4118
+ var AssertionCategoriesClient = class {
4119
+ constructor(httpClient) {
4120
+ this.httpClient = httpClient;
4121
+ }
4122
+ /** Create a category, or update it by ID. Omitted descriptions are preserved. */
4123
+ async save(params) {
4124
+ const response = await this.httpClient.request(CATEGORIES_PATH, params);
4125
+ return response.category;
4126
+ }
4127
+ /** Read one category in the API key's organization. */
4128
+ async get(id) {
4129
+ const response = await this.httpClient.get(
4130
+ `${CATEGORIES_PATH}/${encodeURIComponent(id)}`
4131
+ );
4132
+ return response.category;
4133
+ }
4134
+ /** List the organization's categories ordered by title. */
4135
+ async list() {
4136
+ const response = await this.httpClient.get(CATEGORIES_PATH);
4137
+ return response.categories;
4138
+ }
4139
+ /** Delete a category and clear its assignments, preserving assertions and verdicts. */
4140
+ async delete(id) {
4141
+ const response = await this.httpClient.request(`${CATEGORIES_PATH}/${encodeURIComponent(id)}`, {}, { method: "DELETE" });
4142
+ return response.category;
4143
+ }
4144
+ };
4145
+
4115
4146
  // src/assertions.ts
4116
4147
  var ASSERTIONS_PATH = "/api/sdk/traces/assertions";
4117
4148
  function traceAssertionsPath(traceId, suffix = "") {
@@ -7663,6 +7694,7 @@ var Bitfab = class {
7663
7694
  this.httpClient.releaseHeldExternalSpans = (timeoutMs) => this.simulationPlan.release(timeoutMs);
7664
7695
  this.httpClient.stopSimulationPlan = () => this.simulationPlan.stop();
7665
7696
  this.datasets = new DatasetsClient(this.httpClient);
7697
+ this.assertionCategories = new AssertionCategoriesClient(this.httpClient);
7666
7698
  this.traces = new TracesClient(this.httpClient);
7667
7699
  this.labels = new LabelsClient(this.httpClient);
7668
7700
  this.graders = new GradersClient(this.httpClient);
@@ -9738,6 +9770,7 @@ init_asyncStorage();
9738
9770
  assertAsyncStorageRegistered();
9739
9771
  // Annotate the CommonJS export names for ESM import in node:
9740
9772
  0 && (module.exports = {
9773
+ AssertionCategoriesClient,
9741
9774
  BITFAB_PROGRESS_PREFIX,
9742
9775
  Bitfab,
9743
9776
  BitfabClaudeAgentHandler,