bitfab 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-WYNN6NY2.js → chunk-EC7EZXDV.js} +2 -2
  2. package/dist/{chunk-WYNN6NY2.js.map → chunk-EC7EZXDV.js.map} +1 -1
  3. package/dist/{chunk-VPZ2LTU6.js → chunk-GT4IDECP.js} +2 -2
  4. package/dist/{chunk-YO3HKQX6.js → chunk-ICL6RSND.js} +14 -21
  5. package/dist/chunk-ICL6RSND.js.map +1 -0
  6. package/dist/{chunk-I5EG523G.js → chunk-IF7GVAWV.js} +3 -3
  7. package/dist/{chunk-255I4PN4.js → chunk-UTBA3ASY.js} +2 -2
  8. package/dist/{chunk-255I4PN4.js.map → chunk-UTBA3ASY.js.map} +1 -1
  9. package/dist/{http-CHXMOVLK.js → http-EYKH2EPD.js} +2 -2
  10. package/dist/{http-FQ76VRFF.js → http-U3V6WNLO.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-CHM7OQ25.js → replay-W2KNVMMJ.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-YO3HKQX6.js.map +0 -1
  27. /package/dist/{chunk-VPZ2LTU6.js.map → chunk-GT4IDECP.js.map} +0 -0
  28. /package/dist/{chunk-I5EG523G.js.map → chunk-IF7GVAWV.js.map} +0 -0
  29. /package/dist/{http-CHXMOVLK.js.map → http-EYKH2EPD.js.map} +0 -0
  30. /package/dist/{http-FQ76VRFF.js.map → http-U3V6WNLO.js.map} +0 -0
  31. /package/dist/{replay-CHM7OQ25.js.map → replay-W2KNVMMJ.js.map} +0 -0
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-255I4PN4.js";
9
+ } from "./chunk-UTBA3ASY.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-CHXMOVLK.js.map
20
+ //# sourceMappingURL=http-EYKH2EPD.js.map
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-WYNN6NY2.js";
9
+ } from "./chunk-EC7EZXDV.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-FQ76VRFF.js.map
19
+ //# sourceMappingURL=http-U3V6WNLO.js.map
package/dist/index.cjs CHANGED
@@ -51,7 +51,7 @@ var __version__, __packageName__;
51
51
  var init_version_generated = __esm({
52
52
  "src/version.generated.ts"() {
53
53
  "use strict";
54
- __version__ = "0.57.5";
54
+ __version__ = "0.57.6";
55
55
  __packageName__ = "bitfab";
56
56
  }
57
57
  });
@@ -4391,7 +4391,6 @@ __export(index_exports, {
4391
4391
  NO_MOCK_OVERRIDE: () => NO_MOCK_OVERRIDE,
4392
4392
  ReplayError: () => ReplayError,
4393
4393
  SUPPORTED_PROVIDERS: () => SUPPORTED_PROVIDERS,
4394
- TraceAssertionsClient: () => TraceAssertionsClient,
4395
4394
  TracesClient: () => TracesClient,
4396
4395
  __version__: () => __version__,
4397
4396
  defineReplayRegistry: () => defineReplayRegistry,
@@ -5988,6 +5987,9 @@ init_http();
5988
5987
  // src/labels.ts
5989
5988
  var LABELS_PATH = "/api/sdk/traces/labels";
5990
5989
  var HUMAN_LABELS_PATH = "/api/sdk/traces/labels/human";
5990
+ function labelEvidencePath(traceId, assertionId) {
5991
+ return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions/${encodeURIComponent(assertionId)}/evidence`;
5992
+ }
5991
5993
  var LabelsClient = class {
5992
5994
  constructor(httpClient) {
5993
5995
  this.httpClient = httpClient;
@@ -6036,6 +6038,11 @@ var LabelsClient = class {
6036
6038
  );
6037
6039
  return response.labels;
6038
6040
  }
6041
+ /** Generate suggested evidence for an assertion on an original or replay trace. */
6042
+ async generateLabelEvidence(traceId, assertionId) {
6043
+ const response = await this.httpClient.get(labelEvidencePath(traceId, assertionId));
6044
+ return response.evidence;
6045
+ }
6039
6046
  };
6040
6047
 
6041
6048
  // src/langgraph.ts
@@ -7750,23 +7757,9 @@ var SEARCH_PATH = "/api/sdk/traces/search";
7750
7757
  function traceAssertionsPath(traceId, suffix = "") {
7751
7758
  return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
7752
7759
  }
7753
- function assertionEvidencePath(assertionId) {
7754
- return `/api/sdk/traces/assertions/${encodeURIComponent(assertionId)}/evidence`;
7755
- }
7756
- var TraceAssertionsClient = class {
7757
- constructor(httpClient) {
7758
- this.httpClient = httpClient;
7759
- }
7760
- /** Suggest evidence for an assertion, enriched with its span context. */
7761
- async getAssertionEvidence(assertionId) {
7762
- const response = await this.httpClient.get(assertionEvidencePath(assertionId));
7763
- return response.evidence;
7764
- }
7765
- };
7766
7760
  var TracesClient = class {
7767
7761
  constructor(httpClient) {
7768
7762
  this.httpClient = httpClient;
7769
- this.assertions = new TraceAssertionsClient(httpClient);
7770
7763
  }
7771
7764
  async search(params) {
7772
7765
  return this.httpClient.request(SEARCH_PATH, params);
@@ -11020,7 +11013,6 @@ function resolveTraceFunctionKey(registration) {
11020
11013
  NO_MOCK_OVERRIDE,
11021
11014
  ReplayError,
11022
11015
  SUPPORTED_PROVIDERS,
11023
- TraceAssertionsClient,
11024
11016
  TracesClient,
11025
11017
  __version__,
11026
11018
  defineReplayRegistry,