bitfab 0.68.5 → 0.68.7
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-CDqaLdge.js → http-2mlGh9MD.js} +6 -5
- package/dist/http-2mlGh9MD.js.map +1 -0
- package/dist/{http-DFqFW_hG.cjs → http-DAMAcv_J.cjs} +7 -6
- package/dist/http-DAMAcv_J.cjs.map +1 -0
- package/dist/{index-DMJ6qrtL.d.cts → index-Dh8URnQo.d.cts} +82 -4
- package/dist/{index-DMJ6qrtL.d.ts → index-Dh8URnQo.d.ts} +82 -4
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/node.cjs +2 -2
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +2 -2
- package/dist/{registryCommand-D7bfo0Au.js → registryCommand-CWxt6kPp.js} +2 -2
- package/dist/registryCommand-CWxt6kPp.js.map +1 -0
- package/dist/replayCli.js +1 -1
- package/dist/seedCli.js +1 -1
- package/dist/{src-CxELko3f.cjs → src-B7_GnVaZ.cjs} +14 -5
- package/dist/src-B7_GnVaZ.cjs.map +1 -0
- package/dist/{src-DvVk1aLi.js → src-DQnxOnL9.js} +14 -5
- package/dist/src-DQnxOnL9.js.map +1 -0
- package/package.json +15 -12
- package/dist/http-CDqaLdge.js.map +0 -1
- package/dist/http-DFqFW_hG.cjs.map +0 -1
- package/dist/registryCommand-D7bfo0Au.js.map +0 -1
- package/dist/src-CxELko3f.cjs.map +0 -1
- package/dist/src-DvVk1aLi.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-CWxt6kPp.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-CWxt6kPp.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-DAMAcv_J.cjs");
|
|
3
3
|
const require_autoTrace = require("./autoTrace-DUmR1KJ8.cjs");
|
|
4
4
|
const require_optionalPeer = require("./optionalPeer-CUH756lt.cjs");
|
|
5
5
|
let superjson = require("superjson");
|
|
@@ -4600,9 +4600,18 @@ var TracesClient = class {
|
|
|
4600
4600
|
return (await this.httpClient.get(traceScenarioPath(traceId))).scenario;
|
|
4601
4601
|
}
|
|
4602
4602
|
async saveScenario({ traceId, ...edit }) {
|
|
4603
|
-
return (await this.httpClient.request(traceScenarioPath(traceId), edit)).scenario;
|
|
4603
|
+
return (await this.httpClient.request(traceScenarioPath(traceId), withoutDataRecords(edit))).scenario;
|
|
4604
4604
|
}
|
|
4605
4605
|
};
|
|
4606
|
+
const RECORDS_KEYS_IN_DATA = ["records", "sources"];
|
|
4607
|
+
function withoutDataRecords(edit) {
|
|
4608
|
+
if (edit.data === void 0) return edit;
|
|
4609
|
+
const data = Object.fromEntries(Object.entries(edit.data).filter(([key]) => !RECORDS_KEYS_IN_DATA.includes(key)));
|
|
4610
|
+
return {
|
|
4611
|
+
...edit,
|
|
4612
|
+
data
|
|
4613
|
+
};
|
|
4614
|
+
}
|
|
4606
4615
|
//#endregion
|
|
4607
4616
|
//#region src/tracing.ts
|
|
4608
4617
|
var BitfabOpenAITracingProcessor = class {
|
|
@@ -6564,7 +6573,7 @@ var Bitfab = class {
|
|
|
6564
6573
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
6565
6574
|
} finally {
|
|
6566
6575
|
try {
|
|
6567
|
-
const { flushTraces } = await Promise.resolve().then(() => require("./http-
|
|
6576
|
+
const { flushTraces } = await Promise.resolve().then(() => require("./http-DAMAcv_J.cjs")).then((n) => n.http_exports);
|
|
6568
6577
|
await flushTraces(3e4);
|
|
6569
6578
|
} finally {
|
|
6570
6579
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -6767,7 +6776,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
6767
6776
|
metadata: seedCase.metadata,
|
|
6768
6777
|
sessionId: seedCase.sessionId
|
|
6769
6778
|
}));
|
|
6770
|
-
const { flushTraces } = await Promise.resolve().then(() => require("./http-
|
|
6779
|
+
const { flushTraces } = await Promise.resolve().then(() => require("./http-DAMAcv_J.cjs")).then((n) => n.http_exports);
|
|
6771
6780
|
await flushTraces(3e4);
|
|
6772
6781
|
return {
|
|
6773
6782
|
pipeline,
|
|
@@ -7011,4 +7020,4 @@ Object.defineProperty(exports, "serializeReplayResult", {
|
|
|
7011
7020
|
}
|
|
7012
7021
|
});
|
|
7013
7022
|
|
|
7014
|
-
//# sourceMappingURL=src-
|
|
7023
|
+
//# sourceMappingURL=src-B7_GnVaZ.cjs.map
|