@bitfab/sdk 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/{chunk-MD4XQGAF.js → chunk-3PCOUZZP.js} +11 -3
- package/dist/chunk-3PCOUZZP.js.map +1 -0
- package/dist/{chunk-RS5Z6YXY.js → chunk-NZFPJRD3.js} +4 -4
- package/dist/{chunk-RS5Z6YXY.js.map → chunk-NZFPJRD3.js.map} +1 -1
- package/dist/index.cjs +11 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +2 -2
- package/dist/node.cjs +11 -3
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +2 -2
- package/dist/{replay-J3YTYE7V.js → replay-PZKPWKMV.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-MD4XQGAF.js.map +0 -1
- /package/dist/{replay-J3YTYE7V.js.map → replay-PZKPWKMV.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -351,7 +351,7 @@ function buildMockTree(rootNode) {
|
|
|
351
351
|
function walk(node) {
|
|
352
352
|
const key = node.traceFunctionKey;
|
|
353
353
|
if (key) {
|
|
354
|
-
const name = node.spanName;
|
|
354
|
+
const name = node.spanName || key;
|
|
355
355
|
const counterKey = `${key}:${name}`;
|
|
356
356
|
const index = counters.get(counterKey) ?? 0;
|
|
357
357
|
counters.set(counterKey, index + 1);
|
|
@@ -529,6 +529,7 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
|
|
|
529
529
|
}
|
|
530
530
|
try {
|
|
531
531
|
options?.onProgress?.({
|
|
532
|
+
testRunId,
|
|
532
533
|
completed,
|
|
533
534
|
total,
|
|
534
535
|
succeeded,
|
|
@@ -538,8 +539,15 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
|
|
|
538
539
|
// that just settled. The item's own traceId is the new replay
|
|
539
540
|
// trace and is assigned later (below), so use the server item.
|
|
540
541
|
traceId: serverItems[index]?.traceId ?? null,
|
|
542
|
+
replayTraceId: item.traceId,
|
|
543
|
+
input: item.input,
|
|
544
|
+
result: item.result,
|
|
545
|
+
originalOutput: item.originalOutput,
|
|
541
546
|
error: item.error,
|
|
542
|
-
durationMs: item.durationMs
|
|
547
|
+
durationMs: item.durationMs,
|
|
548
|
+
tokens: item.tokens,
|
|
549
|
+
model: item.model,
|
|
550
|
+
dbSnapshotRef: item.dbSnapshotRef
|
|
543
551
|
}
|
|
544
552
|
});
|
|
545
553
|
} catch {
|
|
@@ -636,7 +644,7 @@ __export(index_exports, {
|
|
|
636
644
|
module.exports = __toCommonJS(index_exports);
|
|
637
645
|
|
|
638
646
|
// src/version.generated.ts
|
|
639
|
-
var __version__ = "0.28.
|
|
647
|
+
var __version__ = "0.28.2";
|
|
640
648
|
|
|
641
649
|
// src/constants.ts
|
|
642
650
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|