@bitfab/sdk 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
@@ -14,12 +14,12 @@ import {
14
14
  flushTraces,
15
15
  getCurrentSpan,
16
16
  getCurrentTrace
17
- } from "./chunk-RTPEBWVO.js";
17
+ } from "./chunk-FHCRK2P6.js";
18
18
  import {
19
19
  BITFAB_PROGRESS_PREFIX,
20
20
  BitfabError,
21
21
  reportReplayProgress
22
- } from "./chunk-YZU6WFG2.js";
22
+ } from "./chunk-2EFKQLJ7.js";
23
23
  export {
24
24
  BITFAB_PROGRESS_PREFIX,
25
25
  Bitfab,
package/dist/node.cjs CHANGED
@@ -567,7 +567,8 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
567
567
  options?.environment !== void 0,
568
568
  // includeDbBranchLease
569
569
  options?.experimentGroupId,
570
- options?.datasetId
570
+ options?.datasetId,
571
+ options?.graderIds
571
572
  );
572
573
  const mockStrategy = options?.mock ?? "marked";
573
574
  const maxConcurrency = options?.maxConcurrency ?? 10;
@@ -760,7 +761,7 @@ registerAsyncLocalStorageClass(
760
761
  );
761
762
 
762
763
  // src/version.generated.ts
763
- var __version__ = "0.29.1";
764
+ var __version__ = "0.30.0";
764
765
 
765
766
  // src/constants.ts
766
767
  var DEFAULT_SERVICE_URL = "https://bitfab.ai";
@@ -1119,7 +1120,7 @@ var HttpClient = class {
1119
1120
  * Start a replay session by fetching historical traces.
1120
1121
  * Blocking call - creates a test run and returns lightweight item references.
1121
1122
  */
1122
- async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId) {
1123
+ async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId, graderIds) {
1123
1124
  const payload = { traceFunctionKey };
1124
1125
  if (limit !== void 0) {
1125
1126
  payload.limit = limit;
@@ -1145,6 +1146,9 @@ var HttpClient = class {
1145
1146
  if (datasetId !== void 0) {
1146
1147
  payload.datasetId = datasetId;
1147
1148
  }
1149
+ if (graderIds !== void 0) {
1150
+ payload.graderIds = graderIds;
1151
+ }
1148
1152
  const timeout = includeDbBranchLease ? 18e4 : 3e4;
1149
1153
  return this.request("/api/sdk/replay/start", payload, {
1150
1154
  timeout