@bitfab/sdk 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-RQEYVHGV.js → chunk-I6MWT34L.js} +6 -3
- package/dist/{chunk-RQEYVHGV.js.map → chunk-I6MWT34L.js.map} +1 -1
- package/dist/{chunk-G52ZQTWU.js → chunk-LUDC6WMA.js} +4 -3
- package/dist/chunk-LUDC6WMA.js.map +1 -0
- package/dist/{chunk-YKHZGYAC.js → chunk-OKSCUFJ6.js} +6 -3
- package/dist/{chunk-YKHZGYAC.js.map → chunk-OKSCUFJ6.js.map} +1 -1
- package/dist/{chunk-LP2CN7SZ.js → chunk-ZIPITG22.js} +6 -6
- package/dist/{chunk-LP2CN7SZ.js.map → chunk-ZIPITG22.js.map} +1 -1
- package/dist/{http-224ASOWH.js → http-CGTUTKK3.js} +2 -2
- package/dist/{http-BUAOWCLI.js → http-MO5ZRPA6.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-OONSKTLR.js → replay-QFH4XW4T.js} +3 -3
- package/dist/replayCli.js +8 -2
- package/dist/replayCli.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-G52ZQTWU.js.map +0 -1
- /package/dist/{http-224ASOWH.js.map → http-CGTUTKK3.js.map} +0 -0
- /package/dist/{http-BUAOWCLI.js.map → http-MO5ZRPA6.js.map} +0 -0
- /package/dist/{replay-OONSKTLR.js.map → replay-QFH4XW4T.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
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
getCurrentSpan,
|
|
18
18
|
getCurrentTrace,
|
|
19
19
|
seedFromRegistry
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZIPITG22.js";
|
|
21
21
|
import "./chunk-ZUD7OFYB.js";
|
|
22
22
|
import {
|
|
23
23
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
ReplayError,
|
|
27
27
|
reportReplayProgress,
|
|
28
28
|
serializeReplayResult
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LUDC6WMA.js";
|
|
30
30
|
import {
|
|
31
31
|
BitfabError,
|
|
32
32
|
DEFAULT_SERVICE_URL,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
MixedTracingError,
|
|
35
35
|
__version__,
|
|
36
36
|
flushTraces
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-OKSCUFJ6.js";
|
|
38
38
|
import "./chunk-H6LZRFMN.js";
|
|
39
39
|
export {
|
|
40
40
|
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.
|
|
91
|
+
__version__ = "0.48.0";
|
|
92
92
|
__packageName__ = "@bitfab/sdk";
|
|
93
93
|
}
|
|
94
94
|
});
|
|
@@ -1854,7 +1854,7 @@ var init_http = __esm({
|
|
|
1854
1854
|
* Start a replay session by fetching historical traces.
|
|
1855
1855
|
* Blocking call - creates a test run and returns lightweight item references.
|
|
1856
1856
|
*/
|
|
1857
|
-
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId, graderIds, dbBranchSettings, attempts, includeOriginalMetadata) {
|
|
1857
|
+
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetId, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions) {
|
|
1858
1858
|
const payload = { traceFunctionKey };
|
|
1859
1859
|
if (limit !== void 0) {
|
|
1860
1860
|
payload.limit = limit;
|
|
@@ -1893,6 +1893,9 @@ var init_http = __esm({
|
|
|
1893
1893
|
if (includeOriginalMetadata) {
|
|
1894
1894
|
payload.includeOriginalMetadata = true;
|
|
1895
1895
|
}
|
|
1896
|
+
if (onlyWithAssertions) {
|
|
1897
|
+
payload.onlyWithAssertions = true;
|
|
1898
|
+
}
|
|
1896
1899
|
const timeout = includeDbBranchLease ? REPLAY_DB_BRANCH_REQUEST_TIMEOUT_MS : 3e4;
|
|
1897
1900
|
return this.request("/api/sdk/replay/start", payload, {
|
|
1898
1901
|
timeout
|
|
@@ -2958,7 +2961,8 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
2958
2961
|
options?.graderIds,
|
|
2959
2962
|
resolveDbBranchSettings(options?.dbBranch),
|
|
2960
2963
|
attempts,
|
|
2961
|
-
options?.adaptInputs !== void 0
|
|
2964
|
+
options?.adaptInputs !== void 0,
|
|
2965
|
+
options?.onlyWithAssertions
|
|
2962
2966
|
);
|
|
2963
2967
|
if (serverItems.length === 0) {
|
|
2964
2968
|
try {
|