@bitfab/sdk 0.64.27 → 0.64.29

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 (36) hide show
  1. package/dist/{chunk-AXFICSPS.js → chunk-2YYVO4RI.js} +11 -5
  2. package/dist/{chunk-AXFICSPS.js.map → chunk-2YYVO4RI.js.map} +1 -1
  3. package/dist/{chunk-OYTAKT5B.js → chunk-BDPDIXLA.js} +16 -7
  4. package/dist/chunk-BDPDIXLA.js.map +1 -0
  5. package/dist/{chunk-HTRMFABJ.js → chunk-CBF3YILJ.js} +6 -3
  6. package/dist/{chunk-HTRMFABJ.js.map → chunk-CBF3YILJ.js.map} +1 -1
  7. package/dist/{chunk-FOAYPDCS.js → chunk-KDYML76E.js} +9 -2
  8. package/dist/chunk-KDYML76E.js.map +1 -0
  9. package/dist/{chunk-DWQ36HBO.js → chunk-Q74E5WXG.js} +6 -3
  10. package/dist/{chunk-DWQ36HBO.js.map → chunk-Q74E5WXG.js.map} +1 -1
  11. package/dist/{chunk-MROIROUR.js → chunk-UIDS5FUO.js} +9 -2
  12. package/dist/chunk-UIDS5FUO.js.map +1 -0
  13. package/dist/{http-DUDJA3SE.js → http-7AS2BELK.js} +2 -2
  14. package/dist/{http-2ZLYPJ27.js → http-CTG3RWQO.js} +2 -2
  15. package/dist/index.cjs +22 -3
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +34 -5
  18. package/dist/index.d.ts +34 -5
  19. package/dist/index.js +3 -3
  20. package/dist/node.cjs +22 -3
  21. package/dist/node.cjs.map +1 -1
  22. package/dist/node.d.cts +1 -1
  23. package/dist/node.d.ts +1 -1
  24. package/dist/node.js +3 -3
  25. package/dist/{replay-JYRJ443I.js → replay-FSWT222C.js} +3 -3
  26. package/dist/{replay-2S663YTX.js → replay-JV22WC77.js} +3 -3
  27. package/dist/replayCli.js +3 -3
  28. package/dist/seedCli.js +3 -3
  29. package/package.json +1 -1
  30. package/dist/chunk-FOAYPDCS.js.map +0 -1
  31. package/dist/chunk-MROIROUR.js.map +0 -1
  32. package/dist/chunk-OYTAKT5B.js.map +0 -1
  33. /package/dist/{http-2ZLYPJ27.js.map → http-7AS2BELK.js.map} +0 -0
  34. /package/dist/{http-DUDJA3SE.js.map → http-CTG3RWQO.js.map} +0 -0
  35. /package/dist/{replay-2S663YTX.js.map → replay-FSWT222C.js.map} +0 -0
  36. /package/dist/{replay-JYRJ443I.js.map → replay-JV22WC77.js.map} +0 -0
@@ -17,7 +17,7 @@ import {
17
17
  serializeValue,
18
18
  toJsonSafe,
19
19
  toJsonSafeReport
20
- } from "./chunk-MROIROUR.js";
20
+ } from "./chunk-UIDS5FUO.js";
21
21
  import {
22
22
  BitfabError,
23
23
  CONTENT_OFF_KEY,
@@ -37,7 +37,7 @@ import {
37
37
  readEnv,
38
38
  recordCallerTraceMetadata,
39
39
  retireTraceMetadata
40
- } from "./chunk-HTRMFABJ.js";
40
+ } from "./chunk-CBF3YILJ.js";
41
41
  import {
42
42
  __privateAdd,
43
43
  __privateGet,
@@ -1600,7 +1600,7 @@ function assertEveryVerdictNamesAnAssertion(updates) {
1600
1600
  (update) => update.traceId ?? update.originalTraceId
1601
1601
  );
1602
1602
  throw new BitfabError(
1603
- `Agent verdicts must name an assertion: ${targets.join(", ")}. Pass the assertionId of the assertion each verdict scores to labels.save, saveAll, and skip. Only archive may omit it, to clear an old whole-trace verdict.`
1603
+ `Agent verdicts must name an assertion: ${targets.join(", ")}. Pass the assertionId of the assertion each verdict scores to labels.save, saveAll, skip, and abstain. Only archive may omit it, to clear an old whole-trace verdict.`
1604
1604
  );
1605
1605
  }
1606
1606
  }
@@ -1640,6 +1640,15 @@ var LabelsClient = class {
1640
1640
  async skip(target, experimentId) {
1641
1641
  return this.save({ ...target, skip: true }, experimentId);
1642
1642
  }
1643
+ /**
1644
+ * Record that the evidence does not show the part of the run this assertion
1645
+ * checks, so there was nothing to judge. Counted as a fail in every pass
1646
+ * rate, but stored and read back as an abstention, apart from a fail. Pass
1647
+ * `annotation` to say what the evidence would have had to show.
1648
+ */
1649
+ async abstain(target, experimentId) {
1650
+ return this.save({ ...target, abstain: true }, experimentId);
1651
+ }
1643
1652
  async archive(target, experimentId) {
1644
1653
  return this.save({ ...target, archive: true }, experimentId);
1645
1654
  }
@@ -6367,7 +6376,7 @@ var Bitfab = class {
6367
6376
  await runWithSeedContext({ traceId }, async () => target(...args));
6368
6377
  } finally {
6369
6378
  try {
6370
- const { flushTraces: flushTraces2 } = await import("./http-2ZLYPJ27.js");
6379
+ const { flushTraces: flushTraces2 } = await import("./http-CTG3RWQO.js");
6371
6380
  await flushTraces2(3e4);
6372
6381
  } finally {
6373
6382
  unrecorded = activeTraceStates.delete(traceId);
@@ -6426,7 +6435,7 @@ var Bitfab = class {
6426
6435
  `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.`
6427
6436
  );
6428
6437
  }
6429
- const { replay: doReplay } = await import("./replay-JYRJ443I.js");
6438
+ const { replay: doReplay } = await import("./replay-FSWT222C.js");
6430
6439
  return doReplay(
6431
6440
  this.httpClient,
6432
6441
  this.serviceUrl,
@@ -6772,7 +6781,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
6772
6781
  sessionId: seedCase.sessionId
6773
6782
  })
6774
6783
  );
6775
- const { flushTraces: flushTraces2 } = await import("./http-2ZLYPJ27.js");
6784
+ const { flushTraces: flushTraces2 } = await import("./http-CTG3RWQO.js");
6776
6785
  await flushTraces2(3e4);
6777
6786
  return { pipeline, traceFunctionKey, traceIds };
6778
6787
  }
@@ -6818,4 +6827,4 @@ export {
6818
6827
  reseedFromRegistry,
6819
6828
  seedFromRegistry
6820
6829
  };
6821
- //# sourceMappingURL=chunk-OYTAKT5B.js.map
6830
+ //# sourceMappingURL=chunk-BDPDIXLA.js.map