bitfab 0.65.3 → 0.65.4
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-SE73IWU6.js → chunk-3266UYG5.js} +33 -30
- package/dist/chunk-3266UYG5.js.map +1 -0
- package/dist/{chunk-VX6HW3LS.js → chunk-32BQRD37.js} +2 -2
- package/dist/{chunk-VX6HW3LS.js.map → chunk-32BQRD37.js.map} +1 -1
- package/dist/{chunk-MPZBAVVQ.js → chunk-6WMY7SWO.js} +2 -2
- package/dist/{chunk-MPZBAVVQ.js.map → chunk-6WMY7SWO.js.map} +1 -1
- package/dist/{chunk-CL66KPSI.js → chunk-7MT7ODVG.js} +2 -2
- package/dist/{chunk-MNMG2BAE.js → chunk-OJMUXZBC.js} +4 -4
- package/dist/{chunk-NMPHLDEG.js → chunk-OPOYSRYU.js} +2 -2
- package/dist/{http-UHEXY3ZE.js → http-2PRP3HWS.js} +2 -2
- package/dist/{http-VGZFZ3DQ.js → http-IJB2G6EO.js} +2 -2
- package/dist/index.cjs +28 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +3 -3
- package/dist/node.cjs +28 -25
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-NJ7VOSPW.js → replay-J5SGUAGH.js} +3 -3
- package/dist/{replay-R3EIGP7F.js → replay-YMNBRGZ7.js} +3 -3
- package/dist/replayCli.js +3 -3
- package/dist/seedCli.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-SE73IWU6.js.map +0 -1
- /package/dist/{chunk-CL66KPSI.js.map → chunk-7MT7ODVG.js.map} +0 -0
- /package/dist/{chunk-MNMG2BAE.js.map → chunk-OJMUXZBC.js.map} +0 -0
- /package/dist/{chunk-NMPHLDEG.js.map → chunk-OPOYSRYU.js.map} +0 -0
- /package/dist/{http-UHEXY3ZE.js.map → http-2PRP3HWS.js.map} +0 -0
- /package/dist/{http-VGZFZ3DQ.js.map → http-IJB2G6EO.js.map} +0 -0
- /package/dist/{replay-NJ7VOSPW.js.map → replay-J5SGUAGH.js.map} +0 -0
- /package/dist/{replay-R3EIGP7F.js.map → replay-YMNBRGZ7.js.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
unrefTimer,
|
|
10
10
|
warnOnce,
|
|
11
11
|
writeOnce
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-32BQRD37.js";
|
|
13
13
|
|
|
14
14
|
// src/codeChange.ts
|
|
15
15
|
var MAX_FILES = 60;
|
|
@@ -1909,4 +1909,4 @@ export {
|
|
|
1909
1909
|
warnJudgeAssertionsDeprecated,
|
|
1910
1910
|
replay
|
|
1911
1911
|
};
|
|
1912
|
-
//# sourceMappingURL=chunk-
|
|
1912
|
+
//# sourceMappingURL=chunk-7MT7ODVG.js.map
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
serializeReplayResult,
|
|
7
7
|
warnJudgeAssertionsDeprecated,
|
|
8
8
|
withCliFlags
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7MT7ODVG.js";
|
|
10
10
|
import {
|
|
11
11
|
BitfabError,
|
|
12
12
|
asyncStorageReady,
|
|
13
13
|
createAsyncLocalStorage,
|
|
14
14
|
warnOnce
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-32BQRD37.js";
|
|
16
16
|
|
|
17
17
|
// src/autoTrace.ts
|
|
18
18
|
var autoTraceGlobal = globalThis;
|
|
@@ -458,7 +458,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
458
458
|
sessionId: seedCase.sessionId
|
|
459
459
|
})
|
|
460
460
|
);
|
|
461
|
-
const { flushTraces } = await import("./http-
|
|
461
|
+
const { flushTraces } = await import("./http-IJB2G6EO.js");
|
|
462
462
|
await flushTraces(3e4);
|
|
463
463
|
return { pipeline, traceFunctionKey, traceIds };
|
|
464
464
|
}
|
|
@@ -1173,4 +1173,4 @@ export {
|
|
|
1173
1173
|
runRegistryMain,
|
|
1174
1174
|
runIfEntrypoint
|
|
1175
1175
|
};
|
|
1176
|
-
//# sourceMappingURL=chunk-
|
|
1176
|
+
//# sourceMappingURL=chunk-OJMUXZBC.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
replayContextReady,
|
|
9
9
|
runWithReplayContext,
|
|
10
10
|
unrefTimer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6WMY7SWO.js";
|
|
12
12
|
import {
|
|
13
13
|
runWithCaptureSuppressed,
|
|
14
14
|
warnOnce,
|
|
@@ -2057,4 +2057,4 @@ export {
|
|
|
2057
2057
|
warnJudgeAssertionsDeprecated,
|
|
2058
2058
|
replay
|
|
2059
2059
|
};
|
|
2060
|
-
//# sourceMappingURL=chunk-
|
|
2060
|
+
//# sourceMappingURL=chunk-OPOYSRYU.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
flushTraces,
|
|
9
9
|
parseRetryAfterMs,
|
|
10
10
|
serializePayloadBody
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6WMY7SWO.js";
|
|
12
12
|
import "./chunk-MT36GJMW.js";
|
|
13
13
|
export {
|
|
14
14
|
BitfabError,
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
parseRetryAfterMs,
|
|
22
22
|
serializePayloadBody
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=http-
|
|
24
|
+
//# sourceMappingURL=http-2PRP3HWS.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
flushTraces,
|
|
9
9
|
parseRetryAfterMs,
|
|
10
10
|
serializePayloadBody
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-32BQRD37.js";
|
|
12
12
|
export {
|
|
13
13
|
BitfabError,
|
|
14
14
|
HttpClient,
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
parseRetryAfterMs,
|
|
21
21
|
serializePayloadBody
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=http-
|
|
23
|
+
//# sourceMappingURL=http-IJB2G6EO.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -51,7 +51,7 @@ var __version__, __packageName__;
|
|
|
51
51
|
var init_version_generated = __esm({
|
|
52
52
|
"src/version.generated.ts"() {
|
|
53
53
|
"use strict";
|
|
54
|
-
__version__ = "0.65.
|
|
54
|
+
__version__ = "0.65.4";
|
|
55
55
|
__packageName__ = "bitfab";
|
|
56
56
|
}
|
|
57
57
|
});
|
|
@@ -6875,6 +6875,12 @@ function finishedRerun(datasetId, run, joinedExisting) {
|
|
|
6875
6875
|
}
|
|
6876
6876
|
return { run, joinedExisting };
|
|
6877
6877
|
}
|
|
6878
|
+
function normalizeDataset(dataset) {
|
|
6879
|
+
return { ...dataset, golden: dataset.golden ?? false };
|
|
6880
|
+
}
|
|
6881
|
+
function normalizeDatasetResult(response) {
|
|
6882
|
+
return { ...response, dataset: normalizeDataset(response.dataset) };
|
|
6883
|
+
}
|
|
6878
6884
|
function sleep(ms) {
|
|
6879
6885
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
6880
6886
|
}
|
|
@@ -6891,11 +6897,13 @@ var DatasetsClient = class {
|
|
|
6891
6897
|
* leaves an existing one untouched.
|
|
6892
6898
|
*/
|
|
6893
6899
|
async save(params) {
|
|
6894
|
-
|
|
6900
|
+
const response = await this.httpClient.request("/api/sdk/datasets", {
|
|
6895
6901
|
traceFunctionKey: params.traceFunctionKey,
|
|
6896
6902
|
name: params.name,
|
|
6897
|
-
...params.description === void 0 ? {} : { description: params.description }
|
|
6903
|
+
...params.description === void 0 ? {} : { description: params.description },
|
|
6904
|
+
...typeof params.golden === "boolean" ? { golden: params.golden } : {}
|
|
6898
6905
|
});
|
|
6906
|
+
return normalizeDatasetResult(response);
|
|
6899
6907
|
}
|
|
6900
6908
|
/**
|
|
6901
6909
|
* Rename a dataset or change its description in place. The dataset keeps its
|
|
@@ -6905,18 +6913,21 @@ var DatasetsClient = class {
|
|
|
6905
6913
|
* organization.
|
|
6906
6914
|
*/
|
|
6907
6915
|
async update(datasetId, params) {
|
|
6908
|
-
if (params.name === void 0 && params.description === void 0) {
|
|
6909
|
-
throw new BitfabError(
|
|
6916
|
+
if (params.name === void 0 && params.description === void 0 && params.golden === void 0) {
|
|
6917
|
+
throw new BitfabError(
|
|
6918
|
+
"Provide name, description, and/or golden to update."
|
|
6919
|
+
);
|
|
6910
6920
|
}
|
|
6911
6921
|
const response = await this.httpClient.request(
|
|
6912
6922
|
datasetPath(datasetId),
|
|
6913
6923
|
{
|
|
6914
6924
|
...params.name === void 0 ? {} : { name: params.name },
|
|
6915
|
-
...params.description === void 0 ? {} : { description: params.description }
|
|
6925
|
+
...params.description === void 0 ? {} : { description: params.description },
|
|
6926
|
+
...typeof params.golden === "boolean" ? { golden: params.golden } : {}
|
|
6916
6927
|
},
|
|
6917
6928
|
{ method: "PATCH" }
|
|
6918
6929
|
);
|
|
6919
|
-
return response.dataset;
|
|
6930
|
+
return normalizeDataset(response.dataset);
|
|
6920
6931
|
}
|
|
6921
6932
|
/**
|
|
6922
6933
|
* List datasets, scoped to one trace function when `traceFunctionKey` is
|
|
@@ -6934,7 +6945,7 @@ var DatasetsClient = class {
|
|
|
6934
6945
|
query.set("cursor", cursor);
|
|
6935
6946
|
}
|
|
6936
6947
|
const response = await this.httpClient.get(`/api/sdk/datasets?${query}`);
|
|
6937
|
-
datasets.push(...response.datasets);
|
|
6948
|
+
datasets.push(...response.datasets.map(normalizeDataset));
|
|
6938
6949
|
cursor = response.nextCursor ?? void 0;
|
|
6939
6950
|
} while (cursor !== void 0);
|
|
6940
6951
|
return datasets;
|
|
@@ -6944,7 +6955,7 @@ var DatasetsClient = class {
|
|
|
6944
6955
|
const response = await this.httpClient.get(
|
|
6945
6956
|
datasetPath(datasetId)
|
|
6946
6957
|
);
|
|
6947
|
-
return response.dataset;
|
|
6958
|
+
return normalizeDataset(response.dataset);
|
|
6948
6959
|
}
|
|
6949
6960
|
/** Fetches all trace-ID pages, the same membership a replay with `datasetId` selects. */
|
|
6950
6961
|
async listTraces(datasetId) {
|
|
@@ -6965,17 +6976,13 @@ var DatasetsClient = class {
|
|
|
6965
6976
|
* `skippedTraceIds` rather than failing the call.
|
|
6966
6977
|
*/
|
|
6967
6978
|
async addTraces(datasetId, traceIds) {
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
{ traceIds }
|
|
6971
|
-
);
|
|
6979
|
+
const response = await this.httpClient.request(datasetPath(datasetId, "/traces"), { traceIds });
|
|
6980
|
+
return normalizeDatasetResult(response);
|
|
6972
6981
|
}
|
|
6973
6982
|
/** Remove traces from the dataset. The traces themselves are never deleted. */
|
|
6974
6983
|
async removeTraces(datasetId, traceIds) {
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
{ traceIds }
|
|
6978
|
-
);
|
|
6984
|
+
const response = await this.httpClient.request(datasetPath(datasetId, "/removeTraces"), { traceIds });
|
|
6985
|
+
return normalizeDatasetResult(response);
|
|
6979
6986
|
}
|
|
6980
6987
|
/**
|
|
6981
6988
|
* Assign graders to the dataset (1 to 100 ids per call). Graders outside the
|
|
@@ -6983,17 +6990,13 @@ var DatasetsClient = class {
|
|
|
6983
6990
|
* `skippedGraderIds` rather than failing the call.
|
|
6984
6991
|
*/
|
|
6985
6992
|
async addGraders(datasetId, graderIds) {
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
{ graderIds }
|
|
6989
|
-
);
|
|
6993
|
+
const response = await this.httpClient.request(datasetPath(datasetId, "/graders"), { graderIds });
|
|
6994
|
+
return normalizeDatasetResult(response);
|
|
6990
6995
|
}
|
|
6991
6996
|
/** Unassign graders from the dataset. */
|
|
6992
6997
|
async removeGraders(datasetId, graderIds) {
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
{ graderIds }
|
|
6996
|
-
);
|
|
6998
|
+
const response = await this.httpClient.request(datasetPath(datasetId, "/removeGraders"), { graderIds });
|
|
6999
|
+
return normalizeDatasetResult(response);
|
|
6997
7000
|
}
|
|
6998
7001
|
async rerunGraders(datasetId, options = {}) {
|
|
6999
7002
|
const started = await this.httpClient.request(
|