@bitfab/sdk 0.29.1 → 0.30.0
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-YZU6WFG2.js → chunk-2EFKQLJ7.js} +3 -2
- package/dist/chunk-2EFKQLJ7.js.map +1 -0
- package/dist/{chunk-RTPEBWVO.js → chunk-FHCRK2P6.js} +8 -5
- package/dist/chunk-FHCRK2P6.js.map +1 -0
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -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-SKW5A7II.js → replay-MSOW7LGF.js} +2 -2
- package/package.json +2 -2
- package/dist/chunk-RTPEBWVO.js.map +0 -1
- package/dist/chunk-YZU6WFG2.js.map +0 -1
- /package/dist/{replay-SKW5A7II.js.map → replay-MSOW7LGF.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -560,7 +560,8 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
560
560
|
options?.environment !== void 0,
|
|
561
561
|
// includeDbBranchLease
|
|
562
562
|
options?.experimentGroupId,
|
|
563
|
-
options?.datasetId
|
|
563
|
+
options?.datasetId,
|
|
564
|
+
options?.graderIds
|
|
564
565
|
);
|
|
565
566
|
const mockStrategy = options?.mock ?? "marked";
|
|
566
567
|
const maxConcurrency = options?.maxConcurrency ?? 10;
|
|
@@ -746,7 +747,7 @@ __export(index_exports, {
|
|
|
746
747
|
module.exports = __toCommonJS(index_exports);
|
|
747
748
|
|
|
748
749
|
// src/version.generated.ts
|
|
749
|
-
var __version__ = "0.
|
|
750
|
+
var __version__ = "0.30.0";
|
|
750
751
|
|
|
751
752
|
// src/constants.ts
|
|
752
753
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -1105,7 +1106,7 @@ var HttpClient = class {
|
|
|
1105
1106
|
* Start a replay session by fetching historical traces.
|
|
1106
1107
|
* Blocking call - creates a test run and returns lightweight item references.
|
|
1107
1108
|
*/
|
|
1108
|
-
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId) {
|
|
1109
|
+
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId, graderIds) {
|
|
1109
1110
|
const payload = { traceFunctionKey };
|
|
1110
1111
|
if (limit !== void 0) {
|
|
1111
1112
|
payload.limit = limit;
|
|
@@ -1131,6 +1132,9 @@ var HttpClient = class {
|
|
|
1131
1132
|
if (datasetId !== void 0) {
|
|
1132
1133
|
payload.datasetId = datasetId;
|
|
1133
1134
|
}
|
|
1135
|
+
if (graderIds !== void 0) {
|
|
1136
|
+
payload.graderIds = graderIds;
|
|
1137
|
+
}
|
|
1134
1138
|
const timeout = includeDbBranchLease ? 18e4 : 3e4;
|
|
1135
1139
|
return this.request("/api/sdk/replay/start", payload, {
|
|
1136
1140
|
timeout
|