@bitfab/sdk 0.52.1 → 0.52.2
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-UQLT25PG.js → chunk-36ARJJ6S.js} +2 -2
- package/dist/{chunk-UQLT25PG.js.map → chunk-36ARJJ6S.js.map} +1 -1
- package/dist/{chunk-6DIR65JW.js → chunk-QWAWERYM.js} +2 -2
- package/dist/{chunk-6DIR65JW.js.map → chunk-QWAWERYM.js.map} +1 -1
- package/dist/{chunk-XAT6WLCS.js → chunk-XLSKI7UA.js} +6 -6
- package/dist/{chunk-XAT6WLCS.js.map → chunk-XLSKI7UA.js.map} +1 -1
- package/dist/{chunk-A5UGSRMK.js → chunk-XXKM4EL2.js} +2 -7
- package/dist/chunk-XXKM4EL2.js.map +1 -0
- package/dist/{http-RI4YCAS2.js → http-CVTQ3N5S.js} +2 -2
- package/dist/{http-B2AK43BN.js → http-V2WU4EN3.js} +2 -2
- package/dist/index.cjs +1 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +3 -3
- package/dist/node.cjs +1 -6
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-24F3F5RD.js → replay-5UAWEGXP.js} +3 -3
- package/dist/replayCli.js +42 -12
- package/dist/replayCli.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-A5UGSRMK.js.map +0 -1
- /package/dist/{http-B2AK43BN.js.map → http-CVTQ3N5S.js.map} +0 -0
- /package/dist/{http-RI4YCAS2.js.map → http-V2WU4EN3.js.map} +0 -0
- /package/dist/{replay-24F3F5RD.js.map → replay-5UAWEGXP.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1656,12 +1656,16 @@ interface ReplayOptions {
|
|
|
1656
1656
|
* Maximum number of traces to replay (1-5,000, default 5). Ignored when
|
|
1657
1657
|
* `traceIds` is passed (with a warning), or when `datasetId` / `datasetIds`
|
|
1658
1658
|
* is passed, because either source already determines how many traces replay.
|
|
1659
|
+
* To replay part of a dataset selection, name the members to run in
|
|
1660
|
+
* `traceIds` rather than bounding it here.
|
|
1659
1661
|
*/
|
|
1660
1662
|
limit?: number;
|
|
1661
1663
|
attempts?: number;
|
|
1662
1664
|
/**
|
|
1663
|
-
* Optional list of specific trace IDs to replay (max 100).
|
|
1664
|
-
*
|
|
1665
|
+
* Optional list of specific trace IDs to replay (max 100). Passed alongside
|
|
1666
|
+
* `datasetId` or `datasetIds` it pins which members of that selection replay,
|
|
1667
|
+
* and the server rejects any ID none of those datasets contains. On its own
|
|
1668
|
+
* it selects by ID with no dataset attribution.
|
|
1665
1669
|
*/
|
|
1666
1670
|
traceIds?: string[];
|
|
1667
1671
|
/** Optional display name for the resulting experiment/test run. */
|
|
@@ -1719,8 +1723,9 @@ interface ReplayOptions {
|
|
|
1719
1723
|
/** Group ID to associate this replay with an experiment group for live streaming in Studio. */
|
|
1720
1724
|
experimentGroupId?: string;
|
|
1721
1725
|
/**
|
|
1722
|
-
* Dataset this replay runs against. Mutually exclusive with `
|
|
1723
|
-
*
|
|
1726
|
+
* Dataset this replay runs against. Mutually exclusive with `datasetIds`.
|
|
1727
|
+
* Alone it replays the dataset's full membership, and with `traceIds` it
|
|
1728
|
+
* replays only those members. When set, the resulting experiment is
|
|
1724
1729
|
* durably attributed to the dataset (stored on the test run), so it appears
|
|
1725
1730
|
* under the dataset's experiments even if the trace lineage can't be
|
|
1726
1731
|
* reconstructed. Validated server-side against the org.
|
|
@@ -3288,7 +3293,7 @@ declare class BitfabFunction {
|
|
|
3288
3293
|
/**
|
|
3289
3294
|
* SDK version from package.json (injected at build time)
|
|
3290
3295
|
*/
|
|
3291
|
-
declare const __version__ = "0.52.
|
|
3296
|
+
declare const __version__ = "0.52.2";
|
|
3292
3297
|
|
|
3293
3298
|
/**
|
|
3294
3299
|
* Constants for the Bitfab SDK.
|
package/dist/index.d.ts
CHANGED
|
@@ -1656,12 +1656,16 @@ interface ReplayOptions {
|
|
|
1656
1656
|
* Maximum number of traces to replay (1-5,000, default 5). Ignored when
|
|
1657
1657
|
* `traceIds` is passed (with a warning), or when `datasetId` / `datasetIds`
|
|
1658
1658
|
* is passed, because either source already determines how many traces replay.
|
|
1659
|
+
* To replay part of a dataset selection, name the members to run in
|
|
1660
|
+
* `traceIds` rather than bounding it here.
|
|
1659
1661
|
*/
|
|
1660
1662
|
limit?: number;
|
|
1661
1663
|
attempts?: number;
|
|
1662
1664
|
/**
|
|
1663
|
-
* Optional list of specific trace IDs to replay (max 100).
|
|
1664
|
-
*
|
|
1665
|
+
* Optional list of specific trace IDs to replay (max 100). Passed alongside
|
|
1666
|
+
* `datasetId` or `datasetIds` it pins which members of that selection replay,
|
|
1667
|
+
* and the server rejects any ID none of those datasets contains. On its own
|
|
1668
|
+
* it selects by ID with no dataset attribution.
|
|
1665
1669
|
*/
|
|
1666
1670
|
traceIds?: string[];
|
|
1667
1671
|
/** Optional display name for the resulting experiment/test run. */
|
|
@@ -1719,8 +1723,9 @@ interface ReplayOptions {
|
|
|
1719
1723
|
/** Group ID to associate this replay with an experiment group for live streaming in Studio. */
|
|
1720
1724
|
experimentGroupId?: string;
|
|
1721
1725
|
/**
|
|
1722
|
-
* Dataset this replay runs against. Mutually exclusive with `
|
|
1723
|
-
*
|
|
1726
|
+
* Dataset this replay runs against. Mutually exclusive with `datasetIds`.
|
|
1727
|
+
* Alone it replays the dataset's full membership, and with `traceIds` it
|
|
1728
|
+
* replays only those members. When set, the resulting experiment is
|
|
1724
1729
|
* durably attributed to the dataset (stored on the test run), so it appears
|
|
1725
1730
|
* under the dataset's experiments even if the trace lineage can't be
|
|
1726
1731
|
* reconstructed. Validated server-side against the org.
|
|
@@ -3288,7 +3293,7 @@ declare class BitfabFunction {
|
|
|
3288
3293
|
/**
|
|
3289
3294
|
* SDK version from package.json (injected at build time)
|
|
3290
3295
|
*/
|
|
3291
|
-
declare const __version__ = "0.52.
|
|
3296
|
+
declare const __version__ = "0.52.2";
|
|
3292
3297
|
|
|
3293
3298
|
/**
|
|
3294
3299
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
getCurrentSpan,
|
|
19
19
|
getCurrentTrace,
|
|
20
20
|
seedFromRegistry
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XLSKI7UA.js";
|
|
22
22
|
import "./chunk-ZUD7OFYB.js";
|
|
23
23
|
import {
|
|
24
24
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
ReplayError,
|
|
28
28
|
reportReplayProgress,
|
|
29
29
|
serializeReplayResult
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-XXKM4EL2.js";
|
|
31
31
|
import {
|
|
32
32
|
BitfabError,
|
|
33
33
|
DEFAULT_SERVICE_URL,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
MixedTracingError,
|
|
36
36
|
__version__,
|
|
37
37
|
flushTraces
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-QWAWERYM.js";
|
|
39
39
|
import "./chunk-H6LZRFMN.js";
|
|
40
40
|
export {
|
|
41
41
|
BITFAB_PROGRESS_PREFIX,
|
package/dist/node.cjs
CHANGED
|
@@ -88,7 +88,7 @@ var __version__, __packageName__;
|
|
|
88
88
|
var init_version_generated = __esm({
|
|
89
89
|
"src/version.generated.ts"() {
|
|
90
90
|
"use strict";
|
|
91
|
-
__version__ = "0.52.
|
|
91
|
+
__version__ = "0.52.2";
|
|
92
92
|
__packageName__ = "@bitfab/sdk";
|
|
93
93
|
}
|
|
94
94
|
});
|
|
@@ -3000,11 +3000,6 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
3000
3000
|
}
|
|
3001
3001
|
}
|
|
3002
3002
|
const datasetIds = resolveDatasetIds(options);
|
|
3003
|
-
if (options?.traceIds !== void 0 && datasetIds !== void 0) {
|
|
3004
|
-
throw new BitfabError(
|
|
3005
|
-
"traceIds and datasetIds select different replay sources and cannot be used together."
|
|
3006
|
-
);
|
|
3007
|
-
}
|
|
3008
3003
|
if (options?.limit !== void 0 && options?.traceIds !== void 0) {
|
|
3009
3004
|
try {
|
|
3010
3005
|
console.warn(
|