@bitfab/sdk 0.64.25 → 0.64.27

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 (34) hide show
  1. package/dist/{chunk-R7SJXFMB.js → chunk-AXFICSPS.js} +4 -4
  2. package/dist/{chunk-OMWPLB5R.js → chunk-DWQ36HBO.js} +2 -2
  3. package/dist/{chunk-OMWPLB5R.js.map → chunk-DWQ36HBO.js.map} +1 -1
  4. package/dist/{chunk-ULKKTYOL.js → chunk-FOAYPDCS.js} +2 -2
  5. package/dist/{chunk-DY52FEEM.js → chunk-HTRMFABJ.js} +2 -2
  6. package/dist/{chunk-DY52FEEM.js.map → chunk-HTRMFABJ.js.map} +1 -1
  7. package/dist/{chunk-EFGQRVMT.js → chunk-MROIROUR.js} +2 -2
  8. package/dist/{chunk-JNVDKPFL.js → chunk-OYTAKT5B.js} +27 -6
  9. package/dist/chunk-OYTAKT5B.js.map +1 -0
  10. package/dist/{http-GDTWWWYY.js → http-2ZLYPJ27.js} +2 -2
  11. package/dist/{http-QXJJB2F5.js → http-DUDJA3SE.js} +2 -2
  12. package/dist/index.cjs +23 -1
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +24 -2
  15. package/dist/index.d.ts +24 -2
  16. package/dist/index.js +3 -3
  17. package/dist/node.cjs +23 -1
  18. package/dist/node.cjs.map +1 -1
  19. package/dist/node.d.cts +1 -1
  20. package/dist/node.d.ts +1 -1
  21. package/dist/node.js +3 -3
  22. package/dist/{replay-DC3PID7Q.js → replay-2S663YTX.js} +3 -3
  23. package/dist/{replay-VXQGVZXM.js → replay-JYRJ443I.js} +3 -3
  24. package/dist/replayCli.js +3 -3
  25. package/dist/seedCli.js +3 -3
  26. package/package.json +1 -1
  27. package/dist/chunk-JNVDKPFL.js.map +0 -1
  28. /package/dist/{chunk-R7SJXFMB.js.map → chunk-AXFICSPS.js.map} +0 -0
  29. /package/dist/{chunk-ULKKTYOL.js.map → chunk-FOAYPDCS.js.map} +0 -0
  30. /package/dist/{chunk-EFGQRVMT.js.map → chunk-MROIROUR.js.map} +0 -0
  31. /package/dist/{http-GDTWWWYY.js.map → http-2ZLYPJ27.js.map} +0 -0
  32. /package/dist/{http-QXJJB2F5.js.map → http-DUDJA3SE.js.map} +0 -0
  33. /package/dist/{replay-DC3PID7Q.js.map → replay-2S663YTX.js.map} +0 -0
  34. /package/dist/{replay-VXQGVZXM.js.map → replay-JYRJ443I.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -1319,6 +1319,10 @@ interface SaveDatasetParams {
1319
1319
  name: string;
1320
1320
  description?: string;
1321
1321
  }
1322
+ interface UpdateDatasetParams {
1323
+ name?: string;
1324
+ description?: string;
1325
+ }
1322
1326
  interface SaveDatasetResult {
1323
1327
  dataset: Dataset;
1324
1328
  created: boolean;
@@ -1401,6 +1405,14 @@ declare class DatasetsClient {
1401
1405
  * leaves an existing one untouched.
1402
1406
  */
1403
1407
  save(params: SaveDatasetParams): Promise<SaveDatasetResult>;
1408
+ /**
1409
+ * Rename a dataset or change its description in place. The dataset keeps its
1410
+ * id, traces, and graders. An empty `description` clears it. Rejects with a
1411
+ * 400 `BitfabError` when the new name is already used by another dataset on
1412
+ * the same trace function, and a 404 when the dataset is not in this
1413
+ * organization.
1414
+ */
1415
+ update(datasetId: string, params: UpdateDatasetParams): Promise<Dataset>;
1404
1416
  /**
1405
1417
  * List datasets, scoped to one trace function when `traceFunctionKey` is
1406
1418
  * given and organization-wide otherwise. Fetches all pages automatically.
@@ -1557,6 +1569,8 @@ type TraceSearchFilters = {
1557
1569
  callerMetadata?: Record<string, string>;
1558
1570
  name?: string;
1559
1571
  nameContains?: string;
1572
+ /** Only the replay traces this experiment produced. */
1573
+ experimentId?: string;
1560
1574
  };
1561
1575
  type TraceSearchParams = TraceSearchFilters & ({
1562
1576
  callerMetadata: Record<string, string>;
@@ -1564,6 +1578,8 @@ type TraceSearchParams = TraceSearchFilters & ({
1564
1578
  name: string;
1565
1579
  } | {
1566
1580
  nameContains: string;
1581
+ } | {
1582
+ experimentId: string;
1567
1583
  }) & {
1568
1584
  traceFunctionKey?: string;
1569
1585
  cursor?: string | null;
@@ -1577,6 +1593,12 @@ type TraceSearchResult = {
1577
1593
  status: "pending" | "completed" | "failed" | "dropped";
1578
1594
  createdAt: string;
1579
1595
  callerMetadata: Record<string, string>;
1596
+ /** The experiment that produced this trace, or null for a captured trace. */
1597
+ experimentId: string | null;
1598
+ /** Wall-clock time of the whole trace, or null when it has no end time. */
1599
+ durationMs: number | null;
1600
+ /** Token usage summed across the trace, or null when none was recorded. */
1601
+ tokens: TokenUsage | null;
1580
1602
  }>;
1581
1603
  nextCursor: string | null;
1582
1604
  hasMore: boolean;
@@ -4200,7 +4222,7 @@ interface CommitRef {
4200
4222
  /**
4201
4223
  * SDK version from package.json (injected at build time)
4202
4224
  */
4203
- declare const __version__ = "0.64.25";
4225
+ declare const __version__ = "0.64.27";
4204
4226
 
4205
4227
  /**
4206
4228
  * Constants for the Bitfab SDK.
@@ -4339,4 +4361,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
4339
4361
  run?: boolean;
4340
4362
  }): Promise<SeedResult>;
4341
4363
 
4342
- 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 VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
4364
+ 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 WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
package/dist/index.d.ts CHANGED
@@ -1319,6 +1319,10 @@ interface SaveDatasetParams {
1319
1319
  name: string;
1320
1320
  description?: string;
1321
1321
  }
1322
+ interface UpdateDatasetParams {
1323
+ name?: string;
1324
+ description?: string;
1325
+ }
1322
1326
  interface SaveDatasetResult {
1323
1327
  dataset: Dataset;
1324
1328
  created: boolean;
@@ -1401,6 +1405,14 @@ declare class DatasetsClient {
1401
1405
  * leaves an existing one untouched.
1402
1406
  */
1403
1407
  save(params: SaveDatasetParams): Promise<SaveDatasetResult>;
1408
+ /**
1409
+ * Rename a dataset or change its description in place. The dataset keeps its
1410
+ * id, traces, and graders. An empty `description` clears it. Rejects with a
1411
+ * 400 `BitfabError` when the new name is already used by another dataset on
1412
+ * the same trace function, and a 404 when the dataset is not in this
1413
+ * organization.
1414
+ */
1415
+ update(datasetId: string, params: UpdateDatasetParams): Promise<Dataset>;
1404
1416
  /**
1405
1417
  * List datasets, scoped to one trace function when `traceFunctionKey` is
1406
1418
  * given and organization-wide otherwise. Fetches all pages automatically.
@@ -1557,6 +1569,8 @@ type TraceSearchFilters = {
1557
1569
  callerMetadata?: Record<string, string>;
1558
1570
  name?: string;
1559
1571
  nameContains?: string;
1572
+ /** Only the replay traces this experiment produced. */
1573
+ experimentId?: string;
1560
1574
  };
1561
1575
  type TraceSearchParams = TraceSearchFilters & ({
1562
1576
  callerMetadata: Record<string, string>;
@@ -1564,6 +1578,8 @@ type TraceSearchParams = TraceSearchFilters & ({
1564
1578
  name: string;
1565
1579
  } | {
1566
1580
  nameContains: string;
1581
+ } | {
1582
+ experimentId: string;
1567
1583
  }) & {
1568
1584
  traceFunctionKey?: string;
1569
1585
  cursor?: string | null;
@@ -1577,6 +1593,12 @@ type TraceSearchResult = {
1577
1593
  status: "pending" | "completed" | "failed" | "dropped";
1578
1594
  createdAt: string;
1579
1595
  callerMetadata: Record<string, string>;
1596
+ /** The experiment that produced this trace, or null for a captured trace. */
1597
+ experimentId: string | null;
1598
+ /** Wall-clock time of the whole trace, or null when it has no end time. */
1599
+ durationMs: number | null;
1600
+ /** Token usage summed across the trace, or null when none was recorded. */
1601
+ tokens: TokenUsage | null;
1580
1602
  }>;
1581
1603
  nextCursor: string | null;
1582
1604
  hasMore: boolean;
@@ -4200,7 +4222,7 @@ interface CommitRef {
4200
4222
  /**
4201
4223
  * SDK version from package.json (injected at build time)
4202
4224
  */
4203
- declare const __version__ = "0.64.25";
4225
+ declare const __version__ = "0.64.27";
4204
4226
 
4205
4227
  /**
4206
4228
  * Constants for the Bitfab SDK.
@@ -4339,4 +4361,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
4339
4361
  run?: boolean;
4340
4362
  }): Promise<SeedResult>;
4341
4363
 
4342
- 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 VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
4364
+ 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 WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  getCurrentTrace,
29
29
  reseedFromRegistry,
30
30
  seedFromRegistry
31
- } from "./chunk-JNVDKPFL.js";
31
+ } from "./chunk-OYTAKT5B.js";
32
32
  import "./chunk-YWXQM6J3.js";
33
33
  import {
34
34
  BITFAB_PROGRESS_PREFIX,
@@ -37,7 +37,7 @@ import {
37
37
  ReplayError,
38
38
  reportReplayProgress,
39
39
  serializeReplayResult
40
- } from "./chunk-EFGQRVMT.js";
40
+ } from "./chunk-MROIROUR.js";
41
41
  import {
42
42
  BitfabError,
43
43
  DEFAULT_SERVICE_URL,
@@ -45,7 +45,7 @@ import {
45
45
  MixedTracingError,
46
46
  __version__,
47
47
  flushTraces
48
- } from "./chunk-DY52FEEM.js";
48
+ } from "./chunk-HTRMFABJ.js";
49
49
  import "./chunk-MT36GJMW.js";
50
50
  export {
51
51
  AssertionCategoriesClient,
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.64.25";
91
+ __version__ = "0.64.27";
92
92
  __packageName__ = "@bitfab/sdk";
93
93
  }
94
94
  });
@@ -6818,6 +6818,7 @@ function currentCommitRef() {
6818
6818
  init_constants();
6819
6819
 
6820
6820
  // src/datasets.ts
6821
+ init_errors();
6821
6822
  var DEFAULT_RERUN_TIMEOUT_MS = 9e4;
6822
6823
  var RERUN_POLL_INTERVAL_MS = 1e3;
6823
6824
  var TERMINAL_RERUN_STATUSES = /* @__PURE__ */ new Set([
@@ -6874,6 +6875,27 @@ var DatasetsClient = class {
6874
6875
  ...params.description === void 0 ? {} : { description: params.description }
6875
6876
  });
6876
6877
  }
6878
+ /**
6879
+ * Rename a dataset or change its description in place. The dataset keeps its
6880
+ * id, traces, and graders. An empty `description` clears it. Rejects with a
6881
+ * 400 `BitfabError` when the new name is already used by another dataset on
6882
+ * the same trace function, and a 404 when the dataset is not in this
6883
+ * organization.
6884
+ */
6885
+ async update(datasetId, params) {
6886
+ if (params.name === void 0 && params.description === void 0) {
6887
+ throw new BitfabError("Provide name and/or description to update.");
6888
+ }
6889
+ const response = await this.httpClient.request(
6890
+ datasetPath(datasetId),
6891
+ {
6892
+ ...params.name === void 0 ? {} : { name: params.name },
6893
+ ...params.description === void 0 ? {} : { description: params.description }
6894
+ },
6895
+ { method: "PATCH" }
6896
+ );
6897
+ return response.dataset;
6898
+ }
6877
6899
  /**
6878
6900
  * List datasets, scoped to one trace function when `traceFunctionKey` is
6879
6901
  * given and organization-wide otherwise. Fetches all pages automatically.