@bitfab/sdk 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/{chunk-GT2GSQM2.js → chunk-HWQB73HK.js} +5 -3
- package/dist/chunk-HWQB73HK.js.map +1 -0
- package/dist/{chunk-A3WLV5VS.js → chunk-NIFTE3J4.js} +4 -4
- package/dist/chunk-NIFTE3J4.js.map +1 -0
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +2 -2
- package/dist/node.cjs +5 -3
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +2 -2
- package/dist/{replay-V4GLDFSU.js → replay-4Y23OZYE.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-A3WLV5VS.js.map +0 -1
- package/dist/chunk-GT2GSQM2.js.map +0 -1
- /package/dist/{replay-V4GLDFSU.js.map → replay-4Y23OZYE.js.map} +0 -0
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.
|
|
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.
|
|
1971
|
+
declare const __version__ = "0.33.3";
|
|
1967
1972
|
|
|
1968
1973
|
/**
|
|
1969
1974
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
getCurrentReplayBranch,
|
|
15
15
|
getCurrentSpan,
|
|
16
16
|
getCurrentTrace
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NIFTE3J4.js";
|
|
18
18
|
import {
|
|
19
19
|
BITFAB_PROGRESS_PREFIX,
|
|
20
20
|
BitfabError,
|
|
21
21
|
reportReplayProgress
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HWQB73HK.js";
|
|
23
23
|
export {
|
|
24
24
|
BITFAB_PROGRESS_PREFIX,
|
|
25
25
|
Bitfab,
|
package/dist/node.cjs
CHANGED
|
@@ -797,11 +797,13 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
797
797
|
await replayContextReady;
|
|
798
798
|
let codeChangeDescription = options?.codeChangeDescription;
|
|
799
799
|
let codeChangeFiles = options?.codeChangeFiles;
|
|
800
|
-
if (
|
|
800
|
+
if (codeChangeFiles === void 0) {
|
|
801
801
|
const captured = await resolveAutoCodeChange(options?.name);
|
|
802
802
|
if (captured) {
|
|
803
|
-
codeChangeDescription = captured.description;
|
|
804
803
|
codeChangeFiles = captured.files;
|
|
804
|
+
if (codeChangeDescription === void 0) {
|
|
805
|
+
codeChangeDescription = captured.description;
|
|
806
|
+
}
|
|
805
807
|
}
|
|
806
808
|
}
|
|
807
809
|
const {
|
|
@@ -1017,7 +1019,7 @@ registerAsyncLocalStorageClass(
|
|
|
1017
1019
|
);
|
|
1018
1020
|
|
|
1019
1021
|
// src/version.generated.ts
|
|
1020
|
-
var __version__ = "0.33.
|
|
1022
|
+
var __version__ = "0.33.3";
|
|
1021
1023
|
|
|
1022
1024
|
// src/constants.ts
|
|
1023
1025
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|