@bitfab/sdk 0.58.1 → 0.58.3

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 (33) hide show
  1. package/dist/{chunk-SVTMTBTK.js → chunk-E4W3LSVL.js} +6 -3
  2. package/dist/{chunk-SVTMTBTK.js.map → chunk-E4W3LSVL.js.map} +1 -1
  3. package/dist/{chunk-UFN6S5N4.js → chunk-KOWM65AV.js} +4 -3
  4. package/dist/chunk-KOWM65AV.js.map +1 -0
  5. package/dist/{chunk-FJRILDSJ.js → chunk-PHJMV6OL.js} +3 -3
  6. package/dist/chunk-PHJMV6OL.js.map +1 -0
  7. package/dist/{chunk-KTDGHM36.js → chunk-WVFMRMV4.js} +6 -3
  8. package/dist/{chunk-KTDGHM36.js.map → chunk-WVFMRMV4.js.map} +1 -1
  9. package/dist/{chunk-HWRU7JIH.js → chunk-XBZO7PFX.js} +24 -6
  10. package/dist/chunk-XBZO7PFX.js.map +1 -0
  11. package/dist/{http-TYON36K5.js → http-ARGY6JF2.js} +2 -2
  12. package/dist/{http-WVARIJG2.js → http-ZI4BQTKT.js} +2 -2
  13. package/dist/index.cjs +26 -3
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +40 -5
  16. package/dist/index.d.ts +40 -5
  17. package/dist/index.js +5 -3
  18. package/dist/node.cjs +26 -3
  19. package/dist/node.cjs.map +1 -1
  20. package/dist/node.d.cts +1 -1
  21. package/dist/node.d.ts +1 -1
  22. package/dist/node.js +5 -3
  23. package/dist/node.js.map +1 -1
  24. package/dist/{replay-WMDA3YG2.js → replay-OOW54JKA.js} +3 -3
  25. package/dist/replayCli.js +2 -2
  26. package/dist/seedCli.js +2 -2
  27. package/package.json +1 -1
  28. package/dist/chunk-FJRILDSJ.js.map +0 -1
  29. package/dist/chunk-HWRU7JIH.js.map +0 -1
  30. package/dist/chunk-UFN6S5N4.js.map +0 -1
  31. /package/dist/{http-TYON36K5.js.map → http-ARGY6JF2.js.map} +0 -0
  32. /package/dist/{http-WVARIJG2.js.map → http-ZI4BQTKT.js.map} +0 -0
  33. /package/dist/{replay-WMDA3YG2.js.map → replay-OOW54JKA.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -13,6 +13,8 @@ type Approver = {
13
13
  email: string | null;
14
14
  imageUrl: string | null;
15
15
  };
16
+ /** The organization member on the hook for reviewing an assertion. */
17
+ type Assignee = Approver;
16
18
  /** Read-only on this client: only a person in Bitfab sets these. */
17
19
  type ApprovalFields = {
18
20
  approvalState: ApprovalState;
@@ -600,7 +602,7 @@ declare class HttpClient {
600
602
  * Start a replay session by fetching historical traces.
601
603
  * Blocking call - creates a test run and returns lightweight item references.
602
604
  */
603
- startReplay(traceFunctionKey: string, limit: number | undefined, traceIds?: string[], name?: string, codeChangeDescription?: string | null, codeChangeFiles?: CodeChangeFile[] | null, includeDbBranchLease?: boolean, experimentGroupId?: string, datasetIds?: string[], graderIds?: string[], dbBranchSettings?: DbBranchSettings, attempts?: number, includeOriginalMetadata?: boolean, onlyWithAssertions?: boolean): Promise<StartReplayResponse>;
605
+ startReplay(traceFunctionKey: string, limit: number | undefined, traceIds?: string[], name?: string, codeChangeDescription?: string | null, codeChangeFiles?: CodeChangeFile[] | null, includeDbBranchLease?: boolean, experimentGroupId?: string, datasetIds?: string[], graderIds?: string[], dbBranchSettings?: DbBranchSettings, attempts?: number, includeOriginalMetadata?: boolean, onlyWithAssertions?: boolean, judgeAssertions?: boolean): Promise<StartReplayResponse>;
604
606
  /**
605
607
  * Fetch an external span by ID.
606
608
  * Blocking GET request.
@@ -1355,6 +1357,8 @@ type TraceAssertion = {
1355
1357
  justification: Justification | null;
1356
1358
  /** Why its assigned category is the right one, span by span. */
1357
1359
  categoryJustification: Justification | null;
1360
+ /** Who is on the hook for reviewing this assertion, or null for nobody. */
1361
+ assignee: Assignee | null;
1358
1362
  createdAt: string;
1359
1363
  updatedAt: string;
1360
1364
  } & ApprovalFields;
@@ -1362,9 +1366,10 @@ type AssertionEvidenceParameter = {
1362
1366
  name: string;
1363
1367
  type: "string" | "number" | "boolean" | "object" | "array" | "null" | "unknown";
1364
1368
  };
1365
- type PotentialAssertionEvidence = {
1369
+ type AssertionLabelEvidence = {
1366
1370
  spanId: string;
1367
1371
  text: string;
1372
+ sourceField: string;
1368
1373
  spanName: string | null;
1369
1374
  parameters: AssertionEvidenceParameter[];
1370
1375
  spanType: "llm" | "agent" | "function" | "guardrail" | "handoff" | "custom";
@@ -1388,6 +1393,12 @@ type SaveAssertion = {
1388
1393
  * clears it. Omit on an edit to preserve it.
1389
1394
  */
1390
1395
  categoryJustification?: Justification | null;
1396
+ /**
1397
+ * Email of the organization member who should review this assertion. Routing
1398
+ * only, so it leaves the approval state alone. Omit on an edit to preserve
1399
+ * the current assignee, or pass null to leave it to nobody.
1400
+ */
1401
+ assigneeEmail?: string | null;
1391
1402
  };
1392
1403
  type TraceAssertionsResult = {
1393
1404
  assertions: TraceAssertion[];
@@ -1501,7 +1512,7 @@ declare class LabelsClient {
1501
1512
  get(traceId: string): Promise<TraceLabels | null>;
1502
1513
  getAll(traceIds: string[]): Promise<TraceLabels[]>;
1503
1514
  /** Generate suggested evidence for an assertion on an original or replay trace. */
1504
- generateLabelEvidence(traceId: string, assertionId: string): Promise<PotentialAssertionEvidence[]>;
1515
+ generateLabelEvidence(traceId: string, assertionId: string): Promise<AssertionLabelEvidence[]>;
1505
1516
  }
1506
1517
 
1507
1518
  type GraderLabelSource = "human" | "live_grader";
@@ -1778,6 +1789,23 @@ declare class BitfabOpenAIAgentHandler {
1778
1789
  wrapRun(agent: AgentLike, input: RunInput, options?: RunOptions): Promise<RunResultLike>;
1779
1790
  }
1780
1791
 
1792
+ type OrganizationMember = {
1793
+ id: string;
1794
+ fullName: string | null;
1795
+ email: string | null;
1796
+ imageUrl: string | null;
1797
+ };
1798
+ /** The people in the API key's organization. */
1799
+ declare class OrganizationMembersClient {
1800
+ private readonly httpClient;
1801
+ constructor(httpClient: HttpClient);
1802
+ /**
1803
+ * List the organization's members, ordered by name. Read it to find the
1804
+ * address to pass as an assertion's `assigneeEmail`.
1805
+ */
1806
+ list(): Promise<OrganizationMember[]>;
1807
+ }
1808
+
1781
1809
  /**
1782
1810
  * Replay historical traces through a function and create a test run.
1783
1811
  *
@@ -1924,6 +1952,12 @@ interface ReplayOptions {
1924
1952
  * replays nothing.
1925
1953
  */
1926
1954
  onlyWithAssertions?: boolean;
1955
+ /**
1956
+ * Judge every approved assertion on each replay as it finishes and save the
1957
+ * verdict as that assertion's agent label. Off unless asked: each judgement
1958
+ * costs model calls.
1959
+ */
1960
+ judgeAssertions?: boolean;
1927
1961
  /**
1928
1962
  * Reshape recorded inputs before they are spread into `fn`.
1929
1963
  *
@@ -2917,6 +2951,7 @@ declare class Bitfab {
2917
2951
  /** Dataset operations for the authenticated organization. */
2918
2952
  readonly datasets: DatasetsClient;
2919
2953
  readonly assertionCategories: AssertionCategoriesClient;
2954
+ readonly organizationMembers: OrganizationMembersClient;
2920
2955
  readonly traces: TracesClient;
2921
2956
  readonly labels: LabelsClient;
2922
2957
  readonly graders: GradersClient;
@@ -3622,7 +3657,7 @@ interface CommitRef {
3622
3657
  /**
3623
3658
  * SDK version from package.json (injected at build time)
3624
3659
  */
3625
- declare const __version__ = "0.58.1";
3660
+ declare const __version__ = "0.58.3";
3626
3661
 
3627
3662
  /**
3628
3663
  * Constants for the Bitfab SDK.
@@ -3761,4 +3796,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
3761
3796
  run?: boolean;
3762
3797
  }): Promise<SeedResult>;
3763
3798
 
3764
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionVerdict, 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 GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, 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, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type PotentialAssertionEvidence, 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, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, 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 };
3799
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, 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 GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, 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, 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 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, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, 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
@@ -13,6 +13,8 @@ type Approver = {
13
13
  email: string | null;
14
14
  imageUrl: string | null;
15
15
  };
16
+ /** The organization member on the hook for reviewing an assertion. */
17
+ type Assignee = Approver;
16
18
  /** Read-only on this client: only a person in Bitfab sets these. */
17
19
  type ApprovalFields = {
18
20
  approvalState: ApprovalState;
@@ -600,7 +602,7 @@ declare class HttpClient {
600
602
  * Start a replay session by fetching historical traces.
601
603
  * Blocking call - creates a test run and returns lightweight item references.
602
604
  */
603
- startReplay(traceFunctionKey: string, limit: number | undefined, traceIds?: string[], name?: string, codeChangeDescription?: string | null, codeChangeFiles?: CodeChangeFile[] | null, includeDbBranchLease?: boolean, experimentGroupId?: string, datasetIds?: string[], graderIds?: string[], dbBranchSettings?: DbBranchSettings, attempts?: number, includeOriginalMetadata?: boolean, onlyWithAssertions?: boolean): Promise<StartReplayResponse>;
605
+ startReplay(traceFunctionKey: string, limit: number | undefined, traceIds?: string[], name?: string, codeChangeDescription?: string | null, codeChangeFiles?: CodeChangeFile[] | null, includeDbBranchLease?: boolean, experimentGroupId?: string, datasetIds?: string[], graderIds?: string[], dbBranchSettings?: DbBranchSettings, attempts?: number, includeOriginalMetadata?: boolean, onlyWithAssertions?: boolean, judgeAssertions?: boolean): Promise<StartReplayResponse>;
604
606
  /**
605
607
  * Fetch an external span by ID.
606
608
  * Blocking GET request.
@@ -1355,6 +1357,8 @@ type TraceAssertion = {
1355
1357
  justification: Justification | null;
1356
1358
  /** Why its assigned category is the right one, span by span. */
1357
1359
  categoryJustification: Justification | null;
1360
+ /** Who is on the hook for reviewing this assertion, or null for nobody. */
1361
+ assignee: Assignee | null;
1358
1362
  createdAt: string;
1359
1363
  updatedAt: string;
1360
1364
  } & ApprovalFields;
@@ -1362,9 +1366,10 @@ type AssertionEvidenceParameter = {
1362
1366
  name: string;
1363
1367
  type: "string" | "number" | "boolean" | "object" | "array" | "null" | "unknown";
1364
1368
  };
1365
- type PotentialAssertionEvidence = {
1369
+ type AssertionLabelEvidence = {
1366
1370
  spanId: string;
1367
1371
  text: string;
1372
+ sourceField: string;
1368
1373
  spanName: string | null;
1369
1374
  parameters: AssertionEvidenceParameter[];
1370
1375
  spanType: "llm" | "agent" | "function" | "guardrail" | "handoff" | "custom";
@@ -1388,6 +1393,12 @@ type SaveAssertion = {
1388
1393
  * clears it. Omit on an edit to preserve it.
1389
1394
  */
1390
1395
  categoryJustification?: Justification | null;
1396
+ /**
1397
+ * Email of the organization member who should review this assertion. Routing
1398
+ * only, so it leaves the approval state alone. Omit on an edit to preserve
1399
+ * the current assignee, or pass null to leave it to nobody.
1400
+ */
1401
+ assigneeEmail?: string | null;
1391
1402
  };
1392
1403
  type TraceAssertionsResult = {
1393
1404
  assertions: TraceAssertion[];
@@ -1501,7 +1512,7 @@ declare class LabelsClient {
1501
1512
  get(traceId: string): Promise<TraceLabels | null>;
1502
1513
  getAll(traceIds: string[]): Promise<TraceLabels[]>;
1503
1514
  /** Generate suggested evidence for an assertion on an original or replay trace. */
1504
- generateLabelEvidence(traceId: string, assertionId: string): Promise<PotentialAssertionEvidence[]>;
1515
+ generateLabelEvidence(traceId: string, assertionId: string): Promise<AssertionLabelEvidence[]>;
1505
1516
  }
1506
1517
 
1507
1518
  type GraderLabelSource = "human" | "live_grader";
@@ -1778,6 +1789,23 @@ declare class BitfabOpenAIAgentHandler {
1778
1789
  wrapRun(agent: AgentLike, input: RunInput, options?: RunOptions): Promise<RunResultLike>;
1779
1790
  }
1780
1791
 
1792
+ type OrganizationMember = {
1793
+ id: string;
1794
+ fullName: string | null;
1795
+ email: string | null;
1796
+ imageUrl: string | null;
1797
+ };
1798
+ /** The people in the API key's organization. */
1799
+ declare class OrganizationMembersClient {
1800
+ private readonly httpClient;
1801
+ constructor(httpClient: HttpClient);
1802
+ /**
1803
+ * List the organization's members, ordered by name. Read it to find the
1804
+ * address to pass as an assertion's `assigneeEmail`.
1805
+ */
1806
+ list(): Promise<OrganizationMember[]>;
1807
+ }
1808
+
1781
1809
  /**
1782
1810
  * Replay historical traces through a function and create a test run.
1783
1811
  *
@@ -1924,6 +1952,12 @@ interface ReplayOptions {
1924
1952
  * replays nothing.
1925
1953
  */
1926
1954
  onlyWithAssertions?: boolean;
1955
+ /**
1956
+ * Judge every approved assertion on each replay as it finishes and save the
1957
+ * verdict as that assertion's agent label. Off unless asked: each judgement
1958
+ * costs model calls.
1959
+ */
1960
+ judgeAssertions?: boolean;
1927
1961
  /**
1928
1962
  * Reshape recorded inputs before they are spread into `fn`.
1929
1963
  *
@@ -2917,6 +2951,7 @@ declare class Bitfab {
2917
2951
  /** Dataset operations for the authenticated organization. */
2918
2952
  readonly datasets: DatasetsClient;
2919
2953
  readonly assertionCategories: AssertionCategoriesClient;
2954
+ readonly organizationMembers: OrganizationMembersClient;
2920
2955
  readonly traces: TracesClient;
2921
2956
  readonly labels: LabelsClient;
2922
2957
  readonly graders: GradersClient;
@@ -3622,7 +3657,7 @@ interface CommitRef {
3622
3657
  /**
3623
3658
  * SDK version from package.json (injected at build time)
3624
3659
  */
3625
- declare const __version__ = "0.58.1";
3660
+ declare const __version__ = "0.58.3";
3626
3661
 
3627
3662
  /**
3628
3663
  * Constants for the Bitfab SDK.
@@ -3761,4 +3796,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
3761
3796
  run?: boolean;
3762
3797
  }): Promise<SeedResult>;
3763
3798
 
3764
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionVerdict, 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 GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, 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, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type PotentialAssertionEvidence, 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, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, 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 };
3799
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, 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 GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, 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, 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 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, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, 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
@@ -12,6 +12,7 @@ import {
12
12
  DatasetsClient,
13
13
  GradersClient,
14
14
  LabelsClient,
15
+ OrganizationMembersClient,
15
16
  SUPPORTED_PROVIDERS,
16
17
  TracesClient,
17
18
  defineReplayRegistry,
@@ -21,7 +22,7 @@ import {
21
22
  getCurrentTrace,
22
23
  reseedFromRegistry,
23
24
  seedFromRegistry
24
- } from "./chunk-HWRU7JIH.js";
25
+ } from "./chunk-XBZO7PFX.js";
25
26
  import "./chunk-RCHSYWKI.js";
26
27
  import {
27
28
  BITFAB_PROGRESS_PREFIX,
@@ -30,7 +31,7 @@ import {
30
31
  ReplayError,
31
32
  reportReplayProgress,
32
33
  serializeReplayResult
33
- } from "./chunk-UFN6S5N4.js";
34
+ } from "./chunk-KOWM65AV.js";
34
35
  import {
35
36
  BitfabError,
36
37
  DEFAULT_SERVICE_URL,
@@ -38,7 +39,7 @@ import {
38
39
  MixedTracingError,
39
40
  __version__,
40
41
  flushTraces
41
- } from "./chunk-KTDGHM36.js";
42
+ } from "./chunk-WVFMRMV4.js";
42
43
  import "./chunk-VCRFFCLY.js";
43
44
  export {
44
45
  AssertionCategoriesClient,
@@ -62,6 +63,7 @@ export {
62
63
  LabelsClient,
63
64
  MixedTracingError,
64
65
  NO_MOCK_OVERRIDE,
66
+ OrganizationMembersClient,
65
67
  ReplayError,
66
68
  SUPPORTED_PROVIDERS,
67
69
  TracesClient,
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.58.1";
91
+ __version__ = "0.58.3";
92
92
  __packageName__ = "@bitfab/sdk";
93
93
  }
94
94
  });
@@ -2885,7 +2885,7 @@ var init_http = __esm({
2885
2885
  * Start a replay session by fetching historical traces.
2886
2886
  * Blocking call - creates a test run and returns lightweight item references.
2887
2887
  */
2888
- async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions) {
2888
+ async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, judgeAssertions) {
2889
2889
  const payload = { traceFunctionKey };
2890
2890
  if (limit !== void 0) {
2891
2891
  payload.limit = limit;
@@ -2931,6 +2931,9 @@ var init_http = __esm({
2931
2931
  if (onlyWithAssertions) {
2932
2932
  payload.onlyWithAssertions = true;
2933
2933
  }
2934
+ if (judgeAssertions) {
2935
+ payload.judgeAssertions = true;
2936
+ }
2934
2937
  const git = await resolvedGitState();
2935
2938
  if (git && !isEmptyGitState(git)) {
2936
2939
  payload.git = git;
@@ -4088,7 +4091,8 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
4088
4091
  resolveDbBranchSettings(options?.dbBranch),
4089
4092
  attempts,
4090
4093
  options?.adaptInputs !== void 0,
4091
- options?.onlyWithAssertions
4094
+ options?.onlyWithAssertions,
4095
+ options?.judgeAssertions
4092
4096
  );
4093
4097
  if (serverItems.length === 0) {
4094
4098
  try {
@@ -4413,6 +4417,7 @@ __export(node_exports, {
4413
4417
  LabelsClient: () => LabelsClient,
4414
4418
  MixedTracingError: () => MixedTracingError,
4415
4419
  NO_MOCK_OVERRIDE: () => NO_MOCK_OVERRIDE,
4420
+ OrganizationMembersClient: () => OrganizationMembersClient,
4416
4421
  ReplayError: () => ReplayError,
4417
4422
  SUPPORTED_PROVIDERS: () => SUPPORTED_PROVIDERS,
4418
4423
  TracesClient: () => TracesClient,
@@ -7123,6 +7128,22 @@ function openAiAgentsParentSpanId(bitfabTraceId, enclosingSpanIds) {
7123
7128
  return void 0;
7124
7129
  }
7125
7130
 
7131
+ // src/organizationMembers.ts
7132
+ var MEMBERS_PATH = "/api/sdk/organizationMembers";
7133
+ var OrganizationMembersClient = class {
7134
+ constructor(httpClient) {
7135
+ this.httpClient = httpClient;
7136
+ }
7137
+ /**
7138
+ * List the organization's members, ordered by name. Read it to find the
7139
+ * address to pass as an assertion's `assigneeEmail`.
7140
+ */
7141
+ async list() {
7142
+ const response = await this.httpClient.get(MEMBERS_PATH);
7143
+ return response.members;
7144
+ }
7145
+ };
7146
+
7126
7147
  // src/client.ts
7127
7148
  init_randomUuid();
7128
7149
  init_replay();
@@ -8788,6 +8809,7 @@ var Bitfab = class {
8788
8809
  }
8789
8810
  this.datasets = new DatasetsClient(this.httpClient);
8790
8811
  this.assertionCategories = new AssertionCategoriesClient(this.httpClient);
8812
+ this.organizationMembers = new OrganizationMembersClient(this.httpClient);
8791
8813
  this.traces = new TracesClient(this.httpClient);
8792
8814
  this.labels = new LabelsClient(this.httpClient);
8793
8815
  this.graders = new GradersClient(this.httpClient);
@@ -11032,6 +11054,7 @@ assertAsyncStorageRegistered();
11032
11054
  LabelsClient,
11033
11055
  MixedTracingError,
11034
11056
  NO_MOCK_OVERRIDE,
11057
+ OrganizationMembersClient,
11035
11058
  ReplayError,
11036
11059
  SUPPORTED_PROVIDERS,
11037
11060
  TracesClient,