@kubb/agent 5.0.0-alpha.7 → 5.0.0-alpha.9

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
  {
2
- "date": "2026-03-19T11:13:36.580Z",
2
+ "date": "2026-03-20T08:14:38.717Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -13,7 +13,6 @@ import { createHash, randomBytes } from 'node:crypto';
13
13
  import process$1, { version as version$2 } from 'node:process';
14
14
  import { Logtail } from '@logtail/node';
15
15
  import { consola } from 'consola';
16
- import mod from 'node:module';
17
16
  import { access, rm, readFile as readFile$1, readdir as readdir$1, mkdir, writeFile as writeFile$1 } from 'node:fs/promises';
18
17
  import { createFabric, createReactFabric, Fabric, File, Function as Function$1, Const, FunctionParams, Type as Type$2, useFabric } from '@kubb/react-fabric';
19
18
  import { typescriptParser } from '@kubb/react-fabric/parsers';
@@ -21,11 +20,9 @@ import { fsPlugin } from '@kubb/react-fabric/plugins';
21
20
  import { performance as performance$1 } from 'node:perf_hooks';
22
21
  import { deflateSync } from 'fflate';
23
22
  import { x } from 'tinyexec';
24
- import os$1 from 'node:os';
25
- import { pathToFileURL, fileURLToPath } from 'node:url';
23
+ import { sortBy, isFunction, mergeDeep, isPlainObject as isPlainObject$1, uniqueWith, isDeepEqual, isNumber, difference } from 'remeda';
26
24
  import * as pkg from 'empathic/package';
27
25
  import { coerce, satisfies } from 'semver';
28
- import { sortBy, isFunction, mergeDeep, isPlainObject as isPlainObject$1, uniqueWith, isDeepEqual, isNumber, difference } from 'remeda';
29
26
  import { styleText } from 'node:util';
30
27
  import { createJiti } from 'jiti';
31
28
  import jsonpointer from 'jsonpointer';
@@ -42,6 +39,7 @@ import * as fs from 'fs';
42
39
  import * as path$1 from 'path';
43
40
  import * as os from 'os';
44
41
  import * as inspector from 'inspector';
42
+ import { fileURLToPath } from 'node:url';
45
43
  import pkg$1 from 'handlebars';
46
44
  import WebSocket from 'ws';
47
45
 
@@ -2640,7 +2638,7 @@ const memory = defineDriver$1(() => {
2640
2638
  };
2641
2639
  });
2642
2640
 
2643
- function createStorage(options = {}) {
2641
+ function createStorage$1(options = {}) {
2644
2642
  const context = {
2645
2643
  mounts: { "": options.driver || memory() },
2646
2644
  mountpoints: [""],
@@ -3335,7 +3333,7 @@ const unstorage_47drivers_47fs_45lite = defineDriver((opts = {}) => {
3335
3333
  };
3336
3334
  });
3337
3335
 
3338
- const storage = createStorage({});
3336
+ const storage = createStorage$1({});
3339
3337
 
3340
3338
  storage.mount('/assets', assets);
3341
3339
 
@@ -4906,7 +4904,7 @@ var __privateWrapper$1 = (obj, member, setter, getter) => ({
4906
4904
  return __privateGet$c(obj, member, getter);
4907
4905
  }
4908
4906
  });
4909
- var _emitter, _a$c, _options$c, _URLPath_instances$a, transformParam_fn$a, eachParam_fn$a, _b$2, _head$1, _tail$1, _size$1, _c, _studioIsOpen, _plugins, _usedPluginNames, _PluginDriver_instances, getSortedPlugins_fn, emitProcessingEnd_fn, execute_fn, executeSync_fn, parse_fn, _d, _e, _cache, _cwd, _PackageManager_instances, match_fn, _items, _FunctionParams_static, _f, orderItems_fn, addParams_fn, _cachedLeaves, _g;
4907
+ var _emitter, _a$c, _options$c, _URLPath_instances$a, transformParam_fn$a, eachParam_fn$a, _b$2, _head$1, _tail$1, _size$1, _c, _studioIsOpen, _plugins, _usedPluginNames, _PluginDriver_instances, getSortedPlugins_fn, emitProcessingEnd_fn, execute_fn, executeSync_fn, parse_fn, _d, _items, _FunctionParams_static, _e, orderItems_fn, addParams_fn, _cachedLeaves, _f;
4910
4908
  var ValidationPluginError = class extends Error {
4911
4909
  };
4912
4910
  function toError(value) {
@@ -4966,7 +4964,7 @@ var AsyncEventEmitter = (_a$c = class {
4966
4964
  function toCamelOrPascal$e(text, pascal) {
4967
4965
  return text.trim().replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/(\d)([a-z])/g, "$1 $2").split(/[\s\-_./\\:]+/).filter(Boolean).map((word, i) => {
4968
4966
  if (word.length > 1 && word === word.toUpperCase()) return word;
4969
- if (i === 0 && true) return word.charAt(0).toLowerCase() + word.slice(1);
4967
+ if (i === 0 && !pascal) return word.charAt(0).toLowerCase() + word.slice(1);
4970
4968
  return word.charAt(0).toUpperCase() + word.slice(1);
4971
4969
  }).join("").replace(/[^a-zA-Z0-9]/g, "");
4972
4970
  }
@@ -4979,7 +4977,14 @@ function camelCase$e(text, { isFile, prefix = "", suffix = "" } = {}) {
4979
4977
  prefix,
4980
4978
  suffix
4981
4979
  } : {}));
4982
- return toCamelOrPascal$e(`${prefix} ${text} ${suffix}`);
4980
+ return toCamelOrPascal$e(`${prefix} ${text} ${suffix}`, false);
4981
+ }
4982
+ function pascalCase$a(text, { isFile, prefix = "", suffix = "" } = {}) {
4983
+ if (isFile) return applyToFileParts$e(text, (part, isLast) => isLast ? pascalCase$a(part, {
4984
+ prefix,
4985
+ suffix
4986
+ }) : camelCase$e(part));
4987
+ return toCamelOrPascal$e(`${prefix} ${text} ${suffix}`, true);
4983
4988
  }
4984
4989
  function getElapsedMs(hrStart) {
4985
4990
  const [seconds, nanoseconds] = process.hrtime(hrStart);
@@ -5021,10 +5026,6 @@ async function exists(path2) {
5021
5026
  if (typeof Bun !== "undefined") return Bun.file(path2).exists();
5022
5027
  return access(path2).then(() => true, () => false);
5023
5028
  }
5024
- async function read(path2) {
5025
- if (typeof Bun !== "undefined") return Bun.file(path2).text();
5026
- return readFile$1(path2, { encoding: "utf8" });
5027
- }
5028
5029
  function readSync(path2) {
5029
5030
  return readFileSync(path2, { encoding: "utf8" });
5030
5031
  }
@@ -5076,7 +5077,7 @@ function setUniqueName(originalName, data) {
5076
5077
  function isPromiseRejectedResult(result) {
5077
5078
  return result.status === "rejected";
5078
5079
  }
5079
- const reservedWords = [
5080
+ const reservedWords = /* @__PURE__ */ new Set([
5080
5081
  "abstract",
5081
5082
  "arguments",
5082
5083
  "boolean",
@@ -5158,10 +5159,10 @@ const reservedWords = [
5158
5159
  "toString",
5159
5160
  "undefined",
5160
5161
  "valueOf"
5161
- ];
5162
+ ]);
5162
5163
  function transformReservedWord(word) {
5163
5164
  const firstChar = word.charCodeAt(0);
5164
- if (word && (reservedWords.includes(word) || firstChar >= 48 && firstChar <= 57)) return `_${word}`;
5165
+ if (word && (reservedWords.has(word) || firstChar >= 48 && firstChar <= 57)) return `_${word}`;
5165
5166
  return word;
5166
5167
  }
5167
5168
  function isValidVarName$b(name) {
@@ -5259,8 +5260,8 @@ var URLPath$a = (_b$2 = class {
5259
5260
  return __privateGet$c(this, _options$c).casing === "camelcase" ? camelCase$e(param) : param;
5260
5261
  }, /** Iterates over every `{param}` token in `path`, calling `fn` with the raw token and transformed name. */
5261
5262
  eachParam_fn$a = function(fn) {
5262
- for (const match of this.path.matchAll(/\{([^}]+)\}/g)) {
5263
- const raw = match[1];
5263
+ for (const match2 of this.path.matchAll(/\{([^}]+)\}/g)) {
5264
+ const raw = match2[1];
5264
5265
  fn(raw, __privateMethod$c(this, _URLPath_instances$a, transformParam_fn$a).call(this, raw));
5265
5266
  }
5266
5267
  }, _b$2);
@@ -5271,7 +5272,6 @@ const DEFAULT_STUDIO_URL = "https://studio.kubb.dev";
5271
5272
  const BARREL_FILENAME = "index.ts";
5272
5273
  const DEFAULT_BANNER = "simple";
5273
5274
  const DEFAULT_EXTENSION = { ".ts": ".ts" };
5274
- const PATH_SEPARATORS = ["/", "\\"];
5275
5275
  const linters = {
5276
5276
  eslint: {
5277
5277
  command: "eslint",
@@ -5891,10 +5891,10 @@ executeSync_fn = function({ strategy, hookName, parameters, plugin }) {
5891
5891
  ...plugin
5892
5892
  };
5893
5893
  }, _d);
5894
- function defineStorage(build2) {
5894
+ function createStorage(build2) {
5895
5895
  return (options) => build2(options != null ? options : {});
5896
5896
  }
5897
- const fsStorage = defineStorage(() => ({
5897
+ const fsStorage = createStorage(() => ({
5898
5898
  name: "fs",
5899
5899
  async hasItem(key) {
5900
5900
  try {
@@ -5940,7 +5940,7 @@ const fsStorage = defineStorage(() => ({
5940
5940
  await clean(resolve(base));
5941
5941
  }
5942
5942
  }));
5943
- var version$1 = "5.0.0-alpha.7";
5943
+ var version$1 = "5.0.0-alpha.9";
5944
5944
  function getDiagnosticInfo() {
5945
5945
  return {
5946
5946
  nodeVersion: version$2,
@@ -5951,7 +5951,7 @@ function getDiagnosticInfo() {
5951
5951
  };
5952
5952
  }
5953
5953
  async function setup(options) {
5954
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
5954
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g;
5955
5955
  const { config: userConfig, events = new AsyncEventEmitter() } = options;
5956
5956
  const sources = /* @__PURE__ */ new Map();
5957
5957
  const diagnosticInfo = getDiagnosticInfo();
@@ -6002,7 +6002,7 @@ async function setup(options) {
6002
6002
  } : void 0,
6003
6003
  plugins: userConfig.plugins
6004
6004
  };
6005
- const storage = definedConfig.output.write === false ? null : (_g2 = definedConfig.output.storage) != null ? _g2 : fsStorage();
6005
+ const storage = definedConfig.output.write === false ? null : (_g = definedConfig.output.storage) != null ? _g : fsStorage();
6006
6006
  if (definedConfig.output.clean) {
6007
6007
  await events.emit("debug", {
6008
6008
  date: /* @__PURE__ */ new Date(),
@@ -6228,6 +6228,9 @@ function inputToAdapterSource(config) {
6228
6228
  path: resolve(config.root, config.input.path)
6229
6229
  };
6230
6230
  }
6231
+ function createPlugin(build2) {
6232
+ return (options) => build2(options != null ? options : {});
6233
+ }
6231
6234
  function defineGenerator(generator) {
6232
6235
  if (generator.type === "react") return {
6233
6236
  version: "2",
@@ -6256,91 +6259,67 @@ function defineGenerator(generator) {
6256
6259
  ...generator
6257
6260
  };
6258
6261
  }
6259
- function definePlugin(build2) {
6260
- return (options) => build2(options != null ? options : {});
6261
- }
6262
- var PackageManager = (_e = class {
6263
- constructor(workspace) {
6264
- __privateAdd$c(this, _PackageManager_instances);
6265
- __privateAdd$c(this, _cwd);
6266
- if (workspace) __privateSet$c(this, _cwd, workspace);
6267
- }
6268
- set workspace(workspace) {
6269
- __privateSet$c(this, _cwd, workspace);
6262
+ function matchesOperationPattern(node, type, pattern) {
6263
+ switch (type) {
6264
+ case "tag":
6265
+ return node.tags.some((tag) => !!tag.match(pattern));
6266
+ case "operationId":
6267
+ return !!node.operationId.match(pattern);
6268
+ case "path":
6269
+ return !!node.path.match(pattern);
6270
+ case "method":
6271
+ return !!node.method.toLowerCase().match(pattern);
6272
+ default:
6273
+ return false;
6270
6274
  }
6271
- get workspace() {
6272
- return __privateGet$c(this, _cwd);
6275
+ }
6276
+ function matchesSchemaPattern(node, type, pattern) {
6277
+ switch (type) {
6278
+ case "schemaName":
6279
+ return node.name ? !!node.name.match(pattern) : false;
6280
+ default:
6281
+ return null;
6273
6282
  }
6274
- normalizeDirectory(directory) {
6275
- const lastChar = directory[directory.length - 1];
6276
- if (lastChar && !PATH_SEPARATORS.includes(lastChar)) return `${directory}/`;
6277
- return directory;
6283
+ }
6284
+ function defaultResolver(name, type) {
6285
+ let resolvedName = camelCase$e(name);
6286
+ if (type === "file" || type === "function") resolvedName = camelCase$e(name, { isFile: type === "file" });
6287
+ if (type === "type") resolvedName = pascalCase$a(name);
6288
+ return resolvedName;
6289
+ }
6290
+ function defaultResolveOptions(node, { options, exclude = [], include, override = [] }) {
6291
+ var _a2, _b2;
6292
+ if (isOperationNode(node)) {
6293
+ if (exclude.some(({ type, pattern }) => matchesOperationPattern(node, type, pattern))) return null;
6294
+ if (include && !include.some(({ type, pattern }) => matchesOperationPattern(node, type, pattern))) return null;
6295
+ const overrideOptions = (_a2 = override.find(({ type, pattern }) => matchesOperationPattern(node, type, pattern))) == null ? void 0 : _a2.options;
6296
+ return {
6297
+ ...options,
6298
+ ...overrideOptions
6299
+ };
6278
6300
  }
6279
- getLocation(path2) {
6280
- let location = path2;
6281
- if (__privateGet$c(this, _cwd)) location = mod.createRequire(this.normalizeDirectory(__privateGet$c(this, _cwd))).resolve(path2);
6282
- return location;
6301
+ if (isSchemaNode(node)) {
6302
+ if (exclude.some(({ type, pattern }) => matchesSchemaPattern(node, type, pattern) === true)) return null;
6303
+ if (include) {
6304
+ const applicable = include.map(({ type, pattern }) => matchesSchemaPattern(node, type, pattern)).filter((r) => r !== null);
6305
+ if (applicable.length > 0 && !applicable.includes(true)) return null;
6306
+ }
6307
+ const overrideOptions = (_b2 = override.find(({ type, pattern }) => matchesSchemaPattern(node, type, pattern) === true)) == null ? void 0 : _b2.options;
6308
+ return {
6309
+ ...options,
6310
+ ...overrideOptions
6311
+ };
6283
6312
  }
6284
- async import(path2) {
6285
- var _a2;
6286
- let location = this.getLocation(path2);
6287
- if (os$1.platform() === "win32") location = pathToFileURL(location).href;
6288
- const module = await import(location);
6289
- return (_a2 = module == null ? void 0 : module.default) != null ? _a2 : module;
6290
- }
6291
- async getPackageJSON() {
6292
- const pkgPath = pkg.up({ cwd: __privateGet$c(this, _cwd) });
6293
- if (!pkgPath) return;
6294
- const json = await read(pkgPath);
6295
- return JSON.parse(json);
6296
- }
6297
- getPackageJSONSync() {
6298
- const pkgPath = pkg.up({ cwd: __privateGet$c(this, _cwd) });
6299
- if (!pkgPath) return;
6300
- const json = readSync(pkgPath);
6301
- return JSON.parse(json);
6302
- }
6303
- static setVersion(dependency, version2) {
6304
- __privateGet$c(_e, _cache)[dependency] = version2;
6305
- }
6306
- async getVersion(dependency) {
6307
- if (typeof dependency === "string" && __privateGet$c(_e, _cache)[dependency]) return __privateGet$c(_e, _cache)[dependency];
6308
- const packageJSON = await this.getPackageJSON();
6309
- if (!packageJSON) return;
6310
- return __privateMethod$c(this, _PackageManager_instances, match_fn).call(this, packageJSON, dependency);
6311
- }
6312
- getVersionSync(dependency) {
6313
- if (typeof dependency === "string" && __privateGet$c(_e, _cache)[dependency]) return __privateGet$c(_e, _cache)[dependency];
6314
- const packageJSON = this.getPackageJSONSync();
6315
- if (!packageJSON) return;
6316
- return __privateMethod$c(this, _PackageManager_instances, match_fn).call(this, packageJSON, dependency);
6317
- }
6318
- async isValid(dependency, version2) {
6319
- const packageVersion = await this.getVersion(dependency);
6320
- if (!packageVersion) return false;
6321
- if (packageVersion === version2) return true;
6322
- const semVer = coerce(packageVersion);
6323
- if (!semVer) return false;
6324
- return satisfies(semVer, version2);
6325
- }
6326
- isValidSync(dependency, version2) {
6327
- const packageVersion = this.getVersionSync(dependency);
6328
- if (!packageVersion) return false;
6329
- if (packageVersion === version2) return true;
6330
- const semVer = coerce(packageVersion);
6331
- if (!semVer) return false;
6332
- return satisfies(semVer, version2);
6333
- }
6334
- }, _cache = new WeakMap(), _cwd = new WeakMap(), _PackageManager_instances = new WeakSet(), match_fn = function(packageJSON, dependency) {
6335
- const dependencies = {
6336
- ...packageJSON.dependencies || {},
6337
- ...packageJSON.devDependencies || {}
6313
+ return options;
6314
+ }
6315
+ function defineResolver(build2) {
6316
+ return {
6317
+ default: defaultResolver,
6318
+ resolveOptions: defaultResolveOptions,
6319
+ ...build2()
6338
6320
  };
6339
- if (typeof dependency === "string" && dependencies[dependency]) return dependencies[dependency];
6340
- const matchedDependency = Object.keys(dependencies).find((dep) => dep.match(dependency));
6341
- return matchedDependency ? dependencies[matchedDependency] : void 0;
6342
- }, __privateAdd$c(_e, _cache, {}), _e);
6343
- const memoryStorage = defineStorage(() => {
6321
+ }
6322
+ const memoryStorage = createStorage(() => {
6344
6323
  const store = /* @__PURE__ */ new Map();
6345
6324
  return {
6346
6325
  name: "memory",
@@ -6370,7 +6349,7 @@ const memoryStorage = defineStorage(() => {
6370
6349
  }
6371
6350
  };
6372
6351
  });
6373
- (_f = class {
6352
+ (_e = class {
6374
6353
  constructor() {
6375
6354
  __privateAdd$c(this, _items, []);
6376
6355
  }
@@ -6396,11 +6375,11 @@ const memoryStorage = defineStorage(() => {
6396
6375
  const required = (_b2 = items.every((item) => item.required)) != null ? _b2 : true;
6397
6376
  items.forEach((item) => {
6398
6377
  var _a3, _b3;
6399
- name = __privateMethod$c(_a3 = _f, _FunctionParams_static, addParams_fn).call(_a3, name, {
6378
+ name = __privateMethod$c(_a3 = _e, _FunctionParams_static, addParams_fn).call(_a3, name, {
6400
6379
  ...item,
6401
6380
  type: void 0
6402
6381
  });
6403
- if (items.some((item2) => item2.type)) type = __privateMethod$c(_b3 = _f, _FunctionParams_static, addParams_fn).call(_b3, type, item);
6382
+ if (items.some((item2) => item2.type)) type = __privateMethod$c(_b3 = _e, _FunctionParams_static, addParams_fn).call(_b3, type, item);
6404
6383
  });
6405
6384
  return {
6406
6385
  name: `{ ${name.join(", ")} }`,
@@ -6411,26 +6390,26 @@ const memoryStorage = defineStorage(() => {
6411
6390
  }
6412
6391
  toObject() {
6413
6392
  var _a2;
6414
- const items = __privateMethod$c(_a2 = _f, _FunctionParams_static, orderItems_fn).call(_a2, __privateGet$c(this, _items)).flat();
6415
- return _f.toObject(items);
6393
+ const items = __privateMethod$c(_a2 = _e, _FunctionParams_static, orderItems_fn).call(_a2, __privateGet$c(this, _items)).flat();
6394
+ return _e.toObject(items);
6416
6395
  }
6417
6396
  static toString(items) {
6418
6397
  var _a2;
6419
- return __privateMethod$c(_a2 = _f, _FunctionParams_static, orderItems_fn).call(_a2, items).reduce((acc, item) => {
6398
+ return __privateMethod$c(_a2 = _e, _FunctionParams_static, orderItems_fn).call(_a2, items).reduce((acc, item) => {
6420
6399
  var _a3, _b2, _c2;
6421
6400
  if (Array.isArray(item)) {
6422
6401
  if (item.length <= 0) return acc;
6423
- const subItems = __privateMethod$c(_a3 = _f, _FunctionParams_static, orderItems_fn).call(_a3, item);
6424
- const objectItem = _f.toObject(subItems);
6425
- return __privateMethod$c(_b2 = _f, _FunctionParams_static, addParams_fn).call(_b2, acc, objectItem);
6402
+ const subItems = __privateMethod$c(_a3 = _e, _FunctionParams_static, orderItems_fn).call(_a3, item);
6403
+ const objectItem = _e.toObject(subItems);
6404
+ return __privateMethod$c(_b2 = _e, _FunctionParams_static, addParams_fn).call(_b2, acc, objectItem);
6426
6405
  }
6427
- return __privateMethod$c(_c2 = _f, _FunctionParams_static, addParams_fn).call(_c2, acc, item);
6406
+ return __privateMethod$c(_c2 = _e, _FunctionParams_static, addParams_fn).call(_c2, acc, item);
6428
6407
  }, []).join(", ");
6429
6408
  }
6430
6409
  toString() {
6431
6410
  var _a2;
6432
- const items = __privateMethod$c(_a2 = _f, _FunctionParams_static, orderItems_fn).call(_a2, __privateGet$c(this, _items));
6433
- return _f.toString(items);
6411
+ const items = __privateMethod$c(_a2 = _e, _FunctionParams_static, orderItems_fn).call(_a2, __privateGet$c(this, _items));
6412
+ return _e.toString(items);
6434
6413
  }
6435
6414
  }, _items = new WeakMap(), _FunctionParams_static = new WeakSet(), orderItems_fn = function(items) {
6436
6415
  return sortBy(items.filter(Boolean), [(item) => Array.isArray(item), "desc"], [(item) => !Array.isArray(item) && item.default !== void 0, "asc"], [(item) => {
@@ -6449,7 +6428,7 @@ const memoryStorage = defineStorage(() => {
6449
6428
  else acc.push(`${parameterName}?: ${type}`);
6450
6429
  else acc.push(`${parameterName}`);
6451
6430
  return acc;
6452
- }, __privateAdd$c(_f, _FunctionParams_static), _f);
6431
+ }, __privateAdd$c(_e, _FunctionParams_static), _e);
6453
6432
  async function isFormatterAvailable(formatter) {
6454
6433
  try {
6455
6434
  await x(formatter, ["--version"], { nodeOptions: { stdio: "ignore" } });
@@ -6459,13 +6438,14 @@ async function isFormatterAvailable(formatter) {
6459
6438
  }
6460
6439
  }
6461
6440
  async function detectFormatter() {
6462
- for (const formatter of [
6441
+ const formatterNames = /* @__PURE__ */ new Set([
6463
6442
  "biome",
6464
6443
  "oxfmt",
6465
6444
  "prettier"
6466
- ]) if (await isFormatterAvailable(formatter)) return formatter;
6445
+ ]);
6446
+ for (const formatter of formatterNames) if (await isFormatterAvailable(formatter)) return formatter;
6467
6447
  }
6468
- var TreeNode = (_g = class {
6448
+ var TreeNode = (_f = class {
6469
6449
  constructor(data, parent) {
6470
6450
  __publicField$b(this, "data");
6471
6451
  __publicField$b(this, "parent");
@@ -6475,7 +6455,7 @@ var TreeNode = (_g = class {
6475
6455
  this.parent = parent;
6476
6456
  }
6477
6457
  addChild(data) {
6478
- const child = new _g(data, this);
6458
+ const child = new _f(data, this);
6479
6459
  if (!this.children) this.children = [];
6480
6460
  this.children.push(child);
6481
6461
  return child;
@@ -6519,7 +6499,7 @@ var TreeNode = (_g = class {
6519
6499
  try {
6520
6500
  const filteredTree = buildDirectoryTree(files, root);
6521
6501
  if (!filteredTree) return null;
6522
- const treeNode = new _g({
6502
+ const treeNode = new _f({
6523
6503
  name: filteredTree.name,
6524
6504
  path: filteredTree.path,
6525
6505
  file: filteredTree.file,
@@ -6545,7 +6525,7 @@ var TreeNode = (_g = class {
6545
6525
  throw new Error("Something went wrong with creating barrel files with the TreeNode class", { cause: error });
6546
6526
  }
6547
6527
  }
6548
- }, _cachedLeaves = new WeakMap(), _g);
6528
+ }, _cachedLeaves = new WeakMap(), _f);
6549
6529
  const normalizePath = (p) => p.replaceAll("\\", "/");
6550
6530
  function buildDirectoryTree(files, rootFolder = "") {
6551
6531
  const normalizedRootFolder = normalizePath(rootFolder);
@@ -6656,29 +6636,9 @@ async function getBarrelFiles(files, { type, meta = {}, root, output }) {
6656
6636
  };
6657
6637
  });
6658
6638
  }
6659
- function isJSONPlugins(plugins) {
6660
- return Array.isArray(plugins) && plugins.some((plugin) => Array.isArray(plugin) && typeof plugin[0] === "string");
6661
- }
6662
- function isObjectPlugins(plugins) {
6663
- return plugins instanceof Object && !Array.isArray(plugins);
6664
- }
6665
- function getPlugins(plugins) {
6666
- if (isObjectPlugins(plugins)) throw new Error("Object plugins are not supported anymore, best to use http://kubb.dev/getting-started/configure#json");
6667
- if (isJSONPlugins(plugins)) throw new Error("JSON plugins are not supported anymore, best to use http://kubb.dev/getting-started/configure#json");
6668
- return Promise.resolve(plugins);
6669
- }
6670
6639
  async function getConfigs(config, args) {
6671
- let userConfigs = await (typeof config === "function" ? Promise.resolve(config(args)) : Promise.resolve(config));
6672
- if (!Array.isArray(userConfigs)) userConfigs = [userConfigs];
6673
- const results = [];
6674
- for (const item of userConfigs) {
6675
- const plugins = item.plugins ? await getPlugins(item.plugins) : void 0;
6676
- results.push({
6677
- ...item,
6678
- plugins
6679
- });
6680
- }
6681
- return results;
6640
+ const resolved = await (typeof config === "function" ? config(args) : config);
6641
+ return (Array.isArray(resolved) ? resolved : [resolved]).map((item) => ({ ...item }));
6682
6642
  }
6683
6643
  async function isLinterAvailable(linter) {
6684
6644
  try {
@@ -6689,61 +6649,41 @@ async function isLinterAvailable(linter) {
6689
6649
  }
6690
6650
  }
6691
6651
  async function detectLinter() {
6692
- for (const linter of [
6652
+ const linterNames = /* @__PURE__ */ new Set([
6693
6653
  "biome",
6694
6654
  "oxlint",
6695
6655
  "eslint"
6696
- ]) if (await isLinterAvailable(linter)) return linter;
6656
+ ]);
6657
+ for (const linter of linterNames) if (await isLinterAvailable(linter)) return linter;
6697
6658
  }
6698
- function matchesOperationPattern(node, type, pattern) {
6699
- switch (type) {
6700
- case "tag":
6701
- return node.tags.some((tag) => !!tag.match(pattern));
6702
- case "operationId":
6703
- return !!node.operationId.match(pattern);
6704
- case "path":
6705
- return !!node.path.match(pattern);
6706
- case "method":
6707
- return !!node.method.toLowerCase().match(pattern);
6708
- default:
6709
- return false;
6710
- }
6659
+ function getPackageJSONSync(cwd) {
6660
+ const pkgPath = pkg.up({ cwd });
6661
+ if (!pkgPath) return;
6662
+ return JSON.parse(readSync(pkgPath));
6711
6663
  }
6712
- function matchesSchemaPattern(node, type, pattern) {
6713
- switch (type) {
6714
- case "schemaName":
6715
- return node.name ? !!node.name.match(pattern) : false;
6716
- default:
6717
- return null;
6718
- }
6719
- }
6720
- function resolveOptions(node, { options, exclude = [], include, override = [] }) {
6721
- var _a2, _b2;
6722
- if (isOperationNode(node)) {
6723
- if (exclude.some(({ type, pattern }) => matchesOperationPattern(node, type, pattern))) return null;
6724
- if (include && !include.some(({ type, pattern }) => matchesOperationPattern(node, type, pattern))) return null;
6725
- const overrideOptions = (_a2 = override.find(({ type, pattern }) => matchesOperationPattern(node, type, pattern))) == null ? void 0 : _a2.options;
6726
- return {
6727
- ...options,
6728
- ...overrideOptions
6729
- };
6730
- }
6731
- if (isSchemaNode(node)) {
6732
- if (exclude.some(({ type, pattern }) => matchesSchemaPattern(node, type, pattern) === true)) return null;
6733
- if (include) {
6734
- const applicable = include.map(({ type, pattern }) => matchesSchemaPattern(node, type, pattern)).filter((r) => r !== null);
6735
- if (applicable.length > 0 && !applicable.includes(true)) return null;
6736
- }
6737
- const overrideOptions = (_b2 = override.find(({ type, pattern }) => matchesSchemaPattern(node, type, pattern) === true)) == null ? void 0 : _b2.options;
6738
- return {
6739
- ...options,
6740
- ...overrideOptions
6741
- };
6742
- }
6743
- return options;
6664
+ function match(packageJSON, dependency) {
6665
+ const dependencies = {
6666
+ ...packageJSON.dependencies || {},
6667
+ ...packageJSON.devDependencies || {}
6668
+ };
6669
+ if (dependencies[dependency]) return dependencies[dependency];
6670
+ const matched = Object.keys(dependencies).find((dep) => dep.match(dependency));
6671
+ return matched ? dependencies[matched] : void 0;
6672
+ }
6673
+ function getVersionSync(dependency, cwd) {
6674
+ const packageJSON = getPackageJSONSync(cwd);
6675
+ return packageJSON ? match(packageJSON, dependency) : void 0;
6676
+ }
6677
+ function satisfiesDependency(dependency, version2, cwd) {
6678
+ const packageVersion = getVersionSync(dependency, cwd);
6679
+ if (!packageVersion) return false;
6680
+ if (packageVersion === version2) return true;
6681
+ const semVer = coerce(packageVersion);
6682
+ if (!semVer) return false;
6683
+ return satisfies(semVer, version2);
6744
6684
  }
6745
6685
 
6746
- var version = "5.0.0-alpha.7";
6686
+ var version = "5.0.0-alpha.9";
6747
6687
 
6748
6688
  function isCommandMessage(msg) {
6749
6689
  return msg.type === "command";
@@ -10179,7 +10119,7 @@ var OperationGenerator = (_a$7 = class {
10179
10119
  return include.some(({ pattern, type }) => __privateMethod$7(this, _OperationGenerator_instances, matchesPattern_fn).call(this, operation, method, type, pattern));
10180
10120
  }, _a$7);
10181
10121
  const pluginOasName = "plugin-oas";
10182
- const pluginOas = definePlugin((options) => {
10122
+ const pluginOas = createPlugin((options) => {
10183
10123
  const { output = { path: "schemas" }, group, validate = true, generators = [jsonGenerator], serverIndex, serverVariables, contentType, oasClass, discriminator = "strict", collisionDetection = false } = options;
10184
10124
  const getOas = async ({ validate: validate2, config, events }) => {
10185
10125
  const oas = await parseFromConfig(config, oasClass);
@@ -209638,12 +209578,13 @@ function useKubb() {
209638
209578
  ...rest
209639
209579
  }),
209640
209580
  resolveBanner: (node) => {
209641
- if (typeof (output == null ? void 0 : output.banner) === "function") return output.banner(node);
209581
+ if (typeof (output == null ? void 0 : output.banner) === "function") return node ? output.banner(node) : buildDefaultBanner({ config });
209642
209582
  if (typeof (output == null ? void 0 : output.banner) === "string") return output.banner;
209583
+ if (config.output.defaultBanner === false) return;
209643
209584
  return buildDefaultBanner({ config });
209644
209585
  },
209645
209586
  resolveFooter: (node) => {
209646
- if (typeof (output == null ? void 0 : output.footer) === "function") return output.footer(node);
209587
+ if (typeof (output == null ? void 0 : output.footer) === "function") return node ? output.footer(node) : void 0;
209647
209588
  if (typeof (output == null ? void 0 : output.footer) === "string") return output.footer;
209648
209589
  }
209649
209590
  };
@@ -210296,7 +210237,7 @@ const printerTs = definePrinter((options) => {
210296
210237
  union(node) {
210297
210238
  var _a, _b, _c;
210298
210239
  const members = (_a = node.members) != null ? _a : [];
210299
- const hasStringLiteral = members.some((m) => m.type === "enum" && m.enumType === "string");
210240
+ const hasStringLiteral = members.some((m) => m.type === "enum" && (m.enumType === "string" || m.primitive === "string"));
210300
210241
  const hasPlainString = members.some((m) => isPlainStringType(m));
210301
210242
  if (hasStringLiteral && hasPlainString) return (_b = createUnionDeclaration({
210302
210243
  withParentheses: true,
@@ -210449,6 +210390,62 @@ function Type({ name, typedName, node, keysToOmit, optionalType, arrayType, synt
210449
210390
  children: safePrint(typeNode)
210450
210391
  })] });
210451
210392
  }
210393
+ const resolverTs = defineResolver(() => {
210394
+ return {
210395
+ default(name, type) {
210396
+ return pascalCase$6(name, { isFile: type === "file" });
210397
+ },
210398
+ resolveName(name) {
210399
+ return this.default(name, "function");
210400
+ },
210401
+ resolveTypedName(name) {
210402
+ return this.default(name, "type");
210403
+ },
210404
+ resolvePathName(name, type) {
210405
+ return this.default(name, type);
210406
+ },
210407
+ resolveParamName(node, param) {
210408
+ return this.resolveName(`${node.operationId} ${this.default(param.in)} ${param.name}`);
210409
+ },
210410
+ resolveParamTypedName(node, param) {
210411
+ return this.resolveTypedName(`${node.operationId} ${this.default(param.in)} ${param.name}`);
210412
+ },
210413
+ resolveResponseStatusName(node, statusCode) {
210414
+ return this.resolveName(`${node.operationId} Status ${statusCode}`);
210415
+ },
210416
+ resolveResponseStatusTypedName(node, statusCode) {
210417
+ return this.resolveTypedName(`${node.operationId} Status ${statusCode}`);
210418
+ },
210419
+ resolveDataName(node) {
210420
+ return this.resolveName(`${node.operationId} Data`);
210421
+ },
210422
+ resolveDataTypedName(node) {
210423
+ return this.resolveTypedName(`${node.operationId} Data`);
210424
+ },
210425
+ resolveRequestConfigName(node) {
210426
+ return this.resolveName(`${node.operationId} RequestConfig`);
210427
+ },
210428
+ resolveRequestConfigTypedName(node) {
210429
+ return this.resolveTypedName(`${node.operationId} RequestConfig`);
210430
+ },
210431
+ resolveResponsesName(node) {
210432
+ return this.resolveName(`${node.operationId} Responses`);
210433
+ },
210434
+ resolveResponsesTypedName(node) {
210435
+ return this.resolveTypedName(`${node.operationId} Responses`);
210436
+ },
210437
+ resolveResponseName(node) {
210438
+ return this.resolveName(`${node.operationId} Response`);
210439
+ },
210440
+ resolveResponseTypedName(node) {
210441
+ return this.resolveTypedName(`${node.operationId} Response`);
210442
+ },
210443
+ resolveEnumKeyTypedName(node) {
210444
+ var _a;
210445
+ return `${this.resolveTypedName((_a = node.name) != null ? _a : "")}Key`;
210446
+ }
210447
+ };
210448
+ });
210452
210449
  function buildParamsSchema({ params, operationId, resolveName }) {
210453
210450
  return createSchema({
210454
210451
  type: "object",
@@ -210471,6 +210468,7 @@ function buildDataSchemaNode({ node, resolveName }) {
210471
210468
  const headerParams = node.parameters.filter((p) => p.in === "header");
210472
210469
  return createSchema({
210473
210470
  type: "object",
210471
+ deprecated: node.deprecated,
210474
210472
  properties: [
210475
210473
  createProperty({
210476
210474
  name: "data",
@@ -210536,11 +210534,10 @@ function buildDataSchemaNode({ node, resolveName }) {
210536
210534
  });
210537
210535
  }
210538
210536
  function buildResponsesSchemaNode({ node, resolveName }) {
210539
- const responsesWithSchema = node.responses.filter((res) => res.schema);
210540
- if (responsesWithSchema.length === 0) return null;
210537
+ if (node.responses.length === 0) return null;
210541
210538
  return createSchema({
210542
210539
  type: "object",
210543
- properties: responsesWithSchema.map((res) => createProperty({
210540
+ properties: node.responses.map((res) => createProperty({
210544
210541
  name: String(res.statusCode),
210545
210542
  schema: createSchema({
210546
210543
  type: "ref",
@@ -210571,7 +210568,7 @@ const typeGenerator = defineGenerator({
210571
210568
  type: "react",
210572
210569
  Operation({ node, adapter, options }) {
210573
210570
  const { enumType, enumKeyCasing, optionalType, arrayType, syntaxType, paramsCasing, group } = options;
210574
- const { mode, getFile, resolveName } = useKubb();
210571
+ const { mode, getFile, resolveName, resolveBanner, resolveFooter } = useKubb();
210575
210572
  const file = getFile({
210576
210573
  name: node.operationId,
210577
210574
  extname: ".ts",
@@ -210615,37 +210612,19 @@ const typeGenerator = defineGenerator({
210615
210612
  }
210616
210613
  const paramTypes = params.map((param) => renderSchemaType({
210617
210614
  node: param.schema,
210618
- name: resolveName({
210619
- name: `${node.operationId} ${pascalCase$6(param.in)} ${param.name}`,
210620
- type: "function"
210621
- }),
210622
- typedName: resolveName({
210623
- name: `${node.operationId} ${pascalCase$6(param.in)} ${param.name}`,
210624
- type: "type"
210625
- })
210615
+ name: resolverTs.resolveParamName(node, param),
210616
+ typedName: resolverTs.resolveParamTypedName(node, param)
210626
210617
  }));
210627
- const responseTypes = node.responses.filter((res) => res.schema).map((res) => renderSchemaType({
210618
+ const responseTypes = node.responses.map((res) => renderSchemaType({
210628
210619
  node: res.schema,
210629
- name: resolveName({
210630
- name: `${node.operationId} Status ${res.statusCode}`,
210631
- type: "function"
210632
- }),
210633
- typedName: resolveName({
210634
- name: `${node.operationId} Status ${res.statusCode}`,
210635
- type: "type"
210636
- }),
210620
+ name: resolverTs.resolveResponseStatusName(node, res.statusCode),
210621
+ typedName: resolverTs.resolveResponseStatusTypedName(node, res.statusCode),
210637
210622
  description: res.description
210638
210623
  }));
210639
210624
  const requestType = node.requestBody ? renderSchemaType({
210640
210625
  node: node.requestBody,
210641
- name: resolveName({
210642
- name: `${node.operationId} Data`,
210643
- type: "function"
210644
- }),
210645
- typedName: resolveName({
210646
- name: `${node.operationId} Data`,
210647
- type: "type"
210648
- }),
210626
+ name: resolverTs.resolveDataName(node),
210627
+ typedName: resolverTs.resolveDataTypedName(node),
210649
210628
  description: node.requestBody.description
210650
210629
  }) : null;
210651
210630
  const dataType = renderSchemaType({
@@ -210656,48 +210635,32 @@ const typeGenerator = defineGenerator({
210656
210635
  },
210657
210636
  resolveName
210658
210637
  }),
210659
- name: resolveName({
210660
- name: `${node.operationId} RequestConfig`,
210661
- type: "function"
210662
- }),
210663
- typedName: resolveName({
210664
- name: `${node.operationId} RequestConfig`,
210665
- type: "type"
210666
- })
210638
+ name: resolverTs.resolveRequestConfigName(node),
210639
+ typedName: resolverTs.resolveRequestConfigTypedName(node)
210667
210640
  });
210668
210641
  const responsesType = renderSchemaType({
210669
210642
  node: buildResponsesSchemaNode({
210670
210643
  node,
210671
210644
  resolveName
210672
210645
  }),
210673
- name: resolveName({
210674
- name: `${node.operationId} Responses`,
210675
- type: "function"
210676
- }),
210677
- typedName: resolveName({
210678
- name: `${node.operationId} Responses`,
210679
- type: "type"
210680
- })
210646
+ name: resolverTs.resolveResponsesName(node),
210647
+ typedName: resolverTs.resolveResponsesTypedName(node)
210681
210648
  });
210682
210649
  const responseType = renderSchemaType({
210683
210650
  node: buildResponseUnionSchemaNode({
210684
210651
  node,
210685
210652
  resolveName
210686
210653
  }),
210687
- name: resolveName({
210688
- name: `${node.operationId} Response`,
210689
- type: "function"
210690
- }),
210691
- typedName: resolveName({
210692
- name: `${node.operationId} Response`,
210693
- type: "type"
210694
- }),
210654
+ name: resolverTs.resolveResponseName(node),
210655
+ typedName: resolverTs.resolveResponseTypedName(node),
210695
210656
  description: "Union of all possible responses"
210696
210657
  });
210697
210658
  return /* @__PURE__ */ jsxs(File, {
210698
210659
  baseName: file.baseName,
210699
210660
  path: file.path,
210700
210661
  meta: file.meta,
210662
+ banner: resolveBanner(),
210663
+ footer: resolveFooter(),
210701
210664
  children: [
210702
210665
  paramTypes,
210703
210666
  responseTypes,
@@ -210710,7 +210673,7 @@ const typeGenerator = defineGenerator({
210710
210673
  },
210711
210674
  Schema({ node, adapter, options }) {
210712
210675
  const { enumType, enumKeyCasing, syntaxType, optionalType, arrayType } = options;
210713
- const { mode, resolveName, getFile } = useKubb();
210676
+ const { mode, resolveName, getFile, resolveBanner, resolveFooter } = useKubb();
210714
210677
  if (!node.name) return;
210715
210678
  const imports = adapter.getImports(node, (schemaName) => ({
210716
210679
  name: resolveName({
@@ -210724,16 +210687,9 @@ const typeGenerator = defineGenerator({
210724
210687
  }).path
210725
210688
  }));
210726
210689
  const isEnumSchema = node.type === "enum";
210727
- let typedName = resolveName({
210728
- name: node.name,
210729
- type: "type"
210730
- });
210731
- if (ENUM_TYPES_WITH_KEY_SUFFIX.has(enumType) && isEnumSchema) typedName += "Key";
210690
+ const typedName = ENUM_TYPES_WITH_KEY_SUFFIX.has(enumType) && isEnumSchema ? resolverTs.resolveEnumKeyTypedName(node) : resolverTs.resolveTypedName(node.name);
210732
210691
  const type = {
210733
- name: resolveName({
210734
- name: node.name,
210735
- type: "function"
210736
- }),
210692
+ name: resolverTs.resolveName(node.name),
210737
210693
  typedName,
210738
210694
  file: getFile({
210739
210695
  name: node.name,
@@ -210745,6 +210701,8 @@ const typeGenerator = defineGenerator({
210745
210701
  baseName: type.file.baseName,
210746
210702
  path: type.file.path,
210747
210703
  meta: type.file.meta,
210704
+ banner: resolveBanner(),
210705
+ footer: resolveFooter(),
210748
210706
  children: [mode === "split" && imports.map((imp) => /* @__PURE__ */ jsx(File.Import, {
210749
210707
  root: type.file.path,
210750
210708
  path: imp.path,
@@ -210768,7 +210726,7 @@ const typeGenerator = defineGenerator({
210768
210726
  }
210769
210727
  });
210770
210728
  const pluginTsName = "plugin-ts";
210771
- const pluginTs = definePlugin((options) => {
210729
+ const pluginTs = createPlugin((options) => {
210772
210730
  const { output = {
210773
210731
  path: "types",
210774
210732
  barrelType: "named"
@@ -210810,7 +210768,7 @@ const pluginTs = definePlugin((options) => {
210810
210768
  },
210811
210769
  resolveName(name, type) {
210812
210770
  var _a;
210813
- const resolvedName = pascalCase$6(name, { isFile: type === "file" });
210771
+ const resolvedName = resolverTs.default(name, type);
210814
210772
  if (type) return ((_a = transformers == null ? void 0 : transformers.name) == null ? void 0 : _a.call(transformers, resolvedName, type)) || resolvedName;
210815
210773
  return resolvedName;
210816
210774
  },
@@ -210825,7 +210783,7 @@ const pluginTs = definePlugin((options) => {
210825
210783
  async schema(schemaNode) {
210826
210784
  const writeTasks = generators.map(async (generator) => {
210827
210785
  if (generator.type === "react" && generator.version === "2") {
210828
- const options2 = resolveOptions(schemaNode, {
210786
+ const options2 = resolverTs.resolveOptions(schemaNode, {
210829
210787
  options: plugin.options,
210830
210788
  exclude,
210831
210789
  include,
@@ -210850,7 +210808,7 @@ const pluginTs = definePlugin((options) => {
210850
210808
  async operation(operationNode) {
210851
210809
  const writeTasks = generators.map(async (generator) => {
210852
210810
  if (generator.type === "react" && generator.version === "2") {
210853
- const options2 = resolveOptions(operationNode, {
210811
+ const options2 = resolverTs.resolveOptions(operationNode, {
210854
210812
  options: plugin.options,
210855
210813
  exclude,
210856
210814
  include,
@@ -211223,11 +211181,11 @@ function pascalCase$5(text, { isFile, prefix = "", suffix = "" } = {}) {
211223
211181
  return toCamelOrPascal$9(`${prefix} ${text} ${suffix}`, true);
211224
211182
  }
211225
211183
  const pluginZodName = "plugin-zod";
211226
- const pluginZod = definePlugin((options) => {
211184
+ const pluginZod = createPlugin((options) => {
211227
211185
  const { output = {
211228
211186
  path: "zod",
211229
211187
  barrelType: "named"
211230
- }, group, exclude = [], include, override = [], transformers = {}, dateType = "string", unknownType = "any", emptySchemaType = unknownType, integerType = "number", typed = false, mapper = {}, operations = false, mini = false, version = mini ? "4" : new PackageManager().isValidSync("zod", ">=4") ? "4" : "3", guidType = "uuid", importPath = mini ? "zod/mini" : version === "4" ? "zod/v4" : "zod", coercion = false, inferred = false, generators = [zodGenerator, operations ? operationsGenerator$1 : void 0].filter(Boolean), wrapOutput = void 0, contentType } = options;
211188
+ }, group, exclude = [], include, override = [], transformers = {}, dateType = "string", unknownType = "any", emptySchemaType = unknownType, integerType = "number", typed = false, mapper = {}, operations = false, mini = false, version = mini ? "4" : satisfiesDependency("zod", ">=4") ? "4" : "3", guidType = "uuid", importPath = mini ? "zod/mini" : version === "4" ? "zod/v4" : "zod", coercion = false, inferred = false, generators = [zodGenerator, operations ? operationsGenerator$1 : void 0].filter(Boolean), wrapOutput = void 0, contentType } = options;
211231
211189
  return {
211232
211190
  name: pluginZodName,
211233
211191
  options: {
@@ -212043,7 +212001,7 @@ const source$1 = "/**\n * RequestCredentials\n */\nexport type RequestCredential
212043
212001
  const source = "export function buildFormData<T = unknown>(data: T): FormData {\n const formData = new FormData()\n\n function appendData(key: string, value: any) {\n if (value instanceof Blob) {\n formData.append(key, value)\n return\n }\n if (value instanceof Date) {\n formData.append(key, value.toISOString())\n return\n }\n if (typeof value === 'number' || typeof value === 'boolean') {\n formData.append(key, String(value))\n return\n }\n if (typeof value === 'string') {\n formData.append(key, value)\n return\n }\n if (typeof value === 'object') {\n formData.append(key, new Blob([JSON.stringify(value)], { type: 'application/json' }))\n return\n }\n }\n\n if (data) {\n Object.entries(data).forEach(([key, value]) => {\n if (value === undefined || value === null) return\n\n if (Array.isArray(value)) {\n for (const valueItem of value) {\n if (valueItem === undefined || valueItem === null) continue\n appendData(key, valueItem)\n }\n } else {\n appendData(key, value)\n }\n })\n }\n\n return formData\n}\n";
212044
212002
 
212045
212003
  const pluginClientName = "plugin-client";
212046
- const pluginClient = definePlugin((options) => {
212004
+ const pluginClient = createPlugin((options) => {
212047
212005
  var _a;
212048
212006
  const { output = {
212049
212007
  path: "clients",
@@ -212436,7 +212394,7 @@ const cypressGenerator = createReactGenerator({
212436
212394
  });
212437
212395
 
212438
212396
  const pluginCypressName = "plugin-cypress";
212439
- const pluginCypress = definePlugin((options) => {
212397
+ const pluginCypress = createPlugin((options) => {
212440
212398
  const { output = {
212441
212399
  path: "cypress",
212442
212400
  barrelType: "named"
@@ -213092,7 +213050,7 @@ function camelCase$7(text, { isFile, prefix = "", suffix = "" } = {}) {
213092
213050
  return toCamelOrPascal$7(`${prefix} ${text} ${suffix}`);
213093
213051
  }
213094
213052
  const pluginFakerName = "plugin-faker";
213095
- const pluginFaker = definePlugin((options) => {
213053
+ const pluginFaker = createPlugin((options) => {
213096
213054
  const { output = {
213097
213055
  path: "mocks",
213098
213056
  barrelType: "named"
@@ -213582,7 +213540,7 @@ const serverGenerator = createReactGenerator({
213582
213540
  });
213583
213541
 
213584
213542
  const pluginMcpName = "plugin-mcp";
213585
- const pluginMcp = definePlugin((options) => {
213543
+ const pluginMcp = createPlugin((options) => {
213586
213544
  var _a, _b, _c, _d;
213587
213545
  const { output = {
213588
213546
  path: "mcp",
@@ -214075,7 +214033,7 @@ const mswGenerator = createReactGenerator({
214075
214033
  });
214076
214034
 
214077
214035
  const pluginMswName = "plugin-msw";
214078
- const pluginMsw = definePlugin((options) => {
214036
+ const pluginMsw = createPlugin((options) => {
214079
214037
  const { output = {
214080
214038
  path: "handlers",
214081
214039
  barrelType: "named"
@@ -217019,7 +216977,7 @@ const suspenseQueryGenerator = createReactGenerator({
217019
216977
  });
217020
216978
 
217021
216979
  const pluginReactQueryName = "plugin-react-query";
217022
- const pluginReactQuery = definePlugin((options) => {
216980
+ const pluginReactQuery = createPlugin((options) => {
217023
216981
  var _a, _b, _c, _d;
217024
216982
  const { output = {
217025
216983
  path: "hooks",
@@ -217192,7 +217150,7 @@ function trimExtName(text) {
217192
217150
  return text.replace(/\.[^/.]+$/, "");
217193
217151
  }
217194
217152
  const pluginRedocName = "plugin-redoc";
217195
- const pluginRedoc = definePlugin((options) => {
217153
+ const pluginRedoc = createPlugin((options) => {
217196
217154
  const { output = { path: "docs.html" } } = options;
217197
217155
  return {
217198
217156
  name: pluginRedocName,
@@ -218242,7 +218200,7 @@ const queryGenerator$3 = createReactGenerator({
218242
218200
  });
218243
218201
 
218244
218202
  const pluginSolidQueryName = "plugin-solid-query";
218245
- const pluginSolidQuery = definePlugin((options) => {
218203
+ const pluginSolidQuery = createPlugin((options) => {
218246
218204
  var _a, _b, _c, _d;
218247
218205
  const { output = {
218248
218206
  path: "hooks",
@@ -219392,7 +219350,7 @@ const queryGenerator$2 = createReactGenerator({
219392
219350
  });
219393
219351
 
219394
219352
  const pluginSvelteQueryName = "plugin-svelte-query";
219395
- const pluginSvelteQuery = definePlugin((options) => {
219353
+ const pluginSvelteQuery = createPlugin((options) => {
219396
219354
  var _a, _b, _c, _d;
219397
219355
  const { output = {
219398
219356
  path: "hooks",
@@ -220565,7 +220523,7 @@ const queryGenerator$1 = createReactGenerator({
220565
220523
  });
220566
220524
 
220567
220525
  const pluginSwrName = "plugin-swr";
220568
- const pluginSwr = definePlugin((options) => {
220526
+ const pluginSwr = createPlugin((options) => {
220569
220527
  var _a, _b, _c, _d;
220570
220528
  const { output = {
220571
220529
  path: "hooks",
@@ -222314,7 +222272,7 @@ const queryGenerator = createReactGenerator({
222314
222272
  });
222315
222273
 
222316
222274
  const pluginVueQueryName = "plugin-vue-query";
222317
- const pluginVueQuery = definePlugin((options) => {
222275
+ const pluginVueQuery = createPlugin((options) => {
222318
222276
  var _a, _b, _c, _d;
222319
222277
  const { output = {
222320
222278
  path: "hooks",
@@ -1 +1 @@
1
- {"version":3,"file":"nitro.mjs","sources":["../../../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../../../../node_modules/.pnpm/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../../../node_modules/.pnpm/h3@1.15.5/node_modules/h3/dist/index.mjs","../../../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../../../internals/utils/dist/index.js","../../../../server/plugins/heartbeat.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../ast/dist/index.js","../../../../../core/dist/index.js","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk--u3MIqq1.js","../../../../../plugin-oas/dist/getFooter-Pw3tLCiV.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-gV_d8sCu.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-CCn9g9eF.js","../../../../../plugin-oas/dist/generators-BjsINk-u.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-eECfXVou.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/components-CRu8IKY3.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-DVhVzwDg.js","../../../../../plugin-zod/dist/generators-lTWPS6oN.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-BYUJaeZP.js","../../../../../plugin-client/dist/templates/clients/axios.source.js","../../../../../plugin-client/dist/templates/clients/fetch.source.js","../../../../../plugin-client/dist/templates/config.source.js","../../../../../plugin-client/dist/index.js","../../../../../plugin-cypress/dist/components-BK_6GU4v.js","../../../../../plugin-cypress/dist/generators-B3FWG2Ck.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-M5oCrPmy.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-KWLMg0Lm.js","../../../../../plugin-mcp/dist/generators-TtEOkDB1.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-DgtTZkWX.js","../../../../../plugin-msw/dist/generators-CvyZTxOm.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CpyHYGOw.js","../../../../../plugin-react-query/dist/generators-DkQwKTc2.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-BhStIi1M.js","../../../../../plugin-solid-query/dist/generators-BT0sdmbO.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-DntKBsnB.js","../../../../../plugin-svelte-query/dist/generators-TJp_N4gT.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-DRDGvgXG.js","../../../../../plugin-swr/dist/generators-CRSl6u2M.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-_AMBl0g-.js","../../../../../plugin-vue-query/dist/generators-CR34GjVu.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/publish.ts","../../../../server/utils/setupHookListener.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","stringify","normalizeKey","defineDriver","DRIVER_NAME","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","_emitter","_a","toError","AsyncEventEmitter","__privateAdd","__privateGet","formatMs","parseHex","hex","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","applyParamsCasing","path","readFile","writeFile","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","extname","x","performance","build","readdir","version","_c","_d","_e","_f","_g","os","item","trimExtName","error","__defProp","__name","pascalCase","isPlainObject","parse","loadConfig","schema","params","_context","trimQuotes","schemas","normalizedSchema","name","min","max","getParams$1","getParams","Operations","validate","oas","options","jsStringEscape","toRegExpString","Type","siblings","require","global","modifiers","questionToken","propertyName","applyParamsCasing$1","node","barrelFiles","operationsGenerator","source","Function","baseURL","source$2","Response","getNestedAccessor","getTransformer$1","MutationKey","getParams$9","getTransformer","QueryKey","getParams$8","QueryOptions","getParams$7","InfiniteQuery","getParams$6","InfiniteQueryOptions","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","fs","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","generics","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,55,108,109,110,111]}
1
+ {"version":3,"file":"nitro.mjs","sources":["../../../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../../../../node_modules/.pnpm/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../../../node_modules/.pnpm/h3@1.15.5/node_modules/h3/dist/index.mjs","../../../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../../../internals/utils/dist/index.js","../../../../server/plugins/heartbeat.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../ast/dist/index.js","../../../../../core/dist/index.js","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk--u3MIqq1.js","../../../../../plugin-oas/dist/getFooter-Pw3tLCiV.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-gV_d8sCu.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-CCn9g9eF.js","../../../../../plugin-oas/dist/generators-BjsINk-u.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-eECfXVou.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/components-CRu8IKY3.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-BZkBwnEA.js","../../../../../plugin-zod/dist/generators-lTWPS6oN.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-BYUJaeZP.js","../../../../../plugin-client/dist/templates/clients/axios.source.js","../../../../../plugin-client/dist/templates/clients/fetch.source.js","../../../../../plugin-client/dist/templates/config.source.js","../../../../../plugin-client/dist/index.js","../../../../../plugin-cypress/dist/components-BK_6GU4v.js","../../../../../plugin-cypress/dist/generators-B3FWG2Ck.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-M5oCrPmy.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-KWLMg0Lm.js","../../../../../plugin-mcp/dist/generators-TtEOkDB1.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-DgtTZkWX.js","../../../../../plugin-msw/dist/generators-CvyZTxOm.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CpyHYGOw.js","../../../../../plugin-react-query/dist/generators-DkQwKTc2.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-BhStIi1M.js","../../../../../plugin-solid-query/dist/generators-BT0sdmbO.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-DntKBsnB.js","../../../../../plugin-svelte-query/dist/generators-TJp_N4gT.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-DRDGvgXG.js","../../../../../plugin-swr/dist/generators-CRSl6u2M.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-_AMBl0g-.js","../../../../../plugin-vue-query/dist/generators-CR34GjVu.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/publish.ts","../../../../server/utils/setupHookListener.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","stringify","normalizeKey","defineDriver","DRIVER_NAME","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","_emitter","_a","toError","AsyncEventEmitter","__privateAdd","__privateGet","formatMs","parseHex","hex","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","applyParamsCasing","pascalCase","path","readFile","writeFile","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","match","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","extname","x","performance","build","readdir","version","_c","_d","_e","_f","item","trimExtName","error","__defProp","__name","isPlainObject","parse","loadConfig","schema","params","_context","trimQuotes","schemas","normalizedSchema","name","min","max","getParams$1","getParams","Operations","validate","oas","options","jsStringEscape","toRegExpString","Type","siblings","require","global","modifiers","questionToken","propertyName","applyParamsCasing$1","node","barrelFiles","operationsGenerator","source","Function","baseURL","source$2","Response","getNestedAccessor","getTransformer$1","MutationKey","getParams$9","getTransformer","QueryKey","getParams$8","QueryOptions","getParams$7","InfiniteQuery","getParams$6","InfiniteQueryOptions","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","fs","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","generics","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,55,108,109,110,111]}
@@ -14,7 +14,6 @@ import 'node:crypto';
14
14
  import 'node:process';
15
15
  import '@logtail/node';
16
16
  import 'consola';
17
- import 'node:module';
18
17
  import 'node:fs/promises';
19
18
  import '@kubb/react-fabric';
20
19
  import '@kubb/react-fabric/parsers';
@@ -22,11 +21,9 @@ import '@kubb/react-fabric/plugins';
22
21
  import 'node:perf_hooks';
23
22
  import 'fflate';
24
23
  import 'tinyexec';
25
- import 'node:os';
26
- import 'node:url';
24
+ import 'remeda';
27
25
  import 'empathic/package';
28
26
  import 'semver';
29
- import 'remeda';
30
27
  import 'node:util';
31
28
  import 'jiti';
32
29
  import 'jsonpointer';
@@ -43,6 +40,7 @@ import 'fs';
43
40
  import 'path';
44
41
  import 'os';
45
42
  import 'inspector';
43
+ import 'node:url';
46
44
  import 'handlebars';
47
45
  import 'ws';
48
46
 
@@ -1 +1 @@
1
- {"version":3,"file":"health.get.mjs","sources":["../../../../../server/routes/api/health.get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CACA;AACA,CAAA,CAAA;;"}
1
+ {"version":3,"file":"health.get.mjs","sources":["../../../../../server/routes/api/health.get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CACA;AACA,CAAA,CAAA;;"}
@@ -14,7 +14,6 @@ import 'node:crypto';
14
14
  import 'node:process';
15
15
  import '@logtail/node';
16
16
  import 'consola';
17
- import 'node:module';
18
17
  import 'node:fs/promises';
19
18
  import '@kubb/react-fabric';
20
19
  import '@kubb/react-fabric/parsers';
@@ -22,11 +21,9 @@ import '@kubb/react-fabric/plugins';
22
21
  import 'node:perf_hooks';
23
22
  import 'fflate';
24
23
  import 'tinyexec';
25
- import 'node:os';
26
- import 'node:url';
24
+ import 'remeda';
27
25
  import 'empathic/package';
28
26
  import 'semver';
29
- import 'remeda';
30
27
  import 'node:util';
31
28
  import 'jiti';
32
29
  import 'jsonpointer';
@@ -43,6 +40,7 @@ import 'fs';
43
40
  import 'path';
44
41
  import 'os';
45
42
  import 'inspector';
43
+ import 'node:url';
46
44
  import 'handlebars';
47
45
  import 'ws';
48
46
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent-prod",
3
- "version": "5.0.0-alpha.7",
3
+ "version": "5.0.0-alpha.9",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent",
3
- "version": "5.0.0-alpha.7",
3
+ "version": "5.0.0-alpha.9",
4
4
  "description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
5
5
  "keywords": [
6
6
  "agent",
@@ -40,21 +40,21 @@
40
40
  "tinyexec": "^1.0.4",
41
41
  "unstorage": "^1.17.4",
42
42
  "ws": "^8.19.0",
43
- "@kubb/core": "5.0.0-alpha.7",
44
- "@kubb/plugin-client": "5.0.0-alpha.7",
45
- "@kubb/plugin-cypress": "5.0.0-alpha.7",
46
- "@kubb/plugin-faker": "5.0.0-alpha.7",
47
- "@kubb/plugin-mcp": "5.0.0-alpha.7",
48
- "@kubb/plugin-msw": "5.0.0-alpha.7",
49
- "@kubb/plugin-oas": "5.0.0-alpha.7",
50
- "@kubb/plugin-react-query": "5.0.0-alpha.7",
51
- "@kubb/plugin-redoc": "5.0.0-alpha.7",
52
- "@kubb/plugin-solid-query": "5.0.0-alpha.7",
53
- "@kubb/plugin-svelte-query": "5.0.0-alpha.7",
54
- "@kubb/plugin-swr": "5.0.0-alpha.7",
55
- "@kubb/plugin-ts": "5.0.0-alpha.7",
56
- "@kubb/plugin-vue-query": "5.0.0-alpha.7",
57
- "@kubb/plugin-zod": "5.0.0-alpha.7"
43
+ "@kubb/core": "5.0.0-alpha.9",
44
+ "@kubb/plugin-client": "5.0.0-alpha.9",
45
+ "@kubb/plugin-cypress": "5.0.0-alpha.9",
46
+ "@kubb/plugin-faker": "5.0.0-alpha.9",
47
+ "@kubb/plugin-mcp": "5.0.0-alpha.9",
48
+ "@kubb/plugin-msw": "5.0.0-alpha.9",
49
+ "@kubb/plugin-oas": "5.0.0-alpha.9",
50
+ "@kubb/plugin-react-query": "5.0.0-alpha.9",
51
+ "@kubb/plugin-redoc": "5.0.0-alpha.9",
52
+ "@kubb/plugin-solid-query": "5.0.0-alpha.9",
53
+ "@kubb/plugin-svelte-query": "5.0.0-alpha.9",
54
+ "@kubb/plugin-swr": "5.0.0-alpha.9",
55
+ "@kubb/plugin-ts": "5.0.0-alpha.9",
56
+ "@kubb/plugin-vue-query": "5.0.0-alpha.9",
57
+ "@kubb/plugin-zod": "5.0.0-alpha.9"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/ws": "^8.18.1",