@bitfab/sdk 0.64.27 → 0.64.28
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-MROIROUR.js → chunk-45NVW5X6.js} +9 -2
- package/dist/chunk-45NVW5X6.js.map +1 -0
- package/dist/{chunk-OYTAKT5B.js → chunk-76JZFING.js} +6 -6
- package/dist/{chunk-OYTAKT5B.js.map → chunk-76JZFING.js.map} +1 -1
- package/dist/{chunk-FOAYPDCS.js → chunk-DMELEG6J.js} +9 -2
- package/dist/chunk-DMELEG6J.js.map +1 -0
- package/dist/{chunk-DWQ36HBO.js → chunk-JQAWBK2H.js} +6 -3
- package/dist/{chunk-DWQ36HBO.js.map → chunk-JQAWBK2H.js.map} +1 -1
- package/dist/{chunk-HTRMFABJ.js → chunk-PRL7RHVH.js} +6 -3
- package/dist/{chunk-HTRMFABJ.js.map → chunk-PRL7RHVH.js.map} +1 -1
- package/dist/{chunk-AXFICSPS.js → chunk-YHOEROQD.js} +11 -5
- package/dist/{chunk-AXFICSPS.js.map → chunk-YHOEROQD.js.map} +1 -1
- package/dist/{http-DUDJA3SE.js → http-5HDU4GXW.js} +2 -2
- package/dist/{http-2ZLYPJ27.js → http-BLY35UVE.js} +2 -2
- package/dist/index.cjs +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +3 -3
- package/dist/node.cjs +12 -2
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-2S663YTX.js → replay-CLERHFPY.js} +3 -3
- package/dist/{replay-JYRJ443I.js → replay-HSY2CUX5.js} +3 -3
- package/dist/replayCli.js +3 -3
- package/dist/seedCli.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-FOAYPDCS.js.map +0 -1
- package/dist/chunk-MROIROUR.js.map +0 -1
- /package/dist/{http-2ZLYPJ27.js.map → http-5HDU4GXW.js.map} +0 -0
- /package/dist/{http-DUDJA3SE.js.map → http-BLY35UVE.js.map} +0 -0
- /package/dist/{replay-2S663YTX.js.map → replay-CLERHFPY.js.map} +0 -0
- /package/dist/{replay-JYRJ443I.js.map → replay-HSY2CUX5.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
flushTraces,
|
|
9
9
|
parseRetryAfterMs,
|
|
10
10
|
serializePayloadBody
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JQAWBK2H.js";
|
|
12
12
|
export {
|
|
13
13
|
BitfabError,
|
|
14
14
|
HttpClient,
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
parseRetryAfterMs,
|
|
21
21
|
serializePayloadBody
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=http-
|
|
23
|
+
//# sourceMappingURL=http-5HDU4GXW.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
flushTraces,
|
|
9
9
|
parseRetryAfterMs,
|
|
10
10
|
serializePayloadBody
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PRL7RHVH.js";
|
|
12
12
|
import "./chunk-MT36GJMW.js";
|
|
13
13
|
export {
|
|
14
14
|
BitfabError,
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
parseRetryAfterMs,
|
|
22
22
|
serializePayloadBody
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=http-
|
|
24
|
+
//# sourceMappingURL=http-BLY35UVE.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -42,7 +42,7 @@ var __version__, __packageName__;
|
|
|
42
42
|
var init_version_generated = __esm({
|
|
43
43
|
"src/version.generated.ts"() {
|
|
44
44
|
"use strict";
|
|
45
|
-
__version__ = "0.64.
|
|
45
|
+
__version__ = "0.64.28";
|
|
46
46
|
__packageName__ = "@bitfab/sdk";
|
|
47
47
|
}
|
|
48
48
|
});
|
|
@@ -2919,7 +2919,7 @@ var init_http = __esm({
|
|
|
2919
2919
|
* Start a replay session by fetching historical traces.
|
|
2920
2920
|
* Blocking call - creates an experiment and returns lightweight item references.
|
|
2921
2921
|
*/
|
|
2922
|
-
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, skipAssertionJudging, experimentalSelectiveReplay, notes, metadata, dryRun, invocation) {
|
|
2922
|
+
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, skipAssertionJudging, experimentalSelectiveReplay, notes, metadata, dryRun, experimentGroupName, invocation) {
|
|
2923
2923
|
const payload = { traceFunctionKey };
|
|
2924
2924
|
if (experimentalSelectiveReplay !== void 0) {
|
|
2925
2925
|
payload.experimentalSelectiveReplay = experimentalSelectiveReplay;
|
|
@@ -2952,6 +2952,9 @@ var init_http = __esm({
|
|
|
2952
2952
|
if (experimentGroupId !== void 0) {
|
|
2953
2953
|
payload.experimentGroupId = experimentGroupId;
|
|
2954
2954
|
}
|
|
2955
|
+
if (experimentGroupName !== void 0) {
|
|
2956
|
+
payload.experimentGroupName = experimentGroupName;
|
|
2957
|
+
}
|
|
2955
2958
|
if (datasetIds !== void 0) {
|
|
2956
2959
|
if (datasetIds.length === 1) {
|
|
2957
2960
|
payload.datasetId = datasetIds[0];
|
|
@@ -4771,6 +4774,11 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
4771
4774
|
"force only applies when resuming an experiment. Pass it together with resume."
|
|
4772
4775
|
);
|
|
4773
4776
|
}
|
|
4777
|
+
if (options?.experimentGroupName !== void 0 && options.experimentGroupId === void 0) {
|
|
4778
|
+
throw new BitfabError(
|
|
4779
|
+
"experimentGroupName only applies with experimentGroupId. Pass it together with experimentGroupId."
|
|
4780
|
+
);
|
|
4781
|
+
}
|
|
4774
4782
|
if (options?.experimentalSelectiveReplay !== void 0) {
|
|
4775
4783
|
validateSelectiveReplayOptions(options.experimentalSelectiveReplay);
|
|
4776
4784
|
if ((options.mock ?? "marked") !== "marked" || normalizeMockOverrides(options.mockOverride).length > 0 || registeredOverrides.length > 0) {
|
|
@@ -4845,6 +4853,7 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
4845
4853
|
options?.notes,
|
|
4846
4854
|
options?.metadata,
|
|
4847
4855
|
options?.dryRun === true,
|
|
4856
|
+
options?.experimentGroupName,
|
|
4848
4857
|
safeReplayInvocation(
|
|
4849
4858
|
() => buildReplayInvocation(
|
|
4850
4859
|
Object.entries(cliFlags(options) ?? explicitReplayOptions(options))
|
|
@@ -5297,6 +5306,7 @@ var init_replay = __esm({
|
|
|
5297
5306
|
"mockOverride",
|
|
5298
5307
|
"dbBranch",
|
|
5299
5308
|
"experimentGroupId",
|
|
5309
|
+
"experimentGroupName",
|
|
5300
5310
|
"datasetId",
|
|
5301
5311
|
"datasetIds",
|
|
5302
5312
|
"graderIds",
|