bitfab 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-756R63DD.js → chunk-34VY4J27.js} +24 -6
  2. package/dist/chunk-34VY4J27.js.map +1 -0
  3. package/dist/{chunk-EQLQVY2O.js → chunk-EIWNY3FF.js} +6 -3
  4. package/dist/{chunk-EQLQVY2O.js.map → chunk-EIWNY3FF.js.map} +1 -1
  5. package/dist/{chunk-4GTG3VPY.js → chunk-HJLWJ3L2.js} +4 -3
  6. package/dist/chunk-HJLWJ3L2.js.map +1 -0
  7. package/dist/{chunk-QSLJE2DR.js → chunk-HNUEEGIB.js} +3 -3
  8. package/dist/chunk-HNUEEGIB.js.map +1 -0
  9. package/dist/{chunk-UETYTJEO.js → chunk-YWWDW5FX.js} +6 -3
  10. package/dist/{chunk-UETYTJEO.js.map → chunk-YWWDW5FX.js.map} +1 -1
  11. package/dist/{http-LAXF2MGX.js → http-Q75A3OKB.js} +2 -2
  12. package/dist/{http-7BKMLT23.js → http-XH36DD6T.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-FMSQGE2H.js → replay-QN6M3Q6H.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-4GTG3VPY.js.map +0 -1
  29. package/dist/chunk-756R63DD.js.map +0 -1
  30. package/dist/chunk-QSLJE2DR.js.map +0 -1
  31. /package/dist/{http-7BKMLT23.js.map → http-Q75A3OKB.js.map} +0 -0
  32. /package/dist/{http-LAXF2MGX.js.map → http-XH36DD6T.js.map} +0 -0
  33. /package/dist/{replay-FMSQGE2H.js.map → replay-QN6M3Q6H.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
@@ -21,6 +21,7 @@ import {
21
21
  DatasetsClient,
22
22
  GradersClient,
23
23
  LabelsClient,
24
+ OrganizationMembersClient,
24
25
  SUPPORTED_PROVIDERS,
25
26
  TracesClient,
26
27
  defineReplayRegistry,
@@ -30,7 +31,7 @@ import {
30
31
  getCurrentTrace,
31
32
  reseedFromRegistry,
32
33
  seedFromRegistry
33
- } from "./chunk-756R63DD.js";
34
+ } from "./chunk-34VY4J27.js";
34
35
  import "./chunk-RCHSYWKI.js";
35
36
  import {
36
37
  BITFAB_PROGRESS_PREFIX,
@@ -39,7 +40,7 @@ import {
39
40
  ReplayError,
40
41
  reportReplayProgress,
41
42
  serializeReplayResult
42
- } from "./chunk-4GTG3VPY.js";
43
+ } from "./chunk-HJLWJ3L2.js";
43
44
  import {
44
45
  BitfabError,
45
46
  DEFAULT_SERVICE_URL,
@@ -47,7 +48,7 @@ import {
47
48
  MixedTracingError,
48
49
  __version__,
49
50
  flushTraces
50
- } from "./chunk-EQLQVY2O.js";
51
+ } from "./chunk-EIWNY3FF.js";
51
52
  import "./chunk-VCRFFCLY.js";
52
53
  export {
53
54
  AssertionCategoriesClient,
@@ -71,6 +72,7 @@ export {
71
72
  LabelsClient,
72
73
  MixedTracingError,
73
74
  NO_MOCK_OVERRIDE,
75
+ OrganizationMembersClient,
74
76
  ReplayError,
75
77
  SUPPORTED_PROVIDERS,
76
78
  TracesClient,
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.58.1";
100
+ __version__ = "0.58.3";
101
101
  __packageName__ = "bitfab";
102
102
  }
103
103
  });
@@ -2894,7 +2894,7 @@ var init_http = __esm({
2894
2894
  * Start a replay session by fetching historical traces.
2895
2895
  * Blocking call - creates a test run and returns lightweight item references.
2896
2896
  */
2897
- async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions) {
2897
+ async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, judgeAssertions) {
2898
2898
  const payload = { traceFunctionKey };
2899
2899
  if (limit !== void 0) {
2900
2900
  payload.limit = limit;
@@ -2940,6 +2940,9 @@ var init_http = __esm({
2940
2940
  if (onlyWithAssertions) {
2941
2941
  payload.onlyWithAssertions = true;
2942
2942
  }
2943
+ if (judgeAssertions) {
2944
+ payload.judgeAssertions = true;
2945
+ }
2943
2946
  const git = await resolvedGitState();
2944
2947
  if (git && !isEmptyGitState(git)) {
2945
2948
  payload.git = git;
@@ -4097,7 +4100,8 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
4097
4100
  resolveDbBranchSettings(options?.dbBranch),
4098
4101
  attempts,
4099
4102
  options?.adaptInputs !== void 0,
4100
- options?.onlyWithAssertions
4103
+ options?.onlyWithAssertions,
4104
+ options?.judgeAssertions
4101
4105
  );
4102
4106
  if (serverItems.length === 0) {
4103
4107
  try {
@@ -4422,6 +4426,7 @@ __export(node_exports, {
4422
4426
  LabelsClient: () => LabelsClient,
4423
4427
  MixedTracingError: () => MixedTracingError,
4424
4428
  NO_MOCK_OVERRIDE: () => NO_MOCK_OVERRIDE,
4429
+ OrganizationMembersClient: () => OrganizationMembersClient,
4425
4430
  ReplayError: () => ReplayError,
4426
4431
  SUPPORTED_PROVIDERS: () => SUPPORTED_PROVIDERS,
4427
4432
  TracesClient: () => TracesClient,
@@ -7132,6 +7137,22 @@ function openAiAgentsParentSpanId(bitfabTraceId, enclosingSpanIds) {
7132
7137
  return void 0;
7133
7138
  }
7134
7139
 
7140
+ // src/organizationMembers.ts
7141
+ var MEMBERS_PATH = "/api/sdk/organizationMembers";
7142
+ var OrganizationMembersClient = class {
7143
+ constructor(httpClient) {
7144
+ this.httpClient = httpClient;
7145
+ }
7146
+ /**
7147
+ * List the organization's members, ordered by name. Read it to find the
7148
+ * address to pass as an assertion's `assigneeEmail`.
7149
+ */
7150
+ async list() {
7151
+ const response = await this.httpClient.get(MEMBERS_PATH);
7152
+ return response.members;
7153
+ }
7154
+ };
7155
+
7135
7156
  // src/client.ts
7136
7157
  init_randomUuid();
7137
7158
  init_replay();
@@ -8797,6 +8818,7 @@ var Bitfab = class {
8797
8818
  }
8798
8819
  this.datasets = new DatasetsClient(this.httpClient);
8799
8820
  this.assertionCategories = new AssertionCategoriesClient(this.httpClient);
8821
+ this.organizationMembers = new OrganizationMembersClient(this.httpClient);
8800
8822
  this.traces = new TracesClient(this.httpClient);
8801
8823
  this.labels = new LabelsClient(this.httpClient);
8802
8824
  this.graders = new GradersClient(this.httpClient);
@@ -11041,6 +11063,7 @@ assertAsyncStorageRegistered();
11041
11063
  LabelsClient,
11042
11064
  MixedTracingError,
11043
11065
  NO_MOCK_OVERRIDE,
11066
+ OrganizationMembersClient,
11044
11067
  ReplayError,
11045
11068
  SUPPORTED_PROVIDERS,
11046
11069
  TracesClient,