bitfab 0.57.3 → 0.57.5

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-JLKB3VT3.js";
20
+ } from "./chunk-VPZ2LTU6.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-B7G7QH2S.js";
40
+ } from "./chunk-255I4PN4.js";
41
41
  import {
42
42
  __privateAdd,
43
43
  __privateGet,
@@ -3185,9 +3185,23 @@ var SEARCH_PATH = "/api/sdk/traces/search";
3185
3185
  function traceAssertionsPath(traceId, suffix = "") {
3186
3186
  return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
3187
3187
  }
3188
+ function assertionEvidencePath(assertionId) {
3189
+ return `/api/sdk/traces/assertions/${encodeURIComponent(assertionId)}/evidence`;
3190
+ }
3191
+ var TraceAssertionsClient = class {
3192
+ constructor(httpClient) {
3193
+ this.httpClient = httpClient;
3194
+ }
3195
+ /** Suggest evidence for an assertion, enriched with its span context. */
3196
+ async getAssertionEvidence(assertionId) {
3197
+ const response = await this.httpClient.get(assertionEvidencePath(assertionId));
3198
+ return response.evidence;
3199
+ }
3200
+ };
3188
3201
  var TracesClient = class {
3189
3202
  constructor(httpClient) {
3190
3203
  this.httpClient = httpClient;
3204
+ this.assertions = new TraceAssertionsClient(httpClient);
3191
3205
  }
3192
3206
  async search(params) {
3193
3207
  return this.httpClient.request(SEARCH_PATH, params);
@@ -6008,7 +6022,7 @@ var Bitfab = class {
6008
6022
  await runWithSeedContext({ traceId }, async () => target(...args));
6009
6023
  } finally {
6010
6024
  try {
6011
- const { flushTraces: flushTraces2 } = await import("./http-JVWNLQ4C.js");
6025
+ const { flushTraces: flushTraces2 } = await import("./http-CHXMOVLK.js");
6012
6026
  await flushTraces2(3e4);
6013
6027
  } finally {
6014
6028
  unrecorded = activeTraceStates.delete(traceId);
@@ -6067,7 +6081,7 @@ var Bitfab = class {
6067
6081
  `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.`
6068
6082
  );
6069
6083
  }
6070
- const { replay: doReplay } = await import("./replay-OZCQPRSL.js");
6084
+ const { replay: doReplay } = await import("./replay-CHM7OQ25.js");
6071
6085
  return doReplay(
6072
6086
  this.httpClient,
6073
6087
  this.serviceUrl,
@@ -6387,7 +6401,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
6387
6401
  sessionId: seedCase.sessionId
6388
6402
  })
6389
6403
  );
6390
- const { flushTraces: flushTraces2 } = await import("./http-JVWNLQ4C.js");
6404
+ const { flushTraces: flushTraces2 } = await import("./http-CHXMOVLK.js");
6391
6405
  await flushTraces2(3e4);
6392
6406
  return { pipeline, traceFunctionKey, traceIds };
6393
6407
  }
@@ -6413,6 +6427,7 @@ export {
6413
6427
  BitfabLangGraphIntegration,
6414
6428
  BitfabOpenAIAgentHandler,
6415
6429
  BitfabRivetIntegration,
6430
+ TraceAssertionsClient,
6416
6431
  TracesClient,
6417
6432
  BitfabOpenAITracingProcessor,
6418
6433
  BitfabVercelAiHandler,
@@ -6426,4 +6441,4 @@ export {
6426
6441
  reseedFromRegistry,
6427
6442
  seedFromRegistry
6428
6443
  };
6429
- //# sourceMappingURL=chunk-3MN4DLJH.js.map
6444
+ //# sourceMappingURL=chunk-YO3HKQX6.js.map