@bitfab/sdk 0.74.3 → 0.74.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/{http-Dd0XLEqA.js → http-BM1TSXDd.js} +4 -3
- package/dist/{http-Dd0XLEqA.js.map → http-BM1TSXDd.js.map} +1 -1
- package/dist/{http-BHgwaBjv.cjs → http-VtGRzeNI.cjs} +4 -3
- package/dist/{http-BHgwaBjv.cjs.map → http-VtGRzeNI.cjs.map} +1 -1
- package/dist/{index-eZPhpygX.d.cts → index-BiSZ0rGD.d.cts} +13 -2
- package/dist/{index-eZPhpygX.d.ts → index-BiSZ0rGD.d.ts} +13 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/node.cjs +2 -2
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +2 -2
- package/dist/{registryCommand-BQcyBmhN.js → registryCommand-Bm2-Peq8.js} +27 -12
- package/dist/registryCommand-Bm2-Peq8.js.map +1 -0
- package/dist/replayCli.js +1 -1
- package/dist/seedCli.js +1 -1
- package/dist/{src-KAtu1Cmn.cjs → src-Cr4ZJLeB.cjs} +11 -5
- package/dist/src-Cr4ZJLeB.cjs.map +1 -0
- package/dist/{src-v9Cp4amm.js → src-Dp8OX46R.js} +11 -5
- package/dist/src-Dp8OX46R.js.map +1 -0
- package/package.json +1 -1
- package/dist/registryCommand-BQcyBmhN.js.map +0 -1
- package/dist/src-KAtu1Cmn.cjs.map +0 -1
- package/dist/src-v9Cp4amm.js.map +0 -1
package/dist/replayCli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as runRegistryMain, c as runSeedCli, i as runIfEntrypoint, n as parseRegistryCommandArgs, o as checkReplayCliArgs, r as resolveRegistry, s as runReplayCli, t as importRegistry } from "./registryCommand-
|
|
2
|
+
import { a as runRegistryMain, c as runSeedCli, i as runIfEntrypoint, n as parseRegistryCommandArgs, o as checkReplayCliArgs, r as resolveRegistry, s as runReplayCli, t as importRegistry } from "./registryCommand-Bm2-Peq8.js";
|
|
3
3
|
//#region src/cloudReplayCli.ts
|
|
4
4
|
const CLOUD_REPLAY_HINT = "Add --cloud to run the same replay on GitHub Actions; bitfab-replay --cloud --help explains it.";
|
|
5
5
|
function isCloudReplayCommand(argv) {
|
package/dist/seedCli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as runRegistryMain, c as runSeedCli, i as runIfEntrypoint, n as parseRegistryCommandArgs, r as resolveRegistry, t as importRegistry } from "./registryCommand-
|
|
2
|
+
import { a as runRegistryMain, c as runSeedCli, i as runIfEntrypoint, n as parseRegistryCommandArgs, r as resolveRegistry, t as importRegistry } from "./registryCommand-Bm2-Peq8.js";
|
|
3
3
|
//#region src/seedCli.ts
|
|
4
4
|
const USAGE = "Usage: bitfab-seed --registry <path> <pipeline> --from-trace <id>[,<id>...]\n bitfab-seed --registry <path> <pipeline> --cases <cases.jsonl> [--run]\nRun bitfab-seed --registry <path> <pipeline> --help for details.";
|
|
5
5
|
async function runSeedCommand(argv, io = {}, importer = importRegistry) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_bamlPeer = require("./bamlPeer-5Ohpq8q9.cjs");
|
|
2
|
-
const require_http = require("./http-
|
|
2
|
+
const require_http = require("./http-VtGRzeNI.cjs");
|
|
3
3
|
const require_autoTrace = require("./autoTrace-DPWV1Xzr.cjs");
|
|
4
4
|
const require_optionalPeer = require("./optionalPeer-CUH756lt.cjs");
|
|
5
5
|
let superjson = require("superjson");
|
|
@@ -3735,6 +3735,7 @@ const RESUME_CONFLICTING_OPTIONS = [
|
|
|
3735
3735
|
"attempts",
|
|
3736
3736
|
"graderIds",
|
|
3737
3737
|
"onlyWithAssertions",
|
|
3738
|
+
"categoryIds",
|
|
3738
3739
|
"dryRun",
|
|
3739
3740
|
"experimentalSelectiveReplay"
|
|
3740
3741
|
];
|
|
@@ -3842,6 +3843,7 @@ const REPLAY_OPTION_NAMES = [
|
|
|
3842
3843
|
"datasetIds",
|
|
3843
3844
|
"graderIds",
|
|
3844
3845
|
"onlyWithAssertions",
|
|
3846
|
+
"categoryIds",
|
|
3845
3847
|
"skipAssertionJudging",
|
|
3846
3848
|
"judgeAssertions",
|
|
3847
3849
|
"adaptInputs",
|
|
@@ -4212,6 +4214,10 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
4212
4214
|
if (options.traceIds.length > 100) throw new require_http.BitfabError(`traceIds supports at most 100 trace IDs per replay (got ${options.traceIds.length}).`);
|
|
4213
4215
|
}
|
|
4214
4216
|
const datasetIds = resolveDatasetIds(options);
|
|
4217
|
+
if (options?.categoryIds !== void 0) {
|
|
4218
|
+
if (options.categoryIds.length === 0) throw new require_http.BitfabError("categoryIds must contain at least one category ID.");
|
|
4219
|
+
if (options.traceIds === void 0 && datasetIds === void 0) throw new require_http.BitfabError("categoryIds narrows a trace ID or dataset selection. Pass it with traceIds, datasetId or datasetIds.");
|
|
4220
|
+
}
|
|
4215
4221
|
if (options?.limit !== void 0 && options?.traceIds !== void 0) try {
|
|
4216
4222
|
console.warn("Bitfab: limit is ignored when traceIds is passed: the explicit trace ID list already determines how many traces replay.");
|
|
4217
4223
|
} catch {}
|
|
@@ -4223,7 +4229,7 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
4223
4229
|
const includeDbBranchLease = dbBranchEnabled(options?.dbBranch) && options?.dryRun !== true;
|
|
4224
4230
|
let session;
|
|
4225
4231
|
if (options?.resume === void 0) {
|
|
4226
|
-
const started = await httpClient.startReplay(traceFunctionKey, options?.traceIds ? void 0 : options?.limit ?? 5, options?.traceIds, options?.name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, options?.experimentGroupId, datasetIds, options?.graderIds, resolveDbBranchSettings(options?.dbBranch), requestedAttempts, options?.adaptInputs !== void 0, options?.onlyWithAssertions, options?.skipAssertionJudging === true || options?.judgeAssertions === false, options?.experimentalSelectiveReplay, options?.notes, options?.metadata, options?.dryRun === true, options?.experimentGroupName, safeReplayInvocation(() => buildReplayInvocation(Object.entries(cliFlags(options) ?? explicitReplayOptions(options)))), codeChangeType);
|
|
4232
|
+
const started = await httpClient.startReplay(traceFunctionKey, options?.traceIds ? void 0 : options?.limit ?? 5, options?.traceIds, options?.name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, options?.experimentGroupId, datasetIds, options?.graderIds, resolveDbBranchSettings(options?.dbBranch), requestedAttempts, options?.adaptInputs !== void 0, options?.onlyWithAssertions, options?.skipAssertionJudging === true || options?.judgeAssertions === false, options?.experimentalSelectiveReplay, options?.notes, options?.metadata, options?.dryRun === true, options?.experimentGroupName, safeReplayInvocation(() => buildReplayInvocation(Object.entries(cliFlags(options) ?? explicitReplayOptions(options)))), codeChangeType, options?.categoryIds);
|
|
4227
4233
|
if (started.items.length === 0) try {
|
|
4228
4234
|
console.warn(`Bitfab: no traces matched "${traceFunctionKey}", so this replay ran nothing. Capture a trace, or seed one with seedTrace, before replaying.`);
|
|
4229
4235
|
} catch {}
|
|
@@ -7073,7 +7079,7 @@ var Bitfab = class {
|
|
|
7073
7079
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
7074
7080
|
} finally {
|
|
7075
7081
|
try {
|
|
7076
|
-
const { flushTraces } = await Promise.resolve().then(() => require("./http-
|
|
7082
|
+
const { flushTraces } = await Promise.resolve().then(() => require("./http-VtGRzeNI.cjs")).then((n) => n.http_exports);
|
|
7077
7083
|
await flushTraces(3e4);
|
|
7078
7084
|
} finally {
|
|
7079
7085
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -7279,7 +7285,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
7279
7285
|
metadata: seedCase.metadata,
|
|
7280
7286
|
sessionId: seedCase.sessionId
|
|
7281
7287
|
}));
|
|
7282
|
-
const { flushTraces } = await Promise.resolve().then(() => require("./http-
|
|
7288
|
+
const { flushTraces } = await Promise.resolve().then(() => require("./http-VtGRzeNI.cjs")).then((n) => n.http_exports);
|
|
7283
7289
|
await flushTraces(3e4);
|
|
7284
7290
|
return {
|
|
7285
7291
|
pipeline,
|
|
@@ -7529,4 +7535,4 @@ Object.defineProperty(exports, "serializeReplayResult", {
|
|
|
7529
7535
|
}
|
|
7530
7536
|
});
|
|
7531
7537
|
|
|
7532
|
-
//# sourceMappingURL=src-
|
|
7538
|
+
//# sourceMappingURL=src-Cr4ZJLeB.cjs.map
|