@bitfab/sdk 0.64.28 → 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 (34) hide show
  1. package/dist/{chunk-YHOEROQD.js → chunk-2YYVO4RI.js} +4 -4
  2. package/dist/{chunk-76JZFING.js → chunk-BDPDIXLA.js} +16 -7
  3. package/dist/chunk-BDPDIXLA.js.map +1 -0
  4. package/dist/{chunk-PRL7RHVH.js → chunk-CBF3YILJ.js} +2 -2
  5. package/dist/{chunk-PRL7RHVH.js.map → chunk-CBF3YILJ.js.map} +1 -1
  6. package/dist/{chunk-DMELEG6J.js → chunk-KDYML76E.js} +2 -2
  7. package/dist/{chunk-JQAWBK2H.js → chunk-Q74E5WXG.js} +2 -2
  8. package/dist/{chunk-JQAWBK2H.js.map → chunk-Q74E5WXG.js.map} +1 -1
  9. package/dist/{chunk-45NVW5X6.js → chunk-UIDS5FUO.js} +2 -2
  10. package/dist/{http-5HDU4GXW.js → http-7AS2BELK.js} +2 -2
  11. package/dist/{http-BLY35UVE.js → http-CTG3RWQO.js} +2 -2
  12. package/dist/index.cjs +11 -2
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +23 -3
  15. package/dist/index.d.ts +23 -3
  16. package/dist/index.js +3 -3
  17. package/dist/node.cjs +11 -2
  18. package/dist/node.cjs.map +1 -1
  19. package/dist/node.d.cts +1 -1
  20. package/dist/node.d.ts +1 -1
  21. package/dist/node.js +3 -3
  22. package/dist/{replay-HSY2CUX5.js → replay-FSWT222C.js} +3 -3
  23. package/dist/{replay-CLERHFPY.js → replay-JV22WC77.js} +3 -3
  24. package/dist/replayCli.js +3 -3
  25. package/dist/seedCli.js +3 -3
  26. package/package.json +1 -1
  27. package/dist/chunk-76JZFING.js.map +0 -1
  28. /package/dist/{chunk-YHOEROQD.js.map → chunk-2YYVO4RI.js.map} +0 -0
  29. /package/dist/{chunk-DMELEG6J.js.map → chunk-KDYML76E.js.map} +0 -0
  30. /package/dist/{chunk-45NVW5X6.js.map → chunk-UIDS5FUO.js.map} +0 -0
  31. /package/dist/{http-5HDU4GXW.js.map → http-7AS2BELK.js.map} +0 -0
  32. /package/dist/{http-BLY35UVE.js.map → http-CTG3RWQO.js.map} +0 -0
  33. /package/dist/{replay-CLERHFPY.js.map → replay-FSWT222C.js.map} +0 -0
  34. /package/dist/{replay-HSY2CUX5.js.map → replay-JV22WC77.js.map} +0 -0
@@ -6,13 +6,13 @@ import {
6
6
  serializeReplayResult,
7
7
  warnJudgeAssertionsDeprecated,
8
8
  withCliFlags
9
- } from "./chunk-DMELEG6J.js";
9
+ } from "./chunk-KDYML76E.js";
10
10
  import {
11
11
  BitfabError,
12
12
  asyncStorageReady,
13
13
  createAsyncLocalStorage,
14
14
  warnOnce
15
- } from "./chunk-JQAWBK2H.js";
15
+ } from "./chunk-Q74E5WXG.js";
16
16
 
17
17
  // src/autoTrace.ts
18
18
  var autoTraceGlobal = globalThis;
@@ -458,7 +458,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
458
458
  sessionId: seedCase.sessionId
459
459
  })
460
460
  );
461
- const { flushTraces } = await import("./http-5HDU4GXW.js");
461
+ const { flushTraces } = await import("./http-7AS2BELK.js");
462
462
  await flushTraces(3e4);
463
463
  return { pipeline, traceFunctionKey, traceIds };
464
464
  }
@@ -1173,4 +1173,4 @@ export {
1173
1173
  runRegistryMain,
1174
1174
  runIfEntrypoint
1175
1175
  };
1176
- //# sourceMappingURL=chunk-YHOEROQD.js.map
1176
+ //# sourceMappingURL=chunk-2YYVO4RI.js.map
@@ -17,7 +17,7 @@ import {
17
17
  serializeValue,
18
18
  toJsonSafe,
19
19
  toJsonSafeReport
20
- } from "./chunk-45NVW5X6.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-PRL7RHVH.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-BLY35UVE.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-HSY2CUX5.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-BLY35UVE.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-76JZFING.js.map
6830
+ //# sourceMappingURL=chunk-BDPDIXLA.js.map