@bitfab/sdk 0.64.26 → 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.
Files changed (34) hide show
  1. package/dist/{chunk-FSVGIKQT.js → chunk-45NVW5X6.js} +9 -2
  2. package/dist/chunk-45NVW5X6.js.map +1 -0
  3. package/dist/{chunk-26WDOYFS.js → chunk-76JZFING.js} +6 -6
  4. package/dist/chunk-76JZFING.js.map +1 -0
  5. package/dist/{chunk-PPNFMVOH.js → chunk-DMELEG6J.js} +9 -2
  6. package/dist/chunk-DMELEG6J.js.map +1 -0
  7. package/dist/{chunk-NK5RZ3UH.js → chunk-JQAWBK2H.js} +6 -3
  8. package/dist/{chunk-NK5RZ3UH.js.map → chunk-JQAWBK2H.js.map} +1 -1
  9. package/dist/{chunk-IHQKJWNN.js → chunk-PRL7RHVH.js} +6 -3
  10. package/dist/{chunk-IHQKJWNN.js.map → chunk-PRL7RHVH.js.map} +1 -1
  11. package/dist/{chunk-W6I5QA62.js → chunk-YHOEROQD.js} +11 -5
  12. package/dist/{chunk-W6I5QA62.js.map → chunk-YHOEROQD.js.map} +1 -1
  13. package/dist/{http-BK6UJNXI.js → http-5HDU4GXW.js} +2 -2
  14. package/dist/{http-3WBKIQI4.js → http-BLY35UVE.js} +2 -2
  15. package/dist/index.cjs +12 -2
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +22 -3
  18. package/dist/index.d.ts +22 -3
  19. package/dist/index.js +3 -3
  20. package/dist/node.cjs +12 -2
  21. package/dist/node.cjs.map +1 -1
  22. package/dist/node.js +3 -3
  23. package/dist/{replay-ZTEDZUSG.js → replay-CLERHFPY.js} +3 -3
  24. package/dist/{replay-OEANLAUE.js → replay-HSY2CUX5.js} +3 -3
  25. package/dist/replayCli.js +3 -3
  26. package/dist/seedCli.js +3 -3
  27. package/package.json +1 -1
  28. package/dist/chunk-26WDOYFS.js.map +0 -1
  29. package/dist/chunk-FSVGIKQT.js.map +0 -1
  30. package/dist/chunk-PPNFMVOH.js.map +0 -1
  31. /package/dist/{http-3WBKIQI4.js.map → http-5HDU4GXW.js.map} +0 -0
  32. /package/dist/{http-BK6UJNXI.js.map → http-BLY35UVE.js.map} +0 -0
  33. /package/dist/{replay-OEANLAUE.js.map → replay-CLERHFPY.js.map} +0 -0
  34. /package/dist/{replay-ZTEDZUSG.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-NK5RZ3UH.js";
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-BK6UJNXI.js.map
23
+ //# sourceMappingURL=http-5HDU4GXW.js.map
@@ -8,7 +8,7 @@ import {
8
8
  flushTraces,
9
9
  parseRetryAfterMs,
10
10
  serializePayloadBody
11
- } from "./chunk-IHQKJWNN.js";
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-3WBKIQI4.js.map
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.26";
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",