bitfab 0.13.5 → 0.13.6
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-4IHJJRMU.js → chunk-6757PVPS.js} +3 -3
- package/dist/{chunk-BVFST7Q3.js → chunk-TMSVIA5J.js} +6 -3
- package/dist/chunk-TMSVIA5J.js.map +1 -0
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -2
- package/dist/node.cjs +7 -3
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +2 -2
- package/dist/{replay-CLQKO7U7.js → replay-UBXCO6QU.js} +4 -3
- package/dist/replay-UBXCO6QU.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-BVFST7Q3.js.map +0 -1
- package/dist/replay-CLQKO7U7.js.map +0 -1
- /package/dist/{chunk-4IHJJRMU.js.map → chunk-6757PVPS.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -394,6 +394,8 @@ interface ReplayOptions {
|
|
|
394
394
|
* environment to pick up the per-trace branch URL.
|
|
395
395
|
*/
|
|
396
396
|
environment?: ReplayEnvironment;
|
|
397
|
+
/** Group ID to associate this replay with an experiment group for live streaming in Studio. */
|
|
398
|
+
experimentGroupId?: string;
|
|
397
399
|
}
|
|
398
400
|
interface ReplayItem<T> {
|
|
399
401
|
/** Trace ID of the new trace created during replay. */
|
|
@@ -1008,7 +1010,7 @@ declare class BitfabFunction {
|
|
|
1008
1010
|
/**
|
|
1009
1011
|
* SDK version from package.json (injected at build time)
|
|
1010
1012
|
*/
|
|
1011
|
-
declare const __version__ = "0.13.
|
|
1013
|
+
declare const __version__ = "0.13.6";
|
|
1012
1014
|
|
|
1013
1015
|
/**
|
|
1014
1016
|
* Constants for the Bitfab SDK.
|
package/dist/index.d.ts
CHANGED
|
@@ -394,6 +394,8 @@ interface ReplayOptions {
|
|
|
394
394
|
* environment to pick up the per-trace branch URL.
|
|
395
395
|
*/
|
|
396
396
|
environment?: ReplayEnvironment;
|
|
397
|
+
/** Group ID to associate this replay with an experiment group for live streaming in Studio. */
|
|
398
|
+
experimentGroupId?: string;
|
|
397
399
|
}
|
|
398
400
|
interface ReplayItem<T> {
|
|
399
401
|
/** Trace ID of the new trace created during replay. */
|
|
@@ -1008,7 +1010,7 @@ declare class BitfabFunction {
|
|
|
1008
1010
|
/**
|
|
1009
1011
|
* SDK version from package.json (injected at build time)
|
|
1010
1012
|
*/
|
|
1011
|
-
declare const __version__ = "0.13.
|
|
1013
|
+
declare const __version__ = "0.13.6";
|
|
1012
1014
|
|
|
1013
1015
|
/**
|
|
1014
1016
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
SUPPORTED_PROVIDERS,
|
|
18
18
|
getCurrentSpan,
|
|
19
19
|
getCurrentTrace
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6757PVPS.js";
|
|
21
21
|
import {
|
|
22
22
|
BitfabError,
|
|
23
23
|
DEFAULT_SERVICE_URL,
|
|
24
24
|
__version__,
|
|
25
25
|
flushTraces
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TMSVIA5J.js";
|
|
27
27
|
export {
|
|
28
28
|
Bitfab,
|
|
29
29
|
BitfabClaudeAgentHandler,
|
package/dist/node.cjs
CHANGED
|
@@ -90,7 +90,7 @@ var __version__;
|
|
|
90
90
|
var init_version_generated = __esm({
|
|
91
91
|
"src/version.generated.ts"() {
|
|
92
92
|
"use strict";
|
|
93
|
-
__version__ = "0.13.
|
|
93
|
+
__version__ = "0.13.6";
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
|
|
@@ -321,7 +321,7 @@ var init_http = __esm({
|
|
|
321
321
|
* Start a replay session by fetching historical traces.
|
|
322
322
|
* Blocking call — creates a test run and returns lightweight item references.
|
|
323
323
|
*/
|
|
324
|
-
async startReplay(traceFunctionKey, limit, traceIds, codeChangeDescription, codeChangeFiles, includeDbBranchLease) {
|
|
324
|
+
async startReplay(traceFunctionKey, limit, traceIds, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId) {
|
|
325
325
|
const payload = { traceFunctionKey, limit };
|
|
326
326
|
if (traceIds) {
|
|
327
327
|
payload.traceIds = traceIds;
|
|
@@ -335,6 +335,9 @@ var init_http = __esm({
|
|
|
335
335
|
if (includeDbBranchLease) {
|
|
336
336
|
payload.includeDbBranchLease = true;
|
|
337
337
|
}
|
|
338
|
+
if (experimentGroupId !== void 0) {
|
|
339
|
+
payload.experimentGroupId = experimentGroupId;
|
|
340
|
+
}
|
|
338
341
|
const timeout = includeDbBranchLease ? 18e4 : 3e4;
|
|
339
342
|
return this.request("/api/sdk/replay/start", payload, {
|
|
340
343
|
timeout
|
|
@@ -672,8 +675,9 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
|
|
|
672
675
|
options?.traceIds,
|
|
673
676
|
options?.codeChangeDescription,
|
|
674
677
|
options?.codeChangeFiles,
|
|
675
|
-
options?.environment !== void 0
|
|
678
|
+
options?.environment !== void 0,
|
|
676
679
|
// includeDbBranchLease
|
|
680
|
+
options?.experimentGroupId
|
|
677
681
|
);
|
|
678
682
|
const mockStrategy = options?.mock ?? "none";
|
|
679
683
|
const maxConcurrency = options?.maxConcurrency ?? 10;
|