@kubb/studio 5.15.1 → 5.15.2

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 { 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";
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-f2YAAGLi.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 { 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";
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-f2YAAGLi.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.1";
209
+ var version = "5.15.2";
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,19 +1396,6 @@ 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
- /**
1412
1399
  * Keeps recent generations by job id in `storage`, with an index next to them so a store on disk
1413
1400
  * survives a restart. A generation is only ever looked up by its job id, so on a pooled sandbox one
1414
1401
  * tenant never reaches another's output. Initial disk output and generated jobs each get their
@@ -1515,10 +1502,10 @@ function createGenerationStore({ storage, maxCount, maxMb, ttlMs, now = Date.now
1515
1502
  if (!input) return 0;
1516
1503
  let json;
1517
1504
  try {
1518
- json = JSON.stringify(toInputJson(ast.transform(input, { schema: (node) => node.type === "ref" && node.schema ? {
1505
+ json = JSON.stringify(ast.transform(input, { schema: (node) => node.type === "ref" && node.schema ? {
1519
1506
  ...node,
1520
1507
  schema: void 0
1521
- } : void 0 })));
1508
+ } : void 0 }));
1522
1509
  } catch {
1523
1510
  return 0;
1524
1511
  }
@@ -2237,9 +2224,9 @@ const INSTALL_TIMEOUT_MS = 3e5;
2237
2224
  const REGISTRY_ID = /^[a-z0-9]+(?:-[a-z0-9]+)*(?:\/[a-z0-9]+(?:-[a-z0-9]+)*)?$/;
2238
2225
  /** The CLI the project depends on, so `kubb add` installs next to what the config imports. */
2239
2226
  function findKubbBin(root) {
2240
- const require = createRequire(path.resolve(root, "package.json"));
2227
+ const requireModule = createRequire(path.resolve(root, "package.json"));
2241
2228
  const names = ["kubb", "@kubb/cli"];
2242
- return (require.resolve.paths("kubb") ?? []).flatMap((dir) => names.map((name) => path.join(dir, name, "bin", "kubb.js"))).find((bin) => existsSync(bin));
2229
+ return (requireModule.resolve.paths("kubb") ?? []).flatMap((dir) => names.map((name) => path.join(dir, name, "bin", "kubb.js"))).find((bin) => existsSync(bin));
2243
2230
  }
2244
2231
  /** Runs a `kubb` command without a shell, and keeps the end of its output for the failure reason. */
2245
2232
  async function runKubb({ bin, args, cwd, signal }) {