@kubb/studio 5.15.0 → 5.15.1

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/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { B as SnapshotUploadMetadata, G as editConfig, K as editConfigFile, O as PublishedSnapshot, a as AgentConnectInfo, c as AgentPermissions, s as AgentPermission } from "./protocol-a0ItUgk9.cjs";
1
+ import { K as editConfig, V as SnapshotUploadMetadata, a as AgentConnectInfo, c as AgentPermissions, k as PublishedSnapshot, q as editConfigFile, s as AgentPermission } from "./protocol-D2As08Ww.cjs";
2
2
  import { Config, Hookable, KubbHooks } from "@kubb/core";
3
3
  /**
4
4
  * Studio closed with {@link AgentCloseCode.UNAUTHORIZED}. Hosts forget the token and pair again.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { B as SnapshotUploadMetadata, G as editConfig, K as editConfigFile, O as PublishedSnapshot, a as AgentConnectInfo, c as AgentPermissions, s as AgentPermission } from "./protocol-a0ItUgk9.js";
1
+ import { K as editConfig, V as SnapshotUploadMetadata, a as AgentConnectInfo, c as AgentPermissions, k as PublishedSnapshot, q as editConfigFile, s as AgentPermission } from "./protocol-D2As08Ww.js";
2
2
  import { Config, Hookable, KubbHooks } from "@kubb/core";
3
3
  /**
4
4
  * Studio closed with {@link AgentCloseCode.UNAUTHORIZED}. Hosts forget the token and pair again.
package/dist/index.js CHANGED
@@ -206,7 +206,7 @@ function getElapsedMs(hrStart) {
206
206
  return Math.round(ms * 100) / 100;
207
207
  }
208
208
  // package.json
209
- var version = "5.15.0";
209
+ var version = "5.15.1";
210
210
  // ../../internals/shared/src/constants.ts
211
211
  /**
212
212
  * Extensions `kubb` ships at its own version, so they count as installed without being a direct
@@ -1396,6 +1396,19 @@ async function listDisk({ root, outputPath, maxFiles }) {
1396
1396
  };
1397
1397
  }
1398
1398
  /**
1399
+ * The input as Studio stores and receives it. `JSON.stringify` writes a `Set` as `{}`, so the `meta` name sets become arrays.
1400
+ */
1401
+ function toInputJson(input) {
1402
+ return {
1403
+ ...input,
1404
+ meta: {
1405
+ ...input.meta,
1406
+ circularNames: [...input.meta.circularNames],
1407
+ enumNames: [...input.meta.enumNames]
1408
+ }
1409
+ };
1410
+ }
1411
+ /**
1399
1412
  * Keeps recent generations by job id in `storage`, with an index next to them so a store on disk
1400
1413
  * survives a restart. A generation is only ever looked up by its job id, so on a pooled sandbox one
1401
1414
  * tenant never reaches another's output. Initial disk output and generated jobs each get their
@@ -1502,10 +1515,10 @@ function createGenerationStore({ storage, maxCount, maxMb, ttlMs, now = Date.now
1502
1515
  if (!input) return 0;
1503
1516
  let json;
1504
1517
  try {
1505
- json = JSON.stringify(ast.transform(input, { schema: (node) => node.type === "ref" && node.schema ? {
1518
+ json = JSON.stringify(toInputJson(ast.transform(input, { schema: (node) => node.type === "ref" && node.schema ? {
1506
1519
  ...node,
1507
1520
  schema: void 0
1508
- } : void 0 }));
1521
+ } : void 0 })));
1509
1522
  } catch {
1510
1523
  return 0;
1511
1524
  }