bitfab 0.28.7 → 0.28.9
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-TIMBGA3A.js → chunk-VQ4GMKQ7.js} +10 -6
- package/dist/{chunk-TIMBGA3A.js.map → chunk-VQ4GMKQ7.js.map} +1 -1
- package/dist/index.cjs +9 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +1 -1
- package/dist/node.cjs +9 -5
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-5E4BUIYA.js";
|
|
14
14
|
|
|
15
15
|
// src/version.generated.ts
|
|
16
|
-
var __version__ = "0.28.
|
|
16
|
+
var __version__ = "0.28.9";
|
|
17
17
|
|
|
18
18
|
// src/constants.ts
|
|
19
19
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -3269,13 +3269,16 @@ var Bitfab = class {
|
|
|
3269
3269
|
}
|
|
3270
3270
|
try {
|
|
3271
3271
|
const endedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
3272
|
-
const
|
|
3272
|
+
const traceDropped = activeTraceStates.get(traceId)?.dropped === true;
|
|
3273
|
+
const spanPromise = traceDropped ? Promise.resolve() : self.sendWrapperSpan({
|
|
3273
3274
|
...baseSpanParams,
|
|
3274
3275
|
...params,
|
|
3275
3276
|
contexts: newContext.contexts,
|
|
3276
3277
|
prompt: newContext.prompt,
|
|
3277
3278
|
endedAt,
|
|
3278
|
-
...replayCtx?.testRunId && {
|
|
3279
|
+
...replayCtx?.testRunId && {
|
|
3280
|
+
testRunId: replayCtx.testRunId
|
|
3281
|
+
},
|
|
3279
3282
|
...replayCtx?.inputSourceSpanId && {
|
|
3280
3283
|
inputSourceSpanId: replayCtx.inputSourceSpanId
|
|
3281
3284
|
}
|
|
@@ -3363,7 +3366,7 @@ var Bitfab = class {
|
|
|
3363
3366
|
meta: mockSpan.outputMeta
|
|
3364
3367
|
});
|
|
3365
3368
|
}
|
|
3366
|
-
void sendSpan({ result: output });
|
|
3369
|
+
void sendSpan({ result: output, mocked: true });
|
|
3367
3370
|
if (fnReturnsPromise) {
|
|
3368
3371
|
return Promise.resolve(output);
|
|
3369
3372
|
}
|
|
@@ -3615,7 +3618,8 @@ var Bitfab = class {
|
|
|
3615
3618
|
sourceTraceId: params.traceId,
|
|
3616
3619
|
traceFunctionKey: params.traceFunctionKey,
|
|
3617
3620
|
rawSpan: externalSpan,
|
|
3618
|
-
...params.testRunId && { testRunId: params.testRunId }
|
|
3621
|
+
...params.testRunId && { testRunId: params.testRunId },
|
|
3622
|
+
...params.mocked && { mocked: true }
|
|
3619
3623
|
});
|
|
3620
3624
|
}
|
|
3621
3625
|
/**
|
|
@@ -3877,4 +3881,4 @@ export {
|
|
|
3877
3881
|
BitfabFunction,
|
|
3878
3882
|
finalizers
|
|
3879
3883
|
};
|
|
3880
|
-
//# sourceMappingURL=chunk-
|
|
3884
|
+
//# sourceMappingURL=chunk-VQ4GMKQ7.js.map
|