@bitfab/sdk 0.70.0 → 0.71.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/{http-C6NC-zwf.cjs → http-D2Rgpq7_.cjs} +4 -3
- package/dist/http-D2Rgpq7_.cjs.map +1 -0
- package/dist/{http-DcEhqOUu.js → http-Dh6NfOpj.js} +4 -3
- package/dist/http-Dh6NfOpj.js.map +1 -0
- package/dist/{index-C9WPpeEU.d.cts → index-CEhjDPxK.d.cts} +11 -6
- package/dist/{index-C9WPpeEU.d.ts → index-CEhjDPxK.d.ts} +11 -6
- 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-jPTSRgL9.js.map +1 -1
- package/dist/{src-Cwzg-mER.cjs → src-C2OX1CHX.cjs} +6 -6
- package/dist/src-C2OX1CHX.cjs.map +1 -0
- package/dist/{src-D-21-G6z.js → src-gqUT-PNr.js} +6 -6
- package/dist/src-gqUT-PNr.js.map +1 -0
- package/package.json +1 -1
- package/dist/http-C6NC-zwf.cjs.map +0 -1
- package/dist/http-DcEhqOUu.js.map +0 -1
- package/dist/src-Cwzg-mER.cjs.map +0 -1
- package/dist/src-D-21-G6z.js.map +0 -1
|
@@ -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-D2Rgpq7_.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");
|
|
@@ -4177,7 +4177,7 @@ function warnJudgeAssertionsDeprecated(write = console.warn) {
|
|
|
4177
4177
|
require_autoTrace.writeOnce("judgeAssertions-deprecated", JUDGE_ASSERTIONS_DEPRECATION_WARNING, write);
|
|
4178
4178
|
}
|
|
4179
4179
|
async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, registeredOverrides = []) {
|
|
4180
|
-
validateCodeChange(options ?? {});
|
|
4180
|
+
const codeChangeType = validateCodeChange(options ?? {});
|
|
4181
4181
|
if (options?.judgeAssertions !== void 0) warnJudgeAssertionsDeprecated();
|
|
4182
4182
|
if (options?.resume !== void 0) validateResume(options.resume, options);
|
|
4183
4183
|
else if (options?.force === true) throw new require_http.BitfabError("force only applies when resuming an experiment. Pass it together with resume.");
|
|
@@ -4202,7 +4202,7 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
4202
4202
|
const includeDbBranchLease = dbBranchEnabled(options?.dbBranch) && options?.dryRun !== true;
|
|
4203
4203
|
let session;
|
|
4204
4204
|
if (options?.resume === void 0) {
|
|
4205
|
-
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)))));
|
|
4205
|
+
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);
|
|
4206
4206
|
if (started.items.length === 0) try {
|
|
4207
4207
|
console.warn(`Bitfab: no traces matched "${traceFunctionKey}", so this replay ran nothing. Capture a trace, or seed one with seedTrace, before replaying.`);
|
|
4208
4208
|
} catch {}
|
|
@@ -7038,7 +7038,7 @@ var Bitfab = class {
|
|
|
7038
7038
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
7039
7039
|
} finally {
|
|
7040
7040
|
try {
|
|
7041
|
-
const { flushTraces } = await Promise.resolve().then(() => require("./http-
|
|
7041
|
+
const { flushTraces } = await Promise.resolve().then(() => require("./http-D2Rgpq7_.cjs")).then((n) => n.http_exports);
|
|
7042
7042
|
await flushTraces(3e4);
|
|
7043
7043
|
} finally {
|
|
7044
7044
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -7244,7 +7244,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
7244
7244
|
metadata: seedCase.metadata,
|
|
7245
7245
|
sessionId: seedCase.sessionId
|
|
7246
7246
|
}));
|
|
7247
|
-
const { flushTraces } = await Promise.resolve().then(() => require("./http-
|
|
7247
|
+
const { flushTraces } = await Promise.resolve().then(() => require("./http-D2Rgpq7_.cjs")).then((n) => n.http_exports);
|
|
7248
7248
|
await flushTraces(3e4);
|
|
7249
7249
|
return {
|
|
7250
7250
|
pipeline,
|
|
@@ -7494,4 +7494,4 @@ Object.defineProperty(exports, "serializeReplayResult", {
|
|
|
7494
7494
|
}
|
|
7495
7495
|
});
|
|
7496
7496
|
|
|
7497
|
-
//# sourceMappingURL=src-
|
|
7497
|
+
//# sourceMappingURL=src-C2OX1CHX.cjs.map
|