bitfab 0.68.5 → 0.68.6

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.
@@ -1,5 +1,5 @@
1
1
  const require_bamlPeer = require("./bamlPeer-5Ohpq8q9.cjs");
2
- const require_http = require("./http-DFqFW_hG.cjs");
2
+ const require_http = require("./http-CARmid5D.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-DFqFW_hG.cjs")).then((n) => n.http_exports);
6576
+ const { flushTraces } = await Promise.resolve().then(() => require("./http-CARmid5D.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-DFqFW_hG.cjs")).then((n) => n.http_exports);
6779
+ const { flushTraces } = await Promise.resolve().then(() => require("./http-CARmid5D.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-CxELko3f.cjs.map
7023
+ //# sourceMappingURL=src-C3H1v_hp.cjs.map