bitfab 0.63.0 → 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.
Files changed (31) hide show
  1. package/cloudReplay.py +889 -707
  2. package/dist/{chunk-NUMYG5MD.js → chunk-3D67XMAO.js} +10 -4
  3. package/dist/{chunk-NUMYG5MD.js.map → chunk-3D67XMAO.js.map} +1 -1
  4. package/dist/{chunk-VLBEFEIP.js → chunk-5WYDAQAK.js} +10 -4
  5. package/dist/{chunk-VLBEFEIP.js.map → chunk-5WYDAQAK.js.map} +1 -1
  6. package/dist/{chunk-GNDDPHTZ.js → chunk-NJQ5P6V7.js} +6 -4
  7. package/dist/chunk-NJQ5P6V7.js.map +1 -0
  8. package/dist/{chunk-TTWRFQPU.js → chunk-NZCQ5TG4.js} +43 -22
  9. package/dist/chunk-NZCQ5TG4.js.map +1 -0
  10. package/dist/{chunk-KI2TAU36.js → chunk-ZRZDSP2R.js} +6 -6
  11. package/dist/{chunk-KI2TAU36.js.map → chunk-ZRZDSP2R.js.map} +1 -1
  12. package/dist/{http-EVUZHBV4.js → http-HXDG3XBJ.js} +2 -2
  13. package/dist/{http-N3TK6ASX.js → http-OJLI4LKV.js} +2 -2
  14. package/dist/index.cjs +50 -23
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +26 -19
  17. package/dist/index.d.ts +26 -19
  18. package/dist/index.js +3 -3
  19. package/dist/node.cjs +50 -23
  20. package/dist/node.cjs.map +1 -1
  21. package/dist/node.js +3 -3
  22. package/dist/{replay-ZH6CNI22.js → replay-MIBLRJKS.js} +3 -3
  23. package/dist/replayCli.js +21 -10
  24. package/dist/replayCli.js.map +1 -1
  25. package/dist/seedCli.js +2 -2
  26. package/package.json +1 -1
  27. package/dist/chunk-GNDDPHTZ.js.map +0 -1
  28. package/dist/chunk-TTWRFQPU.js.map +0 -1
  29. /package/dist/{http-EVUZHBV4.js.map → http-HXDG3XBJ.js.map} +0 -0
  30. /package/dist/{http-N3TK6ASX.js.map → http-OJLI4LKV.js.map} +0 -0
  31. /package/dist/{replay-ZH6CNI22.js.map → replay-MIBLRJKS.js.map} +0 -0
@@ -181,7 +181,7 @@ function encodeRequestBody(body) {
181
181
  }
182
182
 
183
183
  // src/version.generated.ts
184
- var __version__ = "0.63.0";
184
+ var __version__ = "0.63.2";
185
185
  var __packageName__ = "bitfab";
186
186
 
187
187
  // src/errors.ts
@@ -2186,7 +2186,7 @@ var HttpClient = class {
2186
2186
  * Start a replay session by fetching historical traces.
2187
2187
  * Blocking call - creates an experiment and returns lightweight item references.
2188
2188
  */
2189
- async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, skipAssertionJudging, experimentalSelectiveReplay, notes, metadata) {
2189
+ async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, skipAssertionJudging, experimentalSelectiveReplay, notes, metadata, dryRun) {
2190
2190
  const payload = { traceFunctionKey };
2191
2191
  if (experimentalSelectiveReplay !== void 0) {
2192
2192
  payload.experimentalSelectiveReplay = experimentalSelectiveReplay;
@@ -2244,6 +2244,9 @@ var HttpClient = class {
2244
2244
  if (skipAssertionJudging !== true) {
2245
2245
  payload.judgeAssertions = true;
2246
2246
  }
2247
+ if (dryRun) {
2248
+ payload.dryRun = true;
2249
+ }
2247
2250
  const git = await resolvedGitState();
2248
2251
  if (git && !isEmptyGitState(git)) {
2249
2252
  payload.git = git;
@@ -2257,7 +2260,10 @@ var HttpClient = class {
2257
2260
  const { testRunId, testRunUrl, ...rest } = response;
2258
2261
  const experimentId = response.experimentId ?? testRunId;
2259
2262
  const experimentUrl = response.experimentUrl ?? testRunUrl;
2260
- if (experimentId === void 0 || experimentUrl === void 0) {
2263
+ if (dryRun && response.experimentId === null) {
2264
+ return { ...rest, experimentId: null, experimentUrl: null };
2265
+ }
2266
+ if (experimentId === void 0 || experimentId === null || experimentUrl === void 0 || experimentUrl === null) {
2261
2267
  throw new BitfabError(
2262
2268
  "Replay start response is missing the experiment ID or URL."
2263
2269
  );
@@ -2493,4 +2499,4 @@ export {
2493
2499
  HttpClient,
2494
2500
  experimentIdWireFields
2495
2501
  };
2496
- //# sourceMappingURL=chunk-VLBEFEIP.js.map
2502
+ //# sourceMappingURL=chunk-5WYDAQAK.js.map