@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
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-KTDGHM36.js";
9
+ } from "./chunk-WVFMRMV4.js";
10
10
  import "./chunk-VCRFFCLY.js";
11
11
  export {
12
12
  BitfabError,
@@ -17,4 +17,4 @@ export {
17
17
  parseRetryAfterMs,
18
18
  serializePayloadBody
19
19
  };
20
- //# sourceMappingURL=http-TYON36K5.js.map
20
+ //# sourceMappingURL=http-ARGY6JF2.js.map
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-SVTMTBTK.js";
9
+ } from "./chunk-E4W3LSVL.js";
10
10
  export {
11
11
  BitfabError,
12
12
  HttpClient,
@@ -16,4 +16,4 @@ export {
16
16
  parseRetryAfterMs,
17
17
  serializePayloadBody
18
18
  };
19
- //# sourceMappingURL=http-WVARIJG2.js.map
19
+ //# sourceMappingURL=http-ZI4BQTKT.js.map
package/dist/index.cjs CHANGED
@@ -42,7 +42,7 @@ var __version__, __packageName__;
42
42
  var init_version_generated = __esm({
43
43
  "src/version.generated.ts"() {
44
44
  "use strict";
45
- __version__ = "0.58.1";
45
+ __version__ = "0.58.3";
46
46
  __packageName__ = "@bitfab/sdk";
47
47
  }
48
48
  });
@@ -2878,7 +2878,7 @@ var init_http = __esm({
2878
2878
  * Start a replay session by fetching historical traces.
2879
2879
  * Blocking call - creates a test run and returns lightweight item references.
2880
2880
  */
2881
- async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions) {
2881
+ async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, judgeAssertions) {
2882
2882
  const payload = { traceFunctionKey };
2883
2883
  if (limit !== void 0) {
2884
2884
  payload.limit = limit;
@@ -2924,6 +2924,9 @@ var init_http = __esm({
2924
2924
  if (onlyWithAssertions) {
2925
2925
  payload.onlyWithAssertions = true;
2926
2926
  }
2927
+ if (judgeAssertions) {
2928
+ payload.judgeAssertions = true;
2929
+ }
2927
2930
  const git = await resolvedGitState();
2928
2931
  if (git && !isEmptyGitState(git)) {
2929
2932
  payload.git = git;
@@ -4081,7 +4084,8 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
4081
4084
  resolveDbBranchSettings(options?.dbBranch),
4082
4085
  attempts,
4083
4086
  options?.adaptInputs !== void 0,
4084
- options?.onlyWithAssertions
4087
+ options?.onlyWithAssertions,
4088
+ options?.judgeAssertions
4085
4089
  );
4086
4090
  if (serverItems.length === 0) {
4087
4091
  try {
@@ -4406,6 +4410,7 @@ __export(index_exports, {
4406
4410
  LabelsClient: () => LabelsClient,
4407
4411
  MixedTracingError: () => MixedTracingError,
4408
4412
  NO_MOCK_OVERRIDE: () => NO_MOCK_OVERRIDE,
4413
+ OrganizationMembersClient: () => OrganizationMembersClient,
4409
4414
  ReplayError: () => ReplayError,
4410
4415
  SUPPORTED_PROVIDERS: () => SUPPORTED_PROVIDERS,
4411
4416
  TracesClient: () => TracesClient,
@@ -7109,6 +7114,22 @@ function openAiAgentsParentSpanId(bitfabTraceId, enclosingSpanIds) {
7109
7114
  return void 0;
7110
7115
  }
7111
7116
 
7117
+ // src/organizationMembers.ts
7118
+ var MEMBERS_PATH = "/api/sdk/organizationMembers";
7119
+ var OrganizationMembersClient = class {
7120
+ constructor(httpClient) {
7121
+ this.httpClient = httpClient;
7122
+ }
7123
+ /**
7124
+ * List the organization's members, ordered by name. Read it to find the
7125
+ * address to pass as an assertion's `assigneeEmail`.
7126
+ */
7127
+ async list() {
7128
+ const response = await this.httpClient.get(MEMBERS_PATH);
7129
+ return response.members;
7130
+ }
7131
+ };
7132
+
7112
7133
  // src/client.ts
7113
7134
  init_randomUuid();
7114
7135
  init_replay();
@@ -8774,6 +8795,7 @@ var Bitfab = class {
8774
8795
  }
8775
8796
  this.datasets = new DatasetsClient(this.httpClient);
8776
8797
  this.assertionCategories = new AssertionCategoriesClient(this.httpClient);
8798
+ this.organizationMembers = new OrganizationMembersClient(this.httpClient);
8777
8799
  this.traces = new TracesClient(this.httpClient);
8778
8800
  this.labels = new LabelsClient(this.httpClient);
8779
8801
  this.graders = new GradersClient(this.httpClient);
@@ -11014,6 +11036,7 @@ function resolveTraceFunctionKey(registration) {
11014
11036
  LabelsClient,
11015
11037
  MixedTracingError,
11016
11038
  NO_MOCK_OVERRIDE,
11039
+ OrganizationMembersClient,
11017
11040
  ReplayError,
11018
11041
  SUPPORTED_PROVIDERS,
11019
11042
  TracesClient,