@bitfab/sdk 0.27.0 → 0.27.1
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-PFV4MPNS.js → chunk-H5QQ54UI.js} +8 -5
- package/dist/chunk-H5QQ54UI.js.map +1 -0
- package/dist/{chunk-RNTDM6WM.js → chunk-MD4XQGAF.js} +2 -1
- package/dist/chunk-MD4XQGAF.js.map +1 -0
- package/dist/index.cjs +6 -2
- 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 +6 -2
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +2 -2
- package/dist/{replay-66KNEAMO.js → replay-J3YTYE7V.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-PFV4MPNS.js.map +0 -1
- package/dist/chunk-RNTDM6WM.js.map +0 -1
- /package/dist/{replay-66KNEAMO.js.map → replay-J3YTYE7V.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -594,6 +594,8 @@ interface ReplayOptions {
|
|
|
594
594
|
limit?: number;
|
|
595
595
|
/** Optional list of specific trace IDs to replay (max 100). */
|
|
596
596
|
traceIds?: string[];
|
|
597
|
+
/** Optional display name for the resulting experiment/test run. */
|
|
598
|
+
name?: string;
|
|
597
599
|
/** Maximum number of items to process in parallel. Set to 1 for sequential. Default 10. */
|
|
598
600
|
maxConcurrency?: number;
|
|
599
601
|
/**
|
|
@@ -1528,7 +1530,7 @@ declare class BitfabFunction {
|
|
|
1528
1530
|
/**
|
|
1529
1531
|
* SDK version from package.json (injected at build time)
|
|
1530
1532
|
*/
|
|
1531
|
-
declare const __version__ = "0.27.
|
|
1533
|
+
declare const __version__ = "0.27.1";
|
|
1532
1534
|
|
|
1533
1535
|
/**
|
|
1534
1536
|
* Constants for the Bitfab SDK.
|
package/dist/index.d.ts
CHANGED
|
@@ -594,6 +594,8 @@ interface ReplayOptions {
|
|
|
594
594
|
limit?: number;
|
|
595
595
|
/** Optional list of specific trace IDs to replay (max 100). */
|
|
596
596
|
traceIds?: string[];
|
|
597
|
+
/** Optional display name for the resulting experiment/test run. */
|
|
598
|
+
name?: string;
|
|
597
599
|
/** Maximum number of items to process in parallel. Set to 1 for sequential. Default 10. */
|
|
598
600
|
maxConcurrency?: number;
|
|
599
601
|
/**
|
|
@@ -1528,7 +1530,7 @@ declare class BitfabFunction {
|
|
|
1528
1530
|
/**
|
|
1529
1531
|
* SDK version from package.json (injected at build time)
|
|
1530
1532
|
*/
|
|
1531
|
-
declare const __version__ = "0.27.
|
|
1533
|
+
declare const __version__ = "0.27.1";
|
|
1532
1534
|
|
|
1533
1535
|
/**
|
|
1534
1536
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
flushTraces,
|
|
15
15
|
getCurrentSpan,
|
|
16
16
|
getCurrentTrace
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-H5QQ54UI.js";
|
|
18
18
|
import {
|
|
19
19
|
BITFAB_PROGRESS_PREFIX,
|
|
20
20
|
BitfabError,
|
|
21
21
|
reportReplayProgress
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MD4XQGAF.js";
|
|
23
23
|
export {
|
|
24
24
|
BITFAB_PROGRESS_PREFIX,
|
|
25
25
|
Bitfab,
|
package/dist/node.cjs
CHANGED
|
@@ -499,6 +499,7 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
|
|
|
499
499
|
// the count), so it's omitted from the request entirely.
|
|
500
500
|
options?.traceIds ? void 0 : options?.limit ?? 5,
|
|
501
501
|
options?.traceIds,
|
|
502
|
+
options?.name,
|
|
502
503
|
options?.codeChangeDescription,
|
|
503
504
|
options?.codeChangeFiles,
|
|
504
505
|
options?.environment !== void 0,
|
|
@@ -649,7 +650,7 @@ registerAsyncLocalStorageClass(
|
|
|
649
650
|
);
|
|
650
651
|
|
|
651
652
|
// src/version.generated.ts
|
|
652
|
-
var __version__ = "0.27.
|
|
653
|
+
var __version__ = "0.27.1";
|
|
653
654
|
|
|
654
655
|
// src/constants.ts
|
|
655
656
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -957,7 +958,7 @@ var HttpClient = class {
|
|
|
957
958
|
* Start a replay session by fetching historical traces.
|
|
958
959
|
* Blocking call — creates a test run and returns lightweight item references.
|
|
959
960
|
*/
|
|
960
|
-
async startReplay(traceFunctionKey, limit, traceIds, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId) {
|
|
961
|
+
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId) {
|
|
961
962
|
const payload = { traceFunctionKey };
|
|
962
963
|
if (limit !== void 0) {
|
|
963
964
|
payload.limit = limit;
|
|
@@ -965,6 +966,9 @@ var HttpClient = class {
|
|
|
965
966
|
if (traceIds) {
|
|
966
967
|
payload.traceIds = traceIds;
|
|
967
968
|
}
|
|
969
|
+
if (name !== void 0) {
|
|
970
|
+
payload.name = name;
|
|
971
|
+
}
|
|
968
972
|
if (codeChangeDescription !== void 0) {
|
|
969
973
|
payload.codeChangeDescription = codeChangeDescription;
|
|
970
974
|
}
|