bitfab 0.47.0 → 0.48.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-2TVORTY7.js → chunk-3VHHLXEJ.js} +6 -3
- package/dist/{chunk-2TVORTY7.js.map → chunk-3VHHLXEJ.js.map} +1 -1
- package/dist/{chunk-DGVHJW43.js → chunk-CPMT6Y43.js} +6 -3
- package/dist/{chunk-DGVHJW43.js.map → chunk-CPMT6Y43.js.map} +1 -1
- package/dist/{chunk-4SGG6G4O.js → chunk-I6SVO5KX.js} +4 -3
- package/dist/chunk-I6SVO5KX.js.map +1 -0
- package/dist/{chunk-VBKLWDPP.js → chunk-JXDMOPST.js} +6 -6
- package/dist/{chunk-VBKLWDPP.js.map → chunk-JXDMOPST.js.map} +1 -1
- package/dist/{http-4VKISP7F.js → http-42E3SI2N.js} +2 -2
- package/dist/{http-AMWUT3JO.js → http-YN67UB3K.js} +2 -2
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +3 -3
- package/dist/node.cjs +7 -3
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-AGVP5TEA.js → replay-QMTLYKMX.js} +3 -3
- package/dist/replayCli.js +8 -2
- package/dist/replayCli.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-4SGG6G4O.js.map +0 -1
- /package/dist/{http-4VKISP7F.js.map → http-42E3SI2N.js.map} +0 -0
- /package/dist/{http-AMWUT3JO.js.map → http-YN67UB3K.js.map} +0 -0
- /package/dist/{replay-AGVP5TEA.js.map → replay-QMTLYKMX.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -556,7 +556,7 @@ declare class HttpClient {
|
|
|
556
556
|
* Start a replay session by fetching historical traces.
|
|
557
557
|
* Blocking call - creates a test run and returns lightweight item references.
|
|
558
558
|
*/
|
|
559
|
-
startReplay(traceFunctionKey: string, limit: number | undefined, traceIds?: string[], name?: string, codeChangeDescription?: string | null, codeChangeFiles?: CodeChangeFile[] | null, includeDbBranchLease?: boolean, experimentGroupId?: string, datasetId?: string, graderIds?: string[], dbBranchSettings?: DbBranchSettings, attempts?: number, includeOriginalMetadata?: boolean): Promise<StartReplayResponse>;
|
|
559
|
+
startReplay(traceFunctionKey: string, limit: number | undefined, traceIds?: string[], name?: string, codeChangeDescription?: string | null, codeChangeFiles?: CodeChangeFile[] | null, includeDbBranchLease?: boolean, experimentGroupId?: string, datasetId?: string, graderIds?: string[], dbBranchSettings?: DbBranchSettings, attempts?: number, includeOriginalMetadata?: boolean, onlyWithAssertions?: boolean): Promise<StartReplayResponse>;
|
|
560
560
|
/**
|
|
561
561
|
* Fetch an external span by ID.
|
|
562
562
|
* Blocking GET request.
|
|
@@ -1660,6 +1660,18 @@ interface ReplayOptions {
|
|
|
1660
1660
|
* organization and trace function, otherwise the server rejects the replay.
|
|
1661
1661
|
*/
|
|
1662
1662
|
graderIds?: string[];
|
|
1663
|
+
/**
|
|
1664
|
+
* Replay only the selected traces that carry at least one assertion.
|
|
1665
|
+
*
|
|
1666
|
+
* Narrows whatever `limit`, `traceIds` or `datasetId` selected, so a run that
|
|
1667
|
+
* measures assertion outcomes does not pay to re-execute traces nothing can
|
|
1668
|
+
* grade. The server applies it as part of selection, which is what makes it
|
|
1669
|
+
* compose with `limit`: `{ limit: 10, onlyWithAssertions: true }` is the ten
|
|
1670
|
+
* most recent traces that HAVE assertions, not the ten most recent filtered
|
|
1671
|
+
* down to however few do. An archived assertion does not count, and a
|
|
1672
|
+
* selection that narrows to nothing replays nothing.
|
|
1673
|
+
*/
|
|
1674
|
+
onlyWithAssertions?: boolean;
|
|
1663
1675
|
/**
|
|
1664
1676
|
* Reshape recorded inputs before they are spread into `fn`.
|
|
1665
1677
|
*
|
|
@@ -3199,7 +3211,7 @@ declare class BitfabFunction {
|
|
|
3199
3211
|
/**
|
|
3200
3212
|
* SDK version from package.json (injected at build time)
|
|
3201
3213
|
*/
|
|
3202
|
-
declare const __version__ = "0.
|
|
3214
|
+
declare const __version__ = "0.48.0";
|
|
3203
3215
|
|
|
3204
3216
|
/**
|
|
3205
3217
|
* Constants for the Bitfab SDK.
|
package/dist/index.d.ts
CHANGED
|
@@ -556,7 +556,7 @@ declare class HttpClient {
|
|
|
556
556
|
* Start a replay session by fetching historical traces.
|
|
557
557
|
* Blocking call - creates a test run and returns lightweight item references.
|
|
558
558
|
*/
|
|
559
|
-
startReplay(traceFunctionKey: string, limit: number | undefined, traceIds?: string[], name?: string, codeChangeDescription?: string | null, codeChangeFiles?: CodeChangeFile[] | null, includeDbBranchLease?: boolean, experimentGroupId?: string, datasetId?: string, graderIds?: string[], dbBranchSettings?: DbBranchSettings, attempts?: number, includeOriginalMetadata?: boolean): Promise<StartReplayResponse>;
|
|
559
|
+
startReplay(traceFunctionKey: string, limit: number | undefined, traceIds?: string[], name?: string, codeChangeDescription?: string | null, codeChangeFiles?: CodeChangeFile[] | null, includeDbBranchLease?: boolean, experimentGroupId?: string, datasetId?: string, graderIds?: string[], dbBranchSettings?: DbBranchSettings, attempts?: number, includeOriginalMetadata?: boolean, onlyWithAssertions?: boolean): Promise<StartReplayResponse>;
|
|
560
560
|
/**
|
|
561
561
|
* Fetch an external span by ID.
|
|
562
562
|
* Blocking GET request.
|
|
@@ -1660,6 +1660,18 @@ interface ReplayOptions {
|
|
|
1660
1660
|
* organization and trace function, otherwise the server rejects the replay.
|
|
1661
1661
|
*/
|
|
1662
1662
|
graderIds?: string[];
|
|
1663
|
+
/**
|
|
1664
|
+
* Replay only the selected traces that carry at least one assertion.
|
|
1665
|
+
*
|
|
1666
|
+
* Narrows whatever `limit`, `traceIds` or `datasetId` selected, so a run that
|
|
1667
|
+
* measures assertion outcomes does not pay to re-execute traces nothing can
|
|
1668
|
+
* grade. The server applies it as part of selection, which is what makes it
|
|
1669
|
+
* compose with `limit`: `{ limit: 10, onlyWithAssertions: true }` is the ten
|
|
1670
|
+
* most recent traces that HAVE assertions, not the ten most recent filtered
|
|
1671
|
+
* down to however few do. An archived assertion does not count, and a
|
|
1672
|
+
* selection that narrows to nothing replays nothing.
|
|
1673
|
+
*/
|
|
1674
|
+
onlyWithAssertions?: boolean;
|
|
1663
1675
|
/**
|
|
1664
1676
|
* Reshape recorded inputs before they are spread into `fn`.
|
|
1665
1677
|
*
|
|
@@ -3199,7 +3211,7 @@ declare class BitfabFunction {
|
|
|
3199
3211
|
/**
|
|
3200
3212
|
* SDK version from package.json (injected at build time)
|
|
3201
3213
|
*/
|
|
3202
|
-
declare const __version__ = "0.
|
|
3214
|
+
declare const __version__ = "0.48.0";
|
|
3203
3215
|
|
|
3204
3216
|
/**
|
|
3205
3217
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
getCurrentSpan,
|
|
27
27
|
getCurrentTrace,
|
|
28
28
|
seedFromRegistry
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JXDMOPST.js";
|
|
30
30
|
import "./chunk-ZUD7OFYB.js";
|
|
31
31
|
import {
|
|
32
32
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
ReplayError,
|
|
36
36
|
reportReplayProgress,
|
|
37
37
|
serializeReplayResult
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-I6SVO5KX.js";
|
|
39
39
|
import {
|
|
40
40
|
BitfabError,
|
|
41
41
|
DEFAULT_SERVICE_URL,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
MixedTracingError,
|
|
44
44
|
__version__,
|
|
45
45
|
flushTraces
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-3VHHLXEJ.js";
|
|
47
47
|
import "./chunk-H6LZRFMN.js";
|
|
48
48
|
export {
|
|
49
49
|
BITFAB_PROGRESS_PREFIX,
|
package/dist/node.cjs
CHANGED
|
@@ -97,7 +97,7 @@ var __version__, __packageName__;
|
|
|
97
97
|
var init_version_generated = __esm({
|
|
98
98
|
"src/version.generated.ts"() {
|
|
99
99
|
"use strict";
|
|
100
|
-
__version__ = "0.
|
|
100
|
+
__version__ = "0.48.0";
|
|
101
101
|
__packageName__ = "bitfab";
|
|
102
102
|
}
|
|
103
103
|
});
|
|
@@ -1863,7 +1863,7 @@ var init_http = __esm({
|
|
|
1863
1863
|
* Start a replay session by fetching historical traces.
|
|
1864
1864
|
* Blocking call - creates a test run and returns lightweight item references.
|
|
1865
1865
|
*/
|
|
1866
|
-
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId, graderIds, dbBranchSettings, attempts, includeOriginalMetadata) {
|
|
1866
|
+
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions) {
|
|
1867
1867
|
const payload = { traceFunctionKey };
|
|
1868
1868
|
if (limit !== void 0) {
|
|
1869
1869
|
payload.limit = limit;
|
|
@@ -1902,6 +1902,9 @@ var init_http = __esm({
|
|
|
1902
1902
|
if (includeOriginalMetadata) {
|
|
1903
1903
|
payload.includeOriginalMetadata = true;
|
|
1904
1904
|
}
|
|
1905
|
+
if (onlyWithAssertions) {
|
|
1906
|
+
payload.onlyWithAssertions = true;
|
|
1907
|
+
}
|
|
1905
1908
|
const timeout = includeDbBranchLease ? REPLAY_DB_BRANCH_REQUEST_TIMEOUT_MS : 3e4;
|
|
1906
1909
|
return this.request("/api/sdk/replay/start", payload, {
|
|
1907
1910
|
timeout
|
|
@@ -2967,7 +2970,8 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
2967
2970
|
options?.graderIds,
|
|
2968
2971
|
resolveDbBranchSettings(options?.dbBranch),
|
|
2969
2972
|
attempts,
|
|
2970
|
-
options?.adaptInputs !== void 0
|
|
2973
|
+
options?.adaptInputs !== void 0,
|
|
2974
|
+
options?.onlyWithAssertions
|
|
2971
2975
|
);
|
|
2972
2976
|
if (serverItems.length === 0) {
|
|
2973
2977
|
try {
|