@bitfab/sdk 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
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
SUPPORTED_PROVIDERS,
|
|
9
9
|
getCurrentSpan,
|
|
10
10
|
getCurrentTrace
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6757PVPS.js";
|
|
12
12
|
import {
|
|
13
13
|
BitfabError,
|
|
14
14
|
DEFAULT_SERVICE_URL,
|
|
15
15
|
__version__,
|
|
16
16
|
flushTraces
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TMSVIA5J.js";
|
|
18
18
|
export {
|
|
19
19
|
Bitfab,
|
|
20
20
|
BitfabClaudeAgentHandler,
|
package/dist/node.cjs
CHANGED
|
@@ -81,7 +81,7 @@ var __version__;
|
|
|
81
81
|
var init_version_generated = __esm({
|
|
82
82
|
"src/version.generated.ts"() {
|
|
83
83
|
"use strict";
|
|
84
|
-
__version__ = "0.13.
|
|
84
|
+
__version__ = "0.13.6";
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
|
|
@@ -312,7 +312,7 @@ var init_http = __esm({
|
|
|
312
312
|
* Start a replay session by fetching historical traces.
|
|
313
313
|
* Blocking call — creates a test run and returns lightweight item references.
|
|
314
314
|
*/
|
|
315
|
-
async startReplay(traceFunctionKey, limit, traceIds, codeChangeDescription, codeChangeFiles, includeDbBranchLease) {
|
|
315
|
+
async startReplay(traceFunctionKey, limit, traceIds, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId) {
|
|
316
316
|
const payload = { traceFunctionKey, limit };
|
|
317
317
|
if (traceIds) {
|
|
318
318
|
payload.traceIds = traceIds;
|
|
@@ -326,6 +326,9 @@ var init_http = __esm({
|
|
|
326
326
|
if (includeDbBranchLease) {
|
|
327
327
|
payload.includeDbBranchLease = true;
|
|
328
328
|
}
|
|
329
|
+
if (experimentGroupId !== void 0) {
|
|
330
|
+
payload.experimentGroupId = experimentGroupId;
|
|
331
|
+
}
|
|
329
332
|
const timeout = includeDbBranchLease ? 18e4 : 3e4;
|
|
330
333
|
return this.request("/api/sdk/replay/start", payload, {
|
|
331
334
|
timeout
|
|
@@ -663,8 +666,9 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
|
|
|
663
666
|
options?.traceIds,
|
|
664
667
|
options?.codeChangeDescription,
|
|
665
668
|
options?.codeChangeFiles,
|
|
666
|
-
options?.environment !== void 0
|
|
669
|
+
options?.environment !== void 0,
|
|
667
670
|
// includeDbBranchLease
|
|
671
|
+
options?.experimentGroupId
|
|
668
672
|
);
|
|
669
673
|
const mockStrategy = options?.mock ?? "none";
|
|
670
674
|
const maxConcurrency = options?.maxConcurrency ?? 10;
|