bitfab 0.62.2 → 0.62.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.
@@ -17,7 +17,7 @@ import {
17
17
  serializeValue,
18
18
  toJsonSafe,
19
19
  toJsonSafeReport
20
- } from "./chunk-RIYIEUW4.js";
20
+ } from "./chunk-T6O3MFM4.js";
21
21
  import {
22
22
  BitfabError,
23
23
  CONTENT_OFF_KEY,
@@ -36,7 +36,7 @@ import {
36
36
  readEnv,
37
37
  recordCallerTraceMetadata,
38
38
  retireTraceMetadata
39
- } from "./chunk-Q53HNU3K.js";
39
+ } from "./chunk-DRRJRCVG.js";
40
40
  import {
41
41
  __privateAdd,
42
42
  __privateGet,
@@ -1473,6 +1473,14 @@ var GradersClient = class {
1473
1473
  );
1474
1474
  return response.labels;
1475
1475
  }
1476
+ async saveLabel(update) {
1477
+ const [outcome] = await this.saveLabelAll([update]);
1478
+ return outcome;
1479
+ }
1480
+ async saveLabelAll(updates) {
1481
+ const response = await this.httpClient.request(GRADER_LABELS_PATH, { labels: updates });
1482
+ return response.labels;
1483
+ }
1476
1484
  };
1477
1485
 
1478
1486
  // src/labels.ts
@@ -6166,7 +6174,7 @@ var Bitfab = class {
6166
6174
  await runWithSeedContext({ traceId }, async () => target(...args));
6167
6175
  } finally {
6168
6176
  try {
6169
- const { flushTraces: flushTraces2 } = await import("./http-BMF67MZ2.js");
6177
+ const { flushTraces: flushTraces2 } = await import("./http-SWK5U3S4.js");
6170
6178
  await flushTraces2(3e4);
6171
6179
  } finally {
6172
6180
  unrecorded = activeTraceStates.delete(traceId);
@@ -6225,7 +6233,7 @@ var Bitfab = class {
6225
6233
  `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.`
6226
6234
  );
6227
6235
  }
6228
- const { replay: doReplay } = await import("./replay-EBTPRVWQ.js");
6236
+ const { replay: doReplay } = await import("./replay-BN4FM6MX.js");
6229
6237
  return doReplay(
6230
6238
  this.httpClient,
6231
6239
  this.serviceUrl,
@@ -6545,7 +6553,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
6545
6553
  sessionId: seedCase.sessionId
6546
6554
  })
6547
6555
  );
6548
- const { flushTraces: flushTraces2 } = await import("./http-BMF67MZ2.js");
6556
+ const { flushTraces: flushTraces2 } = await import("./http-SWK5U3S4.js");
6549
6557
  await flushTraces2(3e4);
6550
6558
  return { pipeline, traceFunctionKey, traceIds };
6551
6559
  }
@@ -6589,4 +6597,4 @@ export {
6589
6597
  reseedFromRegistry,
6590
6598
  seedFromRegistry
6591
6599
  };
6592
- //# sourceMappingURL=chunk-OLVCZPQW.js.map
6600
+ //# sourceMappingURL=chunk-BPOAXWVS.js.map