@bitfab/sdk 0.45.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ import {
5
5
  replayContextReady,
6
6
  runWithReplayContext,
7
7
  warnOnce
8
- } from "./chunk-TCOD5O2B.js";
8
+ } from "./chunk-YKHZGYAC.js";
9
9
 
10
10
  // src/codeChange.ts
11
11
  var MAX_FILES = 60;
@@ -1191,4 +1191,4 @@ export {
1191
1191
  sleepForReplayPersistence,
1192
1192
  replay
1193
1193
  };
1194
- //# sourceMappingURL=chunk-H4WJUUZH.js.map
1194
+ //# sourceMappingURL=chunk-G52ZQTWU.js.map
@@ -14,7 +14,7 @@ import {
14
14
  serializeValue,
15
15
  toJsonSafe,
16
16
  toJsonSafeReport
17
- } from "./chunk-H4WJUUZH.js";
17
+ } from "./chunk-G52ZQTWU.js";
18
18
  import {
19
19
  BitfabError,
20
20
  DEFAULT_SERVICE_URL,
@@ -22,7 +22,7 @@ import {
22
22
  MixedTracingError,
23
23
  getReplayContext,
24
24
  warnOnce
25
- } from "./chunk-TCOD5O2B.js";
25
+ } from "./chunk-YKHZGYAC.js";
26
26
  import {
27
27
  __privateAdd,
28
28
  __privateGet,
@@ -1166,20 +1166,20 @@ var LabelsClient = class {
1166
1166
  constructor(httpClient) {
1167
1167
  this.httpClient = httpClient;
1168
1168
  }
1169
- async save(params) {
1169
+ async save(update, testRunId) {
1170
+ const [outcome] = await this.saveAll([update], testRunId);
1171
+ return outcome;
1172
+ }
1173
+ async saveAll(updates, testRunId) {
1170
1174
  const response = await this.httpClient.request(
1171
1175
  LABELS_PATH,
1172
1176
  {
1173
- labels: params.labels,
1174
- ...params.testRunId === void 0 ? {} : { testRunId: params.testRunId }
1177
+ labels: updates,
1178
+ ...testRunId === void 0 ? {} : { testRunId }
1175
1179
  }
1176
1180
  );
1177
1181
  return response.labels;
1178
1182
  }
1179
- async saveOne(update, testRunId) {
1180
- const [outcome] = await this.save({ labels: [update], testRunId });
1181
- return outcome;
1182
- }
1183
1183
  };
1184
1184
 
1185
1185
  // src/langgraph.ts
@@ -4500,7 +4500,7 @@ var Bitfab = class {
4500
4500
  await runWithSeedContext({ traceId }, async () => target(...args));
4501
4501
  } finally {
4502
4502
  try {
4503
- const { flushTraces: flushTraces2 } = await import("./http-E7RYN3BX.js");
4503
+ const { flushTraces: flushTraces2 } = await import("./http-BUAOWCLI.js");
4504
4504
  await flushTraces2(3e4);
4505
4505
  } finally {
4506
4506
  unrecorded = activeTraceStates.delete(traceId);
@@ -4528,7 +4528,7 @@ var Bitfab = class {
4528
4528
  `Function is wrapped with trace function key '${wrappedKey}' but replay was called with '${traceFunctionKey}'. Pass matching keys, or pass the unwrapped function to replay it under the explicit key.`
4529
4529
  );
4530
4530
  }
4531
- const { replay: doReplay } = await import("./replay-PQSTJRPU.js");
4531
+ const { replay: doReplay } = await import("./replay-OONSKTLR.js");
4532
4532
  return doReplay(
4533
4533
  this.httpClient,
4534
4534
  this.serviceUrl,
@@ -4794,7 +4794,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
4794
4794
  sessionId: seedCase.sessionId
4795
4795
  })
4796
4796
  );
4797
- const { flushTraces: flushTraces2 } = await import("./http-E7RYN3BX.js");
4797
+ const { flushTraces: flushTraces2 } = await import("./http-BUAOWCLI.js");
4798
4798
  await flushTraces2(3e4);
4799
4799
  return { pipeline, traceFunctionKey, traceIds };
4800
4800
  }
@@ -4829,4 +4829,4 @@ export {
4829
4829
  defineReplayRegistry,
4830
4830
  seedFromRegistry
4831
4831
  };
4832
- //# sourceMappingURL=chunk-GN6E2IBU.js.map
4832
+ //# sourceMappingURL=chunk-LP2CN7SZ.js.map