@bitfab/sdk 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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BitfabError
3
- } from "./chunk-Z7WSB7TF.js";
3
+ } from "./chunk-EQ37ZZX5.js";
4
4
 
5
5
  // src/codeChange.ts
6
6
  var NUL = String.fromCharCode(0);
@@ -234,7 +234,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
234
234
  sessionId: seedCase.sessionId
235
235
  })
236
236
  );
237
- const { flushTraces: flushTraces2 } = await import("./http-TU5OTMRW.js");
237
+ const { flushTraces: flushTraces2 } = await import("./http-GRRJAMJR.js");
238
238
  await flushTraces2(3e4);
239
239
  return { pipeline, traceFunctionKey, traceIds };
240
240
  }
@@ -782,4 +782,4 @@ export {
782
782
  runRegistryMain,
783
783
  runIfEntrypoint
784
784
  };
785
- //# sourceMappingURL=chunk-TK5APEET.js.map
785
+ //# sourceMappingURL=chunk-RGOXYCIT.js.map
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-7V4LTGW3.js";
9
+ } from "./chunk-ATJLJEG4.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-YGPWUBNY.js.map
20
+ //# sourceMappingURL=http-3WXYZU2G.js.map
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-Z7WSB7TF.js";
9
+ } from "./chunk-EQ37ZZX5.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-TU5OTMRW.js.map
19
+ //# sourceMappingURL=http-GRRJAMJR.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.57.4";
45
+ __version__ = "0.57.6";
46
46
  __packageName__ = "@bitfab/sdk";
47
47
  }
48
48
  });
@@ -5978,7 +5978,9 @@ init_http();
5978
5978
  // src/labels.ts
5979
5979
  var LABELS_PATH = "/api/sdk/traces/labels";
5980
5980
  var HUMAN_LABELS_PATH = "/api/sdk/traces/labels/human";
5981
- var LABEL_EVIDENCE_PATH = "/api/sdk/traces/labels/label-evidence";
5981
+ function labelEvidencePath(traceId, assertionId) {
5982
+ return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions/${encodeURIComponent(assertionId)}/evidence`;
5983
+ }
5982
5984
  var LabelsClient = class {
5983
5985
  constructor(httpClient) {
5984
5986
  this.httpClient = httpClient;
@@ -6027,15 +6029,9 @@ var LabelsClient = class {
6027
6029
  );
6028
6030
  return response.labels;
6029
6031
  }
6030
- /** Suggest evidence for a whole-trace or assertion label. Currently returns an empty list. */
6031
- async getLabelEvidence(traceId, assertionId) {
6032
- const query = new URLSearchParams({ traceId });
6033
- if (assertionId !== void 0) {
6034
- query.set("assertionId", assertionId);
6035
- }
6036
- const response = await this.httpClient.get(
6037
- `${LABEL_EVIDENCE_PATH}?${query.toString()}`
6038
- );
6032
+ /** Generate suggested evidence for an assertion on an original or replay trace. */
6033
+ async generateLabelEvidence(traceId, assertionId) {
6034
+ const response = await this.httpClient.get(labelEvidencePath(traceId, assertionId));
6039
6035
  return response.evidence;
6040
6036
  }
6041
6037
  };