bitfab 0.57.4 → 0.57.6

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.
@@ -6,7 +6,7 @@ import {
6
6
  replayContextReady,
7
7
  runWithReplayContext,
8
8
  warnOnce
9
- } from "./chunk-DAXBPYIY.js";
9
+ } from "./chunk-UTBA3ASY.js";
10
10
  import {
11
11
  runWithCaptureSuppressed
12
12
  } from "./chunk-VCRFFCLY.js";
@@ -1263,4 +1263,4 @@ export {
1263
1263
  sleepForReplayPersistence,
1264
1264
  replay
1265
1265
  };
1266
- //# sourceMappingURL=chunk-FWTA2X72.js.map
1266
+ //# sourceMappingURL=chunk-GT4IDECP.js.map
@@ -17,7 +17,7 @@ import {
17
17
  serializeValue,
18
18
  toJsonSafe,
19
19
  toJsonSafeReport
20
- } from "./chunk-FWTA2X72.js";
20
+ } from "./chunk-GT4IDECP.js";
21
21
  import {
22
22
  BitfabError,
23
23
  CONTENT_OFF_KEY,
@@ -37,7 +37,7 @@ import {
37
37
  retireTraceMetadata,
38
38
  traceIdOf,
39
39
  warnOnce
40
- } from "./chunk-DAXBPYIY.js";
40
+ } from "./chunk-UTBA3ASY.js";
41
41
  import {
42
42
  __privateAdd,
43
43
  __privateGet,
@@ -1453,7 +1453,9 @@ var GradersClient = class {
1453
1453
  // src/labels.ts
1454
1454
  var LABELS_PATH = "/api/sdk/traces/labels";
1455
1455
  var HUMAN_LABELS_PATH = "/api/sdk/traces/labels/human";
1456
- var LABEL_EVIDENCE_PATH = "/api/sdk/traces/labels/label-evidence";
1456
+ function labelEvidencePath(traceId, assertionId) {
1457
+ return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions/${encodeURIComponent(assertionId)}/evidence`;
1458
+ }
1457
1459
  var LabelsClient = class {
1458
1460
  constructor(httpClient) {
1459
1461
  this.httpClient = httpClient;
@@ -1502,15 +1504,9 @@ var LabelsClient = class {
1502
1504
  );
1503
1505
  return response.labels;
1504
1506
  }
1505
- /** Suggest evidence for a whole-trace or assertion label. Currently returns an empty list. */
1506
- async getLabelEvidence(traceId, assertionId) {
1507
- const query = new URLSearchParams({ traceId });
1508
- if (assertionId !== void 0) {
1509
- query.set("assertionId", assertionId);
1510
- }
1511
- const response = await this.httpClient.get(
1512
- `${LABEL_EVIDENCE_PATH}?${query.toString()}`
1513
- );
1507
+ /** Generate suggested evidence for an assertion on an original or replay trace. */
1508
+ async generateLabelEvidence(traceId, assertionId) {
1509
+ const response = await this.httpClient.get(labelEvidencePath(traceId, assertionId));
1514
1510
  return response.evidence;
1515
1511
  }
1516
1512
  };
@@ -6020,7 +6016,7 @@ var Bitfab = class {
6020
6016
  await runWithSeedContext({ traceId }, async () => target(...args));
6021
6017
  } finally {
6022
6018
  try {
6023
- const { flushTraces: flushTraces2 } = await import("./http-K2YSJIIQ.js");
6019
+ const { flushTraces: flushTraces2 } = await import("./http-EYKH2EPD.js");
6024
6020
  await flushTraces2(3e4);
6025
6021
  } finally {
6026
6022
  unrecorded = activeTraceStates.delete(traceId);
@@ -6079,7 +6075,7 @@ var Bitfab = class {
6079
6075
  `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.`
6080
6076
  );
6081
6077
  }
6082
- const { replay: doReplay } = await import("./replay-XMOWRAMM.js");
6078
+ const { replay: doReplay } = await import("./replay-W2KNVMMJ.js");
6083
6079
  return doReplay(
6084
6080
  this.httpClient,
6085
6081
  this.serviceUrl,
@@ -6399,7 +6395,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
6399
6395
  sessionId: seedCase.sessionId
6400
6396
  })
6401
6397
  );
6402
- const { flushTraces: flushTraces2 } = await import("./http-K2YSJIIQ.js");
6398
+ const { flushTraces: flushTraces2 } = await import("./http-EYKH2EPD.js");
6403
6399
  await flushTraces2(3e4);
6404
6400
  return { pipeline, traceFunctionKey, traceIds };
6405
6401
  }
@@ -6438,4 +6434,4 @@ export {
6438
6434
  reseedFromRegistry,
6439
6435
  seedFromRegistry
6440
6436
  };
6441
- //# sourceMappingURL=chunk-JRGN2HRU.js.map
6437
+ //# sourceMappingURL=chunk-ICL6RSND.js.map