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/{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
|
@@ -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.
|
|
656
|
+
var __version__ = "0.28.2";
|
|
649
657
|
|
|
650
658
|
// src/constants.ts
|
|
651
659
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|