bitfab 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
|
@@ -410,7 +410,8 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
|
|
|
410
410
|
options?.codeChangeFiles,
|
|
411
411
|
options?.environment !== void 0,
|
|
412
412
|
// includeDbBranchLease
|
|
413
|
-
options?.experimentGroupId
|
|
413
|
+
options?.experimentGroupId,
|
|
414
|
+
options?.datasetId
|
|
414
415
|
);
|
|
415
416
|
const mockStrategy = options?.mock ?? "none";
|
|
416
417
|
const maxConcurrency = options?.maxConcurrency ?? 10;
|
|
@@ -511,7 +512,7 @@ registerAsyncLocalStorageClass(
|
|
|
511
512
|
);
|
|
512
513
|
|
|
513
514
|
// src/version.generated.ts
|
|
514
|
-
var __version__ = "0.
|
|
515
|
+
var __version__ = "0.20.0";
|
|
515
516
|
|
|
516
517
|
// src/constants.ts
|
|
517
518
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -789,7 +790,7 @@ var HttpClient = class {
|
|
|
789
790
|
* Start a replay session by fetching historical traces.
|
|
790
791
|
* Blocking call — creates a test run and returns lightweight item references.
|
|
791
792
|
*/
|
|
792
|
-
async startReplay(traceFunctionKey, limit, traceIds, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId) {
|
|
793
|
+
async startReplay(traceFunctionKey, limit, traceIds, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId) {
|
|
793
794
|
const payload = { traceFunctionKey };
|
|
794
795
|
if (limit !== void 0) {
|
|
795
796
|
payload.limit = limit;
|
|
@@ -809,6 +810,9 @@ var HttpClient = class {
|
|
|
809
810
|
if (experimentGroupId !== void 0) {
|
|
810
811
|
payload.experimentGroupId = experimentGroupId;
|
|
811
812
|
}
|
|
813
|
+
if (datasetId !== void 0) {
|
|
814
|
+
payload.datasetId = datasetId;
|
|
815
|
+
}
|
|
812
816
|
const timeout = includeDbBranchLease ? 18e4 : 3e4;
|
|
813
817
|
return this.request("/api/sdk/replay/start", payload, {
|
|
814
818
|
timeout
|