@bitfab/sdk 0.57.5 → 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.
Files changed (31) hide show
  1. package/dist/{chunk-4R5G55MG.js → chunk-36PIGPJ7.js} +14 -21
  2. package/dist/chunk-36PIGPJ7.js.map +1 -0
  3. package/dist/{chunk-AMILC6CQ.js → chunk-3ZKAW5PB.js} +2 -2
  4. package/dist/{chunk-NK25R6UX.js → chunk-ATJLJEG4.js} +2 -2
  5. package/dist/{chunk-NK25R6UX.js.map → chunk-ATJLJEG4.js.map} +1 -1
  6. package/dist/{chunk-2ZPZUOD6.js → chunk-EQ37ZZX5.js} +2 -2
  7. package/dist/{chunk-2ZPZUOD6.js.map → chunk-EQ37ZZX5.js.map} +1 -1
  8. package/dist/{chunk-7KY75E3I.js → chunk-RGOXYCIT.js} +3 -3
  9. package/dist/{http-N62YN7QQ.js → http-3WXYZU2G.js} +2 -2
  10. package/dist/{http-MKYC373Q.js → http-GRRJAMJR.js} +2 -2
  11. package/dist/index.cjs +9 -17
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +121 -126
  14. package/dist/index.d.ts +121 -126
  15. package/dist/index.js +3 -5
  16. package/dist/node.cjs +9 -17
  17. package/dist/node.cjs.map +1 -1
  18. package/dist/node.d.cts +1 -1
  19. package/dist/node.d.ts +1 -1
  20. package/dist/node.js +3 -5
  21. package/dist/node.js.map +1 -1
  22. package/dist/{replay-4IVG6F7L.js → replay-LZ2BS3CD.js} +3 -3
  23. package/dist/replayCli.js +2 -2
  24. package/dist/seedCli.js +2 -2
  25. package/package.json +1 -1
  26. package/dist/chunk-4R5G55MG.js.map +0 -1
  27. /package/dist/{chunk-AMILC6CQ.js.map → chunk-3ZKAW5PB.js.map} +0 -0
  28. /package/dist/{chunk-7KY75E3I.js.map → chunk-RGOXYCIT.js.map} +0 -0
  29. /package/dist/{http-MKYC373Q.js.map → http-3WXYZU2G.js.map} +0 -0
  30. /package/dist/{http-N62YN7QQ.js.map → http-GRRJAMJR.js.map} +0 -0
  31. /package/dist/{replay-4IVG6F7L.js.map → replay-LZ2BS3CD.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BitfabError
3
- } from "./chunk-2ZPZUOD6.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-MKYC373Q.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-7KY75E3I.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-NK25R6UX.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-N62YN7QQ.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-2ZPZUOD6.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-MKYC373Q.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.5";
45
+ __version__ = "0.57.6";
46
46
  __packageName__ = "@bitfab/sdk";
47
47
  }
48
48
  });
@@ -4382,7 +4382,6 @@ __export(index_exports, {
4382
4382
  NO_MOCK_OVERRIDE: () => NO_MOCK_OVERRIDE,
4383
4383
  ReplayError: () => ReplayError,
4384
4384
  SUPPORTED_PROVIDERS: () => SUPPORTED_PROVIDERS,
4385
- TraceAssertionsClient: () => TraceAssertionsClient,
4386
4385
  TracesClient: () => TracesClient,
4387
4386
  __version__: () => __version__,
4388
4387
  defineReplayRegistry: () => defineReplayRegistry,
@@ -5979,6 +5978,9 @@ init_http();
5979
5978
  // src/labels.ts
5980
5979
  var LABELS_PATH = "/api/sdk/traces/labels";
5981
5980
  var HUMAN_LABELS_PATH = "/api/sdk/traces/labels/human";
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,6 +6029,11 @@ var LabelsClient = class {
6027
6029
  );
6028
6030
  return response.labels;
6029
6031
  }
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));
6035
+ return response.evidence;
6036
+ }
6030
6037
  };
6031
6038
 
6032
6039
  // src/langgraph.ts
@@ -7741,23 +7748,9 @@ var SEARCH_PATH = "/api/sdk/traces/search";
7741
7748
  function traceAssertionsPath(traceId, suffix = "") {
7742
7749
  return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
7743
7750
  }
7744
- function assertionEvidencePath(assertionId) {
7745
- return `/api/sdk/traces/assertions/${encodeURIComponent(assertionId)}/evidence`;
7746
- }
7747
- var TraceAssertionsClient = class {
7748
- constructor(httpClient) {
7749
- this.httpClient = httpClient;
7750
- }
7751
- /** Suggest evidence for an assertion, enriched with its span context. */
7752
- async getAssertionEvidence(assertionId) {
7753
- const response = await this.httpClient.get(assertionEvidencePath(assertionId));
7754
- return response.evidence;
7755
- }
7756
- };
7757
7751
  var TracesClient = class {
7758
7752
  constructor(httpClient) {
7759
7753
  this.httpClient = httpClient;
7760
- this.assertions = new TraceAssertionsClient(httpClient);
7761
7754
  }
7762
7755
  async search(params) {
7763
7756
  return this.httpClient.request(SEARCH_PATH, params);
@@ -11011,7 +11004,6 @@ function resolveTraceFunctionKey(registration) {
11011
11004
  NO_MOCK_OVERRIDE,
11012
11005
  ReplayError,
11013
11006
  SUPPORTED_PROVIDERS,
11014
- TraceAssertionsClient,
11015
11007
  TracesClient,
11016
11008
  __version__,
11017
11009
  defineReplayRegistry,