bitfab 0.63.1 → 0.63.2

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.
@@ -189,7 +189,7 @@ function encodeRequestBody(body) {
189
189
  }
190
190
 
191
191
  // src/version.generated.ts
192
- var __version__ = "0.63.1";
192
+ var __version__ = "0.63.2";
193
193
  var __packageName__ = "bitfab";
194
194
 
195
195
  // src/constants.ts
@@ -2615,7 +2615,7 @@ var HttpClient = class {
2615
2615
  * Start a replay session by fetching historical traces.
2616
2616
  * Blocking call - creates an experiment and returns lightweight item references.
2617
2617
  */
2618
- async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, skipAssertionJudging, experimentalSelectiveReplay, notes, metadata) {
2618
+ async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, skipAssertionJudging, experimentalSelectiveReplay, notes, metadata, dryRun) {
2619
2619
  const payload = { traceFunctionKey };
2620
2620
  if (experimentalSelectiveReplay !== void 0) {
2621
2621
  payload.experimentalSelectiveReplay = experimentalSelectiveReplay;
@@ -2673,6 +2673,9 @@ var HttpClient = class {
2673
2673
  if (skipAssertionJudging !== true) {
2674
2674
  payload.judgeAssertions = true;
2675
2675
  }
2676
+ if (dryRun) {
2677
+ payload.dryRun = true;
2678
+ }
2676
2679
  const git = await resolvedGitState();
2677
2680
  if (git && !isEmptyGitState(git)) {
2678
2681
  payload.git = git;
@@ -2686,7 +2689,10 @@ var HttpClient = class {
2686
2689
  const { testRunId, testRunUrl, ...rest } = response;
2687
2690
  const experimentId = response.experimentId ?? testRunId;
2688
2691
  const experimentUrl = response.experimentUrl ?? testRunUrl;
2689
- if (experimentId === void 0 || experimentUrl === void 0) {
2692
+ if (dryRun && response.experimentId === null) {
2693
+ return { ...rest, experimentId: null, experimentUrl: null };
2694
+ }
2695
+ if (experimentId === void 0 || experimentId === null || experimentUrl === void 0 || experimentUrl === null) {
2690
2696
  throw new BitfabError(
2691
2697
  "Replay start response is missing the experiment ID or URL."
2692
2698
  );
@@ -2940,4 +2946,4 @@ export {
2940
2946
  HttpClient,
2941
2947
  experimentIdWireFields
2942
2948
  };
2943
- //# sourceMappingURL=chunk-Q74D6UQA.js.map
2949
+ //# sourceMappingURL=chunk-3D67XMAO.js.map