bitfab 0.29.1 → 0.30.0

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.
package/dist/index.d.cts CHANGED
@@ -749,6 +749,15 @@ interface ReplayOptions {
749
749
  * reconstructed. Validated server-side against the org.
750
750
  */
751
751
  datasetId?: string;
752
+ /**
753
+ * Graders to attach directly to this experiment (test run), independent of any
754
+ * graders already on the dataset. The resulting experiment is graded by the
755
+ * union of these and the dataset's runnable graders at completion, so use this
756
+ * to grade a single run with a check you don't want to add to the dataset
757
+ * permanently. Each id must be an active/live grader belonging to the same
758
+ * organization and trace function, otherwise the server rejects the replay.
759
+ */
760
+ graderIds?: string[];
752
761
  /**
753
762
  * Reshape recorded inputs before they are spread into `fn`.
754
763
  *
@@ -1799,7 +1808,7 @@ declare class BitfabFunction {
1799
1808
  /**
1800
1809
  * SDK version from package.json (injected at build time)
1801
1810
  */
1802
- declare const __version__ = "0.29.1";
1811
+ declare const __version__ = "0.30.0";
1803
1812
 
1804
1813
  /**
1805
1814
  * Constants for the Bitfab SDK.
package/dist/index.d.ts CHANGED
@@ -749,6 +749,15 @@ interface ReplayOptions {
749
749
  * reconstructed. Validated server-side against the org.
750
750
  */
751
751
  datasetId?: string;
752
+ /**
753
+ * Graders to attach directly to this experiment (test run), independent of any
754
+ * graders already on the dataset. The resulting experiment is graded by the
755
+ * union of these and the dataset's runnable graders at completion, so use this
756
+ * to grade a single run with a check you don't want to add to the dataset
757
+ * permanently. Each id must be an active/live grader belonging to the same
758
+ * organization and trace function, otherwise the server rejects the replay.
759
+ */
760
+ graderIds?: string[];
752
761
  /**
753
762
  * Reshape recorded inputs before they are spread into `fn`.
754
763
  *
@@ -1799,7 +1808,7 @@ declare class BitfabFunction {
1799
1808
  /**
1800
1809
  * SDK version from package.json (injected at build time)
1801
1810
  */
1802
- declare const __version__ = "0.29.1";
1811
+ declare const __version__ = "0.30.0";
1803
1812
 
1804
1813
  /**
1805
1814
  * Constants for the Bitfab SDK.
package/dist/index.js CHANGED
@@ -23,12 +23,12 @@ import {
23
23
  flushTraces,
24
24
  getCurrentSpan,
25
25
  getCurrentTrace
26
- } from "./chunk-RTPEBWVO.js";
26
+ } from "./chunk-FHCRK2P6.js";
27
27
  import {
28
28
  BITFAB_PROGRESS_PREFIX,
29
29
  BitfabError,
30
30
  reportReplayProgress
31
- } from "./chunk-YZU6WFG2.js";
31
+ } from "./chunk-2EFKQLJ7.js";
32
32
  export {
33
33
  BITFAB_PROGRESS_PREFIX,
34
34
  Bitfab,
package/dist/node.cjs CHANGED
@@ -576,7 +576,8 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
576
576
  options?.environment !== void 0,
577
577
  // includeDbBranchLease
578
578
  options?.experimentGroupId,
579
- options?.datasetId
579
+ options?.datasetId,
580
+ options?.graderIds
580
581
  );
581
582
  const mockStrategy = options?.mock ?? "marked";
582
583
  const maxConcurrency = options?.maxConcurrency ?? 10;
@@ -769,7 +770,7 @@ registerAsyncLocalStorageClass(
769
770
  );
770
771
 
771
772
  // src/version.generated.ts
772
- var __version__ = "0.29.1";
773
+ var __version__ = "0.30.0";
773
774
 
774
775
  // src/constants.ts
775
776
  var DEFAULT_SERVICE_URL = "https://bitfab.ai";
@@ -1128,7 +1129,7 @@ var HttpClient = class {
1128
1129
  * Start a replay session by fetching historical traces.
1129
1130
  * Blocking call - creates a test run and returns lightweight item references.
1130
1131
  */
1131
- async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId) {
1132
+ async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId, graderIds) {
1132
1133
  const payload = { traceFunctionKey };
1133
1134
  if (limit !== void 0) {
1134
1135
  payload.limit = limit;
@@ -1154,6 +1155,9 @@ var HttpClient = class {
1154
1155
  if (datasetId !== void 0) {
1155
1156
  payload.datasetId = datasetId;
1156
1157
  }
1158
+ if (graderIds !== void 0) {
1159
+ payload.graderIds = graderIds;
1160
+ }
1157
1161
  const timeout = includeDbBranchLease ? 18e4 : 3e4;
1158
1162
  return this.request("/api/sdk/replay/start", payload, {
1159
1163
  timeout