bitfab 0.28.0 → 0.28.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.
package/dist/index.cjs CHANGED
@@ -360,7 +360,7 @@ function buildMockTree(rootNode) {
360
360
  function walk(node) {
361
361
  const key = node.traceFunctionKey;
362
362
  if (key) {
363
- const name = node.spanName;
363
+ const name = node.spanName || key;
364
364
  const counterKey = `${key}:${name}`;
365
365
  const index = counters.get(counterKey) ?? 0;
366
366
  counters.set(counterKey, index + 1);
@@ -538,6 +538,7 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
538
538
  }
539
539
  try {
540
540
  options?.onProgress?.({
541
+ testRunId,
541
542
  completed,
542
543
  total,
543
544
  succeeded,
@@ -547,8 +548,15 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
547
548
  // that just settled. The item's own traceId is the new replay
548
549
  // trace and is assigned later (below), so use the server item.
549
550
  traceId: serverItems[index]?.traceId ?? null,
551
+ replayTraceId: item.traceId,
552
+ input: item.input,
553
+ result: item.result,
554
+ originalOutput: item.originalOutput,
550
555
  error: item.error,
551
- durationMs: item.durationMs
556
+ durationMs: item.durationMs,
557
+ tokens: item.tokens,
558
+ model: item.model,
559
+ dbSnapshotRef: item.dbSnapshotRef
552
560
  }
553
561
  });
554
562
  } catch {
@@ -645,7 +653,7 @@ __export(index_exports, {
645
653
  module.exports = __toCommonJS(index_exports);
646
654
 
647
655
  // src/version.generated.ts
648
- var __version__ = "0.28.0";
656
+ var __version__ = "0.28.2";
649
657
 
650
658
  // src/constants.ts
651
659
  var DEFAULT_SERVICE_URL = "https://bitfab.ai";