bitfab 0.33.2 → 0.33.3

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
@@ -794,15 +794,20 @@ interface ReplayOptions {
794
794
  /**
795
795
  * Description of the code change being tested in this replay. Stored on
796
796
  * the resulting experiment so the change can be reviewed alongside results.
797
+ * Supplying a description without `codeChangeFiles` preserves this text
798
+ * while the SDK automatically captures the files.
799
+ * Pass `null` when the replay should have no description; use
800
+ * `codeChangeFiles: null` to suppress automatic file capture.
797
801
  */
798
- codeChangeDescription?: string;
802
+ codeChangeDescription?: string | null;
799
803
  /**
800
804
  * Files edited as part of this code change. Each entry holds the file path
801
805
  * and the full `before`/`after` contents. The agent reads each file before
802
806
  * and after editing and passes the two strings. Use `""` for newly created
803
- * files (`before`) or deleted files (`after`).
807
+ * files (`before`) or deleted files (`after`). Omit this field to capture
808
+ * automatically, or pass `null` to suppress file capture for this replay.
804
809
  */
805
- codeChangeFiles?: CodeChangeFile[];
810
+ codeChangeFiles?: CodeChangeFile[] | null;
806
811
  /**
807
812
  * Mock strategy for child spans during replay.
808
813
  * - "marked": only spans tagged with { mockOnReplay: true } in SpanOptions are mocked (default)
@@ -1963,7 +1968,7 @@ declare class BitfabFunction {
1963
1968
  /**
1964
1969
  * SDK version from package.json (injected at build time)
1965
1970
  */
1966
- declare const __version__ = "0.33.2";
1971
+ declare const __version__ = "0.33.3";
1967
1972
 
1968
1973
  /**
1969
1974
  * Constants for the Bitfab SDK.
package/dist/index.d.ts CHANGED
@@ -794,15 +794,20 @@ interface ReplayOptions {
794
794
  /**
795
795
  * Description of the code change being tested in this replay. Stored on
796
796
  * the resulting experiment so the change can be reviewed alongside results.
797
+ * Supplying a description without `codeChangeFiles` preserves this text
798
+ * while the SDK automatically captures the files.
799
+ * Pass `null` when the replay should have no description; use
800
+ * `codeChangeFiles: null` to suppress automatic file capture.
797
801
  */
798
- codeChangeDescription?: string;
802
+ codeChangeDescription?: string | null;
799
803
  /**
800
804
  * Files edited as part of this code change. Each entry holds the file path
801
805
  * and the full `before`/`after` contents. The agent reads each file before
802
806
  * and after editing and passes the two strings. Use `""` for newly created
803
- * files (`before`) or deleted files (`after`).
807
+ * files (`before`) or deleted files (`after`). Omit this field to capture
808
+ * automatically, or pass `null` to suppress file capture for this replay.
804
809
  */
805
- codeChangeFiles?: CodeChangeFile[];
810
+ codeChangeFiles?: CodeChangeFile[] | null;
806
811
  /**
807
812
  * Mock strategy for child spans during replay.
808
813
  * - "marked": only spans tagged with { mockOnReplay: true } in SpanOptions are mocked (default)
@@ -1963,7 +1968,7 @@ declare class BitfabFunction {
1963
1968
  /**
1964
1969
  * SDK version from package.json (injected at build time)
1965
1970
  */
1966
- declare const __version__ = "0.33.2";
1971
+ declare const __version__ = "0.33.3";
1967
1972
 
1968
1973
  /**
1969
1974
  * Constants for the Bitfab SDK.
package/dist/index.js CHANGED
@@ -23,12 +23,12 @@ import {
23
23
  getCurrentReplayBranch,
24
24
  getCurrentSpan,
25
25
  getCurrentTrace
26
- } from "./chunk-A3WLV5VS.js";
26
+ } from "./chunk-NIFTE3J4.js";
27
27
  import {
28
28
  BITFAB_PROGRESS_PREFIX,
29
29
  BitfabError,
30
30
  reportReplayProgress
31
- } from "./chunk-GT2GSQM2.js";
31
+ } from "./chunk-HWQB73HK.js";
32
32
  export {
33
33
  BITFAB_PROGRESS_PREFIX,
34
34
  Bitfab,
package/dist/node.cjs CHANGED
@@ -806,11 +806,13 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
806
806
  await replayContextReady;
807
807
  let codeChangeDescription = options?.codeChangeDescription;
808
808
  let codeChangeFiles = options?.codeChangeFiles;
809
- if (codeChangeDescription === void 0 && codeChangeFiles === void 0) {
809
+ if (codeChangeFiles === void 0) {
810
810
  const captured = await resolveAutoCodeChange(options?.name);
811
811
  if (captured) {
812
- codeChangeDescription = captured.description;
813
812
  codeChangeFiles = captured.files;
813
+ if (codeChangeDescription === void 0) {
814
+ codeChangeDescription = captured.description;
815
+ }
814
816
  }
815
817
  }
816
818
  const {
@@ -1026,7 +1028,7 @@ registerAsyncLocalStorageClass(
1026
1028
  );
1027
1029
 
1028
1030
  // src/version.generated.ts
1029
- var __version__ = "0.33.2";
1031
+ var __version__ = "0.33.3";
1030
1032
 
1031
1033
  // src/constants.ts
1032
1034
  var DEFAULT_SERVICE_URL = "https://bitfab.ai";