@bitfab/sdk 0.36.12 → 0.36.13

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.
@@ -314,7 +314,7 @@ function encodeRequestBody(body) {
314
314
  }
315
315
 
316
316
  // src/version.generated.ts
317
- var __version__ = "0.36.12";
317
+ var __version__ = "0.36.13";
318
318
 
319
319
  // src/constants.ts
320
320
  var DEFAULT_SERVICE_URL = "https://bitfab.ai";
@@ -2446,20 +2446,17 @@ async function processItem(httpClient, serverItem, fn, testRunId, mockStrategy,
2446
2446
  includeOutputs,
2447
2447
  includeRootOutput: false
2448
2448
  });
2449
- if (treeResponse.root) {
2450
- mockTree = buildMockTree(treeResponse.root);
2451
- } else if (mockStrategy === "all" || hasOverrides) {
2449
+ if (!treeResponse.root) {
2452
2450
  throw new BitfabError(
2453
2451
  `Replay mock strategy "${mockStrategy}"${hasOverrides ? " with overrides" : ""} requires a span tree root for original span ${originalSpanId}.`
2454
2452
  );
2455
- } else {
2456
- mockTree = void 0;
2457
2453
  }
2458
- } catch (e) {
2459
- if (mockStrategy === "all" || hasOverrides) {
2460
- throw e;
2454
+ mockTree = buildMockTree(treeResponse.root);
2455
+ } catch (error2) {
2456
+ if (mockStrategy !== "marked" || hasOverrides) {
2457
+ throw error2;
2461
2458
  }
2462
- mockTree = void 0;
2459
+ mockTree = { spans: /* @__PURE__ */ new Map() };
2463
2460
  }
2464
2461
  }
2465
2462
  const outputCache = /* @__PURE__ */ new Map();
@@ -2933,4 +2930,4 @@ export {
2933
2930
  sleepForReplayPersistence,
2934
2931
  replay
2935
2932
  };
2936
- //# sourceMappingURL=chunk-VUYTATF5.js.map
2933
+ //# sourceMappingURL=chunk-VOUV7ZTS.js.map