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
package/dist/index.cjs
CHANGED
|
@@ -692,7 +692,7 @@ __export(index_exports, {
|
|
|
692
692
|
module.exports = __toCommonJS(index_exports);
|
|
693
693
|
|
|
694
694
|
// src/version.generated.ts
|
|
695
|
-
var __version__ = "0.28.
|
|
695
|
+
var __version__ = "0.28.9";
|
|
696
696
|
|
|
697
697
|
// src/constants.ts
|
|
698
698
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -3971,13 +3971,16 @@ var Bitfab = class {
|
|
|
3971
3971
|
}
|
|
3972
3972
|
try {
|
|
3973
3973
|
const endedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
3974
|
-
const
|
|
3974
|
+
const traceDropped = activeTraceStates.get(traceId)?.dropped === true;
|
|
3975
|
+
const spanPromise = traceDropped ? Promise.resolve() : self.sendWrapperSpan({
|
|
3975
3976
|
...baseSpanParams,
|
|
3976
3977
|
...params,
|
|
3977
3978
|
contexts: newContext.contexts,
|
|
3978
3979
|
prompt: newContext.prompt,
|
|
3979
3980
|
endedAt,
|
|
3980
|
-
...replayCtx?.testRunId && {
|
|
3981
|
+
...replayCtx?.testRunId && {
|
|
3982
|
+
testRunId: replayCtx.testRunId
|
|
3983
|
+
},
|
|
3981
3984
|
...replayCtx?.inputSourceSpanId && {
|
|
3982
3985
|
inputSourceSpanId: replayCtx.inputSourceSpanId
|
|
3983
3986
|
}
|
|
@@ -4065,7 +4068,7 @@ var Bitfab = class {
|
|
|
4065
4068
|
meta: mockSpan.outputMeta
|
|
4066
4069
|
});
|
|
4067
4070
|
}
|
|
4068
|
-
void sendSpan({ result: output });
|
|
4071
|
+
void sendSpan({ result: output, mocked: true });
|
|
4069
4072
|
if (fnReturnsPromise) {
|
|
4070
4073
|
return Promise.resolve(output);
|
|
4071
4074
|
}
|
|
@@ -4317,7 +4320,8 @@ var Bitfab = class {
|
|
|
4317
4320
|
sourceTraceId: params.traceId,
|
|
4318
4321
|
traceFunctionKey: params.traceFunctionKey,
|
|
4319
4322
|
rawSpan: externalSpan,
|
|
4320
|
-
...params.testRunId && { testRunId: params.testRunId }
|
|
4323
|
+
...params.testRunId && { testRunId: params.testRunId },
|
|
4324
|
+
...params.mocked && { mocked: true }
|
|
4321
4325
|
});
|
|
4322
4326
|
}
|
|
4323
4327
|
/**
|