@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/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). Mutually exclusive
1664
- * with `datasetId` and `datasetIds`.
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 `traceIds` and
1723
- * with `datasetIds`. When set, the resulting experiment is
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.1";
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). Mutually exclusive
1664
- * with `datasetId` and `datasetIds`.
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 `traceIds` and
1723
- * with `datasetIds`. When set, the resulting experiment is
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.1";
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-XAT6WLCS.js";
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-A5UGSRMK.js";
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-6DIR65JW.js";
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.1";
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(