@bitfab/sdk 0.19.1 → 0.20.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-WZ72P5SX.js → chunk-IUZIGC6T.js} +7 -4
- package/dist/chunk-IUZIGC6T.js.map +1 -0
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +1 -1
- package/dist/node.cjs +7 -3
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1 -1
- package/dist/{replay-QAWGVRCZ.js → replay-V6RPJYXZ.js} +3 -2
- package/dist/replay-V6RPJYXZ.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-WZ72P5SX.js.map +0 -1
- package/dist/replay-QAWGVRCZ.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -396,6 +396,13 @@ interface ReplayOptions {
|
|
|
396
396
|
environment?: ReplayEnvironment;
|
|
397
397
|
/** Group ID to associate this replay with an experiment group for live streaming in Studio. */
|
|
398
398
|
experimentGroupId?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Dataset this replay runs against. When set, the resulting experiment is
|
|
401
|
+
* durably attributed to the dataset (stored on the test run), so it appears
|
|
402
|
+
* under the dataset's experiments even if the trace lineage can't be
|
|
403
|
+
* reconstructed. Validated server-side against the org.
|
|
404
|
+
*/
|
|
405
|
+
datasetId?: string;
|
|
399
406
|
/**
|
|
400
407
|
* Reshape recorded inputs before they are spread into `fn`.
|
|
401
408
|
*
|
|
@@ -1063,7 +1070,7 @@ declare class BitfabFunction {
|
|
|
1063
1070
|
/**
|
|
1064
1071
|
* SDK version from package.json (injected at build time)
|
|
1065
1072
|
*/
|
|
1066
|
-
declare const __version__ = "0.
|
|
1073
|
+
declare const __version__ = "0.20.0";
|
|
1067
1074
|
|
|
1068
1075
|
/**
|
|
1069
1076
|
* Constants for the Bitfab SDK.
|
package/dist/index.d.ts
CHANGED
|
@@ -396,6 +396,13 @@ interface ReplayOptions {
|
|
|
396
396
|
environment?: ReplayEnvironment;
|
|
397
397
|
/** Group ID to associate this replay with an experiment group for live streaming in Studio. */
|
|
398
398
|
experimentGroupId?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Dataset this replay runs against. When set, the resulting experiment is
|
|
401
|
+
* durably attributed to the dataset (stored on the test run), so it appears
|
|
402
|
+
* under the dataset's experiments even if the trace lineage can't be
|
|
403
|
+
* reconstructed. Validated server-side against the org.
|
|
404
|
+
*/
|
|
405
|
+
datasetId?: string;
|
|
399
406
|
/**
|
|
400
407
|
* Reshape recorded inputs before they are spread into `fn`.
|
|
401
408
|
*
|
|
@@ -1063,7 +1070,7 @@ declare class BitfabFunction {
|
|
|
1063
1070
|
/**
|
|
1064
1071
|
* SDK version from package.json (injected at build time)
|
|
1065
1072
|
*/
|
|
1066
|
-
declare const __version__ = "0.
|
|
1073
|
+
declare const __version__ = "0.20.0";
|
|
1067
1074
|
|
|
1068
1075
|
/**
|
|
1069
1076
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
package/dist/node.cjs
CHANGED
|
@@ -401,7 +401,8 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
|
|
|
401
401
|
options?.codeChangeFiles,
|
|
402
402
|
options?.environment !== void 0,
|
|
403
403
|
// includeDbBranchLease
|
|
404
|
-
options?.experimentGroupId
|
|
404
|
+
options?.experimentGroupId,
|
|
405
|
+
options?.datasetId
|
|
405
406
|
);
|
|
406
407
|
const mockStrategy = options?.mock ?? "none";
|
|
407
408
|
const maxConcurrency = options?.maxConcurrency ?? 10;
|
|
@@ -502,7 +503,7 @@ registerAsyncLocalStorageClass(
|
|
|
502
503
|
);
|
|
503
504
|
|
|
504
505
|
// src/version.generated.ts
|
|
505
|
-
var __version__ = "0.
|
|
506
|
+
var __version__ = "0.20.0";
|
|
506
507
|
|
|
507
508
|
// src/constants.ts
|
|
508
509
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -780,7 +781,7 @@ var HttpClient = class {
|
|
|
780
781
|
* Start a replay session by fetching historical traces.
|
|
781
782
|
* Blocking call — creates a test run and returns lightweight item references.
|
|
782
783
|
*/
|
|
783
|
-
async startReplay(traceFunctionKey, limit, traceIds, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId) {
|
|
784
|
+
async startReplay(traceFunctionKey, limit, traceIds, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId) {
|
|
784
785
|
const payload = { traceFunctionKey };
|
|
785
786
|
if (limit !== void 0) {
|
|
786
787
|
payload.limit = limit;
|
|
@@ -800,6 +801,9 @@ var HttpClient = class {
|
|
|
800
801
|
if (experimentGroupId !== void 0) {
|
|
801
802
|
payload.experimentGroupId = experimentGroupId;
|
|
802
803
|
}
|
|
804
|
+
if (datasetId !== void 0) {
|
|
805
|
+
payload.datasetId = datasetId;
|
|
806
|
+
}
|
|
803
807
|
const timeout = includeDbBranchLease ? 18e4 : 3e4;
|
|
804
808
|
return this.request("/api/sdk/replay/start", payload, {
|
|
805
809
|
timeout
|