bitfab 0.58.4 → 0.58.5
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/autoTrace.cjs +50 -4
- package/dist/autoTrace.cjs.map +1 -1
- package/dist/autoTrace.d.cts +2 -1
- package/dist/autoTrace.d.ts +2 -1
- package/dist/autoTrace.js +4 -2
- package/dist/{chunk-KADON3SF.js → chunk-7SPNHC33.js} +6 -21
- package/dist/chunk-7SPNHC33.js.map +1 -0
- package/dist/{chunk-VCRFFCLY.js → chunk-BAOIRE5T.js} +20 -2
- package/dist/chunk-BAOIRE5T.js.map +1 -0
- package/dist/{chunk-RCHSYWKI.js → chunk-ETZUSSF6.js} +38 -8
- package/dist/chunk-ETZUSSF6.js.map +1 -0
- package/dist/{chunk-UOW7VDNB.js → chunk-OTQA6MCF.js} +3 -3
- package/dist/{chunk-32ZY3DYR.js → chunk-QIBFNIIF.js} +2 -2
- package/dist/{chunk-32ZY3DYR.js.map → chunk-QIBFNIIF.js.map} +1 -1
- package/dist/{chunk-NSD5YKCE.js → chunk-TAEWAXPA.js} +6 -6
- package/dist/{chunk-IVF7JQHF.js → chunk-UYAQRSCB.js} +11 -11
- package/dist/{http-TIOONTDB.js → http-F6QV3YLY.js} +3 -3
- package/dist/{http-XQGMIDFR.js → http-XDKEIZNV.js} +2 -2
- package/dist/index.cjs +26 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/node.cjs +26 -5
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +5 -5
- package/dist/{replay-CUHT4GUT.js → replay-WLJFWS6T.js} +4 -4
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-KADON3SF.js.map +0 -1
- package/dist/chunk-RCHSYWKI.js.map +0 -1
- package/dist/chunk-VCRFFCLY.js.map +0 -1
- /package/dist/{chunk-UOW7VDNB.js.map → chunk-OTQA6MCF.js.map} +0 -0
- /package/dist/{chunk-NSD5YKCE.js.map → chunk-TAEWAXPA.js.map} +0 -0
- /package/dist/{chunk-IVF7JQHF.js.map → chunk-UYAQRSCB.js.map} +0 -0
- /package/dist/{http-TIOONTDB.js.map → http-F6QV3YLY.js.map} +0 -0
- /package/dist/{http-XQGMIDFR.js.map → http-XDKEIZNV.js.map} +0 -0
- /package/dist/{replay-CUHT4GUT.js.map → replay-WLJFWS6T.js.map} +0 -0
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
flushTraces,
|
|
5
5
|
gitRunner,
|
|
6
6
|
replayContextReady,
|
|
7
|
-
runWithReplayContext
|
|
8
|
-
|
|
9
|
-
} from "./chunk-KADON3SF.js";
|
|
7
|
+
runWithReplayContext
|
|
8
|
+
} from "./chunk-7SPNHC33.js";
|
|
10
9
|
import {
|
|
11
|
-
runWithCaptureSuppressed
|
|
12
|
-
|
|
10
|
+
runWithCaptureSuppressed,
|
|
11
|
+
warnOnce
|
|
12
|
+
} from "./chunk-BAOIRE5T.js";
|
|
13
13
|
|
|
14
14
|
// src/codeChange.ts
|
|
15
15
|
var MAX_FILES = 60;
|
|
@@ -1264,4 +1264,4 @@ export {
|
|
|
1264
1264
|
sleepForReplayPersistence,
|
|
1265
1265
|
replay
|
|
1266
1266
|
};
|
|
1267
|
-
//# sourceMappingURL=chunk-
|
|
1267
|
+
//# sourceMappingURL=chunk-TAEWAXPA.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
runWithAutoTraceEntry,
|
|
7
7
|
runWithAutoTraceNodeConfiguration,
|
|
8
8
|
runWithAutoTraceRootContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ETZUSSF6.js";
|
|
10
10
|
import {
|
|
11
11
|
NO_MOCK_OVERRIDE,
|
|
12
12
|
createIntegrationFixtureContext,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
serializeValue,
|
|
18
18
|
toJsonSafe,
|
|
19
19
|
toJsonSafeReport
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TAEWAXPA.js";
|
|
21
21
|
import {
|
|
22
22
|
BitfabError,
|
|
23
23
|
CONTENT_OFF_KEY,
|
|
@@ -34,9 +34,8 @@ import {
|
|
|
34
34
|
makeSpanOrigin,
|
|
35
35
|
readEnv,
|
|
36
36
|
recordCallerTraceMetadata,
|
|
37
|
-
retireTraceMetadata
|
|
38
|
-
|
|
39
|
-
} from "./chunk-KADON3SF.js";
|
|
37
|
+
retireTraceMetadata
|
|
38
|
+
} from "./chunk-7SPNHC33.js";
|
|
40
39
|
import {
|
|
41
40
|
__privateAdd,
|
|
42
41
|
__privateGet,
|
|
@@ -44,8 +43,9 @@ import {
|
|
|
44
43
|
asyncStorageReady,
|
|
45
44
|
createAsyncLocalStorage,
|
|
46
45
|
isAsyncStorageInitDone,
|
|
47
|
-
isCaptureSuppressed
|
|
48
|
-
|
|
46
|
+
isCaptureSuppressed,
|
|
47
|
+
warnOnce
|
|
48
|
+
} from "./chunk-BAOIRE5T.js";
|
|
49
49
|
|
|
50
50
|
// src/assertionCategories.ts
|
|
51
51
|
var CATEGORIES_PATH = "/api/sdk/assertionCategories";
|
|
@@ -6043,7 +6043,7 @@ var Bitfab = class {
|
|
|
6043
6043
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
6044
6044
|
} finally {
|
|
6045
6045
|
try {
|
|
6046
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6046
|
+
const { flushTraces: flushTraces2 } = await import("./http-F6QV3YLY.js");
|
|
6047
6047
|
await flushTraces2(3e4);
|
|
6048
6048
|
} finally {
|
|
6049
6049
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -6102,7 +6102,7 @@ var Bitfab = class {
|
|
|
6102
6102
|
`Function is wrapped with trace function key '${wrappedKey}' but replay was called with '${traceFunctionKey}'. Pass matching keys, or pass the unwrapped function to replay it under the explicit key.`
|
|
6103
6103
|
);
|
|
6104
6104
|
}
|
|
6105
|
-
const { replay: doReplay } = await import("./replay-
|
|
6105
|
+
const { replay: doReplay } = await import("./replay-WLJFWS6T.js");
|
|
6106
6106
|
return doReplay(
|
|
6107
6107
|
this.httpClient,
|
|
6108
6108
|
this.serviceUrl,
|
|
@@ -6422,7 +6422,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
6422
6422
|
sessionId: seedCase.sessionId
|
|
6423
6423
|
})
|
|
6424
6424
|
);
|
|
6425
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6425
|
+
const { flushTraces: flushTraces2 } = await import("./http-F6QV3YLY.js");
|
|
6426
6426
|
await flushTraces2(3e4);
|
|
6427
6427
|
return { pipeline, traceFunctionKey, traceIds };
|
|
6428
6428
|
}
|
|
@@ -6462,4 +6462,4 @@ export {
|
|
|
6462
6462
|
reseedFromRegistry,
|
|
6463
6463
|
seedFromRegistry
|
|
6464
6464
|
};
|
|
6465
|
-
//# sourceMappingURL=chunk-
|
|
6465
|
+
//# sourceMappingURL=chunk-UYAQRSCB.js.map
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
flushTraces,
|
|
7
7
|
parseRetryAfterMs,
|
|
8
8
|
serializePayloadBody
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-7SPNHC33.js";
|
|
10
|
+
import "./chunk-BAOIRE5T.js";
|
|
11
11
|
export {
|
|
12
12
|
BitfabError,
|
|
13
13
|
HttpClient,
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
parseRetryAfterMs,
|
|
18
18
|
serializePayloadBody
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=http-
|
|
20
|
+
//# sourceMappingURL=http-F6QV3YLY.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
flushTraces,
|
|
7
7
|
parseRetryAfterMs,
|
|
8
8
|
serializePayloadBody
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QIBFNIIF.js";
|
|
10
10
|
export {
|
|
11
11
|
BitfabError,
|
|
12
12
|
HttpClient,
|
|
@@ -16,4 +16,4 @@ export {
|
|
|
16
16
|
parseRetryAfterMs,
|
|
17
17
|
serializePayloadBody
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=http-
|
|
19
|
+
//# sourceMappingURL=http-XDKEIZNV.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -51,7 +51,7 @@ var __version__, __packageName__;
|
|
|
51
51
|
var init_version_generated = __esm({
|
|
52
52
|
"src/version.generated.ts"() {
|
|
53
53
|
"use strict";
|
|
54
|
-
__version__ = "0.58.
|
|
54
|
+
__version__ = "0.58.5";
|
|
55
55
|
__packageName__ = "bitfab";
|
|
56
56
|
}
|
|
57
57
|
});
|
|
@@ -5106,6 +5106,7 @@ init_asyncStorage();
|
|
|
5106
5106
|
// src/autoTrace.ts
|
|
5107
5107
|
init_asyncStorage();
|
|
5108
5108
|
init_captureSuppression();
|
|
5109
|
+
init_warnOnce();
|
|
5109
5110
|
var autoTraceGlobal = globalThis;
|
|
5110
5111
|
var autoTraceState = autoTraceGlobal.__bitfabAutoTraceStateV4 ?? {
|
|
5111
5112
|
storage: null,
|
|
@@ -5173,6 +5174,26 @@ function runWithAutoTraceNodeConfiguration(nodeConfiguration, fn) {
|
|
|
5173
5174
|
}
|
|
5174
5175
|
return result;
|
|
5175
5176
|
}
|
|
5177
|
+
var SUBTREE_TRACING_DOCS_URL = "https://docs.bitfab.ai/typescript-sdk#experimental-subtree-tracing";
|
|
5178
|
+
function transformInstalled() {
|
|
5179
|
+
return autoTraceGlobal.__bitfab_auto_trace_transformed_v1__ === true;
|
|
5180
|
+
}
|
|
5181
|
+
function runsOnNode() {
|
|
5182
|
+
return typeof process !== "undefined" && Boolean(process.versions?.node);
|
|
5183
|
+
}
|
|
5184
|
+
function closeAutoTraceRoot() {
|
|
5185
|
+
autoTraceState.activeRoots -= 1;
|
|
5186
|
+
}
|
|
5187
|
+
function settleAutoTraceRoot(context) {
|
|
5188
|
+
closeAutoTraceRoot();
|
|
5189
|
+
if (transformInstalled() || !runsOnNode()) {
|
|
5190
|
+
return;
|
|
5191
|
+
}
|
|
5192
|
+
warnOnce(
|
|
5193
|
+
"auto-trace-transform-missing",
|
|
5194
|
+
`trace root "${context.traceFunctionKey}" recorded only its own span. No module in this build was compiled by @bitfab/transform, so calls beneath the root were not discovered. Install @bitfab/transform and add its adapter to the server build: ${SUBTREE_TRACING_DOCS_URL}`
|
|
5195
|
+
);
|
|
5196
|
+
}
|
|
5176
5197
|
function runWithAutoTraceRootContext(context, spanStack, fn) {
|
|
5177
5198
|
autoTraceState.activeRoots += 1;
|
|
5178
5199
|
const entries = [
|
|
@@ -5183,19 +5204,19 @@ function runWithAutoTraceRootContext(context, spanStack, fn) {
|
|
|
5183
5204
|
try {
|
|
5184
5205
|
result = runWithAutoTraceScope({ entries }, fn);
|
|
5185
5206
|
} catch (error) {
|
|
5186
|
-
|
|
5207
|
+
settleAutoTraceRoot(context);
|
|
5187
5208
|
throw error;
|
|
5188
5209
|
}
|
|
5189
5210
|
if (isAutoTraceAsyncGenerator(result)) {
|
|
5190
|
-
|
|
5211
|
+
closeAutoTraceRoot();
|
|
5191
5212
|
return wrapAutoTraceAsyncGenerator(context, spanStack, result);
|
|
5192
5213
|
}
|
|
5193
5214
|
if (result instanceof Promise) {
|
|
5194
5215
|
return result.finally(() => {
|
|
5195
|
-
|
|
5216
|
+
settleAutoTraceRoot(context);
|
|
5196
5217
|
});
|
|
5197
5218
|
}
|
|
5198
|
-
|
|
5219
|
+
settleAutoTraceRoot(context);
|
|
5199
5220
|
return result;
|
|
5200
5221
|
}
|
|
5201
5222
|
function invokeThroughAutoTraceEntries(entries, step, fn) {
|