@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/node.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 {
|
|
39
39
|
assertAsyncStorageRegistered,
|
|
40
40
|
registerAsyncLocalStorageClass
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
serializeReplayResult,
|
|
8
8
|
sleepForReplayPersistence,
|
|
9
9
|
waitForReplayPersistence
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-LUDC6WMA.js";
|
|
11
|
+
import "./chunk-OKSCUFJ6.js";
|
|
12
12
|
import "./chunk-H6LZRFMN.js";
|
|
13
13
|
export {
|
|
14
14
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
sleepForReplayPersistence,
|
|
21
21
|
waitForReplayPersistence
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=replay-
|
|
23
|
+
//# sourceMappingURL=replay-QFH4XW4T.js.map
|
package/dist/replayCli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
BitfabError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I6MWT34L.js";
|
|
5
5
|
|
|
6
6
|
// src/replayCli.ts
|
|
7
7
|
import { tsImport } from "tsx/esm/api";
|
|
@@ -85,6 +85,7 @@ var VALUE_FLAGS = /* @__PURE__ */ new Set([
|
|
|
85
85
|
"--params"
|
|
86
86
|
]);
|
|
87
87
|
var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
88
|
+
"--only-with-assertions",
|
|
88
89
|
"--db-branch",
|
|
89
90
|
"--no-db-branch",
|
|
90
91
|
"--no-code-change",
|
|
@@ -105,6 +106,7 @@ Options:
|
|
|
105
106
|
--experiment-group-id UUID
|
|
106
107
|
--dataset-id UUID
|
|
107
108
|
--grader-ids id1,id2
|
|
109
|
+
--only-with-assertions (replay only traces carrying an assertion)
|
|
108
110
|
--mock none|all|marked
|
|
109
111
|
--db-branch, --no-db-branch
|
|
110
112
|
--dry-run (resolve inputs, run nothing)
|
|
@@ -170,7 +172,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
170
172
|
sessionId: seedCase.sessionId
|
|
171
173
|
})
|
|
172
174
|
);
|
|
173
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
175
|
+
const { flushTraces: flushTraces2 } = await import("./http-CGTUTKK3.js");
|
|
174
176
|
await flushTraces2(3e4);
|
|
175
177
|
return { pipeline, traceFunctionKey, traceIds };
|
|
176
178
|
}
|
|
@@ -251,6 +253,9 @@ function parseReplayCliArgs(registry, argv) {
|
|
|
251
253
|
}
|
|
252
254
|
parsed.dbBranch = false;
|
|
253
255
|
break;
|
|
256
|
+
case "--only-with-assertions":
|
|
257
|
+
parsed.onlyWithAssertions = true;
|
|
258
|
+
break;
|
|
254
259
|
case "--no-code-change":
|
|
255
260
|
parsed.noCodeChange = true;
|
|
256
261
|
break;
|
|
@@ -495,6 +500,7 @@ async function runReplayCli(registry, argv = typeof process === "undefined" ? []
|
|
|
495
500
|
...args.experimentGroupId === void 0 ? {} : { experimentGroupId: args.experimentGroupId },
|
|
496
501
|
...args.datasetId === void 0 ? {} : { datasetId: args.datasetId },
|
|
497
502
|
...args.graderIds === void 0 ? {} : { graderIds: args.graderIds },
|
|
503
|
+
...args.onlyWithAssertions === void 0 ? {} : { onlyWithAssertions: args.onlyWithAssertions },
|
|
498
504
|
...args.mock === void 0 ? {} : { mock: args.mock },
|
|
499
505
|
...args.dbBranch === void 0 ? {} : {
|
|
500
506
|
dbBranch: args.dbBranch && registrationOptions.dbBranch !== void 0 && registrationOptions.dbBranch !== false ? registrationOptions.dbBranch : args.dbBranch
|