@bitfab/sdk 0.46.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-RIMNDJP3.js → chunk-I6MWT34L.js} +6 -3
- package/dist/{chunk-RIMNDJP3.js.map → chunk-I6MWT34L.js.map} +1 -1
- package/dist/{chunk-WVGPOCCT.js → chunk-LUDC6WMA.js} +4 -3
- package/dist/chunk-LUDC6WMA.js.map +1 -0
- package/dist/{chunk-HSLKCBA3.js → chunk-OKSCUFJ6.js} +6 -3
- package/dist/{chunk-HSLKCBA3.js.map → chunk-OKSCUFJ6.js.map} +1 -1
- package/dist/{chunk-OS62EZ6Y.js → chunk-ZIPITG22.js} +6 -6
- package/dist/chunk-ZIPITG22.js.map +1 -0
- package/dist/{http-RKVEWOUX.js → http-CGTUTKK3.js} +2 -2
- package/dist/{http-LVSVWTKO.js → http-MO5ZRPA6.js} +2 -2
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -3
- package/dist/index.d.ts +17 -3
- 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-Q2YYL5HB.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-OS62EZ6Y.js.map +0 -1
- package/dist/chunk-WVGPOCCT.js.map +0 -1
- /package/dist/{http-LVSVWTKO.js.map → http-CGTUTKK3.js.map} +0 -0
- /package/dist/{http-RKVEWOUX.js.map → http-MO5ZRPA6.js.map} +0 -0
- /package/dist/{replay-Q2YYL5HB.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.
|
|
@@ -1259,7 +1259,7 @@ declare class DatasetsClient {
|
|
|
1259
1259
|
|
|
1260
1260
|
type LabelConfidence = "VeryLow" | "Low" | "Medium" | "High" | "VeryHigh";
|
|
1261
1261
|
type LabelAction = "set" | "archived" | "no-active-label" | "skipped";
|
|
1262
|
-
type LabelTarget = {
|
|
1262
|
+
type LabelTarget = ({
|
|
1263
1263
|
traceId: string;
|
|
1264
1264
|
originalTraceId?: never;
|
|
1265
1265
|
attempt?: never;
|
|
@@ -1267,6 +1267,8 @@ type LabelTarget = {
|
|
|
1267
1267
|
originalTraceId: string;
|
|
1268
1268
|
attempt?: number;
|
|
1269
1269
|
traceId?: never;
|
|
1270
|
+
}) & {
|
|
1271
|
+
assertionId?: string;
|
|
1270
1272
|
};
|
|
1271
1273
|
type LabelVerdict = {
|
|
1272
1274
|
label: boolean;
|
|
@@ -1658,6 +1660,18 @@ interface ReplayOptions {
|
|
|
1658
1660
|
* organization and trace function, otherwise the server rejects the replay.
|
|
1659
1661
|
*/
|
|
1660
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;
|
|
1661
1675
|
/**
|
|
1662
1676
|
* Reshape recorded inputs before they are spread into `fn`.
|
|
1663
1677
|
*
|
|
@@ -3197,7 +3211,7 @@ declare class BitfabFunction {
|
|
|
3197
3211
|
/**
|
|
3198
3212
|
* SDK version from package.json (injected at build time)
|
|
3199
3213
|
*/
|
|
3200
|
-
declare const __version__ = "0.
|
|
3214
|
+
declare const __version__ = "0.48.0";
|
|
3201
3215
|
|
|
3202
3216
|
/**
|
|
3203
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.
|
|
@@ -1259,7 +1259,7 @@ declare class DatasetsClient {
|
|
|
1259
1259
|
|
|
1260
1260
|
type LabelConfidence = "VeryLow" | "Low" | "Medium" | "High" | "VeryHigh";
|
|
1261
1261
|
type LabelAction = "set" | "archived" | "no-active-label" | "skipped";
|
|
1262
|
-
type LabelTarget = {
|
|
1262
|
+
type LabelTarget = ({
|
|
1263
1263
|
traceId: string;
|
|
1264
1264
|
originalTraceId?: never;
|
|
1265
1265
|
attempt?: never;
|
|
@@ -1267,6 +1267,8 @@ type LabelTarget = {
|
|
|
1267
1267
|
originalTraceId: string;
|
|
1268
1268
|
attempt?: number;
|
|
1269
1269
|
traceId?: never;
|
|
1270
|
+
}) & {
|
|
1271
|
+
assertionId?: string;
|
|
1270
1272
|
};
|
|
1271
1273
|
type LabelVerdict = {
|
|
1272
1274
|
label: boolean;
|
|
@@ -1658,6 +1660,18 @@ interface ReplayOptions {
|
|
|
1658
1660
|
* organization and trace function, otherwise the server rejects the replay.
|
|
1659
1661
|
*/
|
|
1660
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;
|
|
1661
1675
|
/**
|
|
1662
1676
|
* Reshape recorded inputs before they are spread into `fn`.
|
|
1663
1677
|
*
|
|
@@ -3197,7 +3211,7 @@ declare class BitfabFunction {
|
|
|
3197
3211
|
/**
|
|
3198
3212
|
* SDK version from package.json (injected at build time)
|
|
3199
3213
|
*/
|
|
3200
|
-
declare const __version__ = "0.
|
|
3214
|
+
declare const __version__ = "0.48.0";
|
|
3201
3215
|
|
|
3202
3216
|
/**
|
|
3203
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 {
|