@kubb/agent 5.0.0-alpha.21 → 5.0.0-alpha.22

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-25T13:55:29.214Z",
2
+ "date": "2026-03-25T16:14:52.512Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -6108,7 +6108,7 @@ const fsStorage = createStorage(() => ({
6108
6108
  await clean(resolve(base));
6109
6109
  }
6110
6110
  }));
6111
- var version$1 = "5.0.0-alpha.21";
6111
+ var version$1 = "5.0.0-alpha.22";
6112
6112
  function getDiagnosticInfo() {
6113
6113
  return {
6114
6114
  nodeVersion: version$2,
@@ -6780,24 +6780,39 @@ var TreeNode = (_f = class {
6780
6780
  __privateSet$c(this, _cachedLeaves, leaves);
6781
6781
  return leaves;
6782
6782
  }
6783
+ /**
6784
+ * Visits this node and every descendant in depth-first order.
6785
+ */
6783
6786
  forEach(callback) {
6784
6787
  if (typeof callback !== "function") throw new TypeError("forEach() callback must be a function");
6785
6788
  callback(this);
6786
6789
  for (const child of this.children) child.forEach(callback);
6787
6790
  return this;
6788
6791
  }
6792
+ /**
6793
+ * Finds the first leaf that satisfies `predicate`, or `undefined` when none match.
6794
+ */
6789
6795
  findDeep(predicate) {
6790
6796
  if (typeof predicate !== "function") throw new TypeError("find() predicate must be a function");
6791
6797
  return this.leaves.find(predicate);
6792
6798
  }
6799
+ /**
6800
+ * Calls `callback` for every leaf of this node.
6801
+ */
6793
6802
  forEachDeep(callback) {
6794
6803
  if (typeof callback !== "function") throw new TypeError("forEach() callback must be a function");
6795
6804
  this.leaves.forEach(callback);
6796
6805
  }
6806
+ /**
6807
+ * Returns all leaves that satisfy `callback`.
6808
+ */
6797
6809
  filterDeep(callback) {
6798
6810
  if (typeof callback !== "function") throw new TypeError("filter() callback must be a function");
6799
6811
  return this.leaves.filter(callback);
6800
6812
  }
6813
+ /**
6814
+ * Maps every leaf through `callback` and returns the resulting array.
6815
+ */
6801
6816
  mapDeep(callback) {
6802
6817
  if (typeof callback !== "function") throw new TypeError("map() callback must be a function");
6803
6818
  return this.leaves.map(callback);
@@ -7021,7 +7036,7 @@ function satisfiesDependency(dependency, version2, cwd) {
7021
7036
  return satisfies(semVer, version2);
7022
7037
  }
7023
7038
 
7024
- var version = "5.0.0-alpha.21";
7039
+ var version = "5.0.0-alpha.22";
7025
7040
 
7026
7041
  function isCommandMessage(msg) {
7027
7042
  return msg.type === "command";
@@ -209824,8 +209839,7 @@ const printerTs = definePrinter((options) => {
209824
209839
  withParentheses: true,
209825
209840
  nodes: values.filter((v) => v !== null).map((value) => constToTypeNode(value, typeof value)).filter(Boolean)
209826
209841
  })) != null ? _d : void 0;
209827
- const resolvedName = this.options.resolver.default(node.name, "type");
209828
- return createTypeReferenceNode(ENUM_TYPES_WITH_KEY_SUFFIX.has(this.options.enumType) ? `${resolvedName}Key` : resolvedName, void 0);
209842
+ return createTypeReferenceNode(ENUM_TYPES_WITH_KEY_SUFFIX.has(this.options.enumType) && this.options.enumTypeSuffix ? this.options.resolver.resolveEnumKeyTypedName(node, this.options.enumTypeSuffix) : this.options.resolver.default(node.name, "type"), void 0);
209829
209843
  },
209830
209844
  union(node) {
209831
209845
  var _a, _b, _c;
@@ -209921,19 +209935,20 @@ const printerTs = definePrinter((options) => {
209921
209935
  };
209922
209936
  });
209923
209937
 
209924
- function getEnumNames({ node, enumType, resolver }) {
209938
+ function getEnumNames({ node, enumType, enumTypeSuffix, resolver }) {
209925
209939
  const resolved = resolver.default(node.name, "type");
209926
209940
  return {
209927
209941
  enumName: enumType === "asPascalConst" ? resolved : camelCase$a(node.name),
209928
- typeName: ENUM_TYPES_WITH_KEY_SUFFIX.has(enumType) ? `${resolved}Key` : resolved,
209942
+ typeName: ENUM_TYPES_WITH_KEY_SUFFIX.has(enumType) ? resolver.resolveEnumKeyTypedName(node, enumTypeSuffix) : resolved,
209929
209943
  refName: resolved
209930
209944
  };
209931
209945
  }
209932
- function Enum({ node, enumType, enumKeyCasing, resolver }) {
209946
+ function Enum({ node, enumType, enumTypeSuffix, enumKeyCasing, resolver }) {
209933
209947
  var _a, _b, _c, _d;
209934
- const { enumName, typeName, refName } = getEnumNames({
209948
+ const { enumName, typeName } = getEnumNames({
209935
209949
  node,
209936
209950
  enumType,
209951
+ enumTypeSuffix,
209937
209952
  resolver
209938
209953
  });
209939
209954
  const [nameNode, typeNode] = createEnumDeclaration({
@@ -209943,32 +209958,21 @@ function Enum({ node, enumType, enumKeyCasing, resolver }) {
209943
209958
  type: enumType,
209944
209959
  enumKeyCasing
209945
209960
  });
209946
- const needsRefAlias = ENUM_TYPES_WITH_KEY_SUFFIX.has(enumType) && refName !== typeName;
209947
- return /* @__PURE__ */ jsxs(Fragment, { children: [
209948
- nameNode && /* @__PURE__ */ jsx(File.Source, {
209949
- name: enumName,
209950
- isExportable: true,
209951
- isIndexable: true,
209952
- isTypeOnly: false,
209953
- children: safePrint(nameNode)
209954
- }),
209955
- /* @__PURE__ */ jsx(File.Source, {
209956
- name: typeName,
209957
- isIndexable: true,
209958
- isExportable: ENUM_TYPES_WITH_RUNTIME_VALUE.has(enumType),
209959
- isTypeOnly: ENUM_TYPES_WITH_TYPE_ONLY.has(enumType),
209960
- children: safePrint(typeNode)
209961
- }),
209962
- needsRefAlias && /* @__PURE__ */ jsx(File.Source, {
209963
- name: refName,
209964
- isExportable: true,
209965
- isIndexable: true,
209966
- isTypeOnly: true,
209967
- children: `export type ${refName} = ${typeName}`
209968
- })
209969
- ] });
209961
+ return /* @__PURE__ */ jsxs(Fragment, { children: [nameNode && /* @__PURE__ */ jsx(File.Source, {
209962
+ name: enumName,
209963
+ isExportable: true,
209964
+ isIndexable: true,
209965
+ isTypeOnly: false,
209966
+ children: safePrint(nameNode)
209967
+ }), /* @__PURE__ */ jsx(File.Source, {
209968
+ name: typeName,
209969
+ isIndexable: true,
209970
+ isExportable: ENUM_TYPES_WITH_RUNTIME_VALUE.has(enumType),
209971
+ isTypeOnly: ENUM_TYPES_WITH_TYPE_ONLY.has(enumType),
209972
+ children: safePrint(typeNode)
209973
+ })] });
209970
209974
  }
209971
- function Type({ name, typedName, node, keysToOmit, optionalType, arrayType, syntaxType, enumType, enumKeyCasing, description, resolver }) {
209975
+ function Type({ name, typedName, node, keysToOmit, optionalType, arrayType, syntaxType, enumType, enumTypeSuffix, enumKeyCasing, description, resolver }) {
209972
209976
  const resolvedDescription = description || (node == null ? void 0 : node.description);
209973
209977
  const enumSchemaNodes = collect(node, { schema(n) {
209974
209978
  const enumNode = narrowSchema(n, schemaTypes.enum);
@@ -209978,6 +209982,7 @@ function Type({ name, typedName, node, keysToOmit, optionalType, arrayType, synt
209978
209982
  optionalType,
209979
209983
  arrayType,
209980
209984
  enumType,
209985
+ enumTypeSuffix,
209981
209986
  typeName: name,
209982
209987
  syntaxType,
209983
209988
  description: resolvedDescription,
@@ -209991,6 +209996,7 @@ function Type({ name, typedName, node, keysToOmit, optionalType, arrayType, synt
209991
209996
  ...getEnumNames({
209992
209997
  node: node2,
209993
209998
  enumType,
209999
+ enumTypeSuffix,
209994
210000
  resolver
209995
210001
  })
209996
210002
  };
@@ -210000,6 +210006,7 @@ function Type({ name, typedName, node, keysToOmit, optionalType, arrayType, synt
210000
210006
  return /* @__PURE__ */ jsxs(Fragment, { children: [shouldExportEnums && enums.map(({ node: node2 }) => /* @__PURE__ */ jsx(Enum, {
210001
210007
  node: node2,
210002
210008
  enumType,
210009
+ enumTypeSuffix,
210003
210010
  enumKeyCasing,
210004
210011
  resolver
210005
210012
  })), shouldExportType && /* @__PURE__ */ jsx(File.Source, {
@@ -210066,9 +210073,9 @@ const resolverTs = defineResolver(() => {
210066
210073
  resolveResponseTypedName(node) {
210067
210074
  return this.resolveTypedName(`${node.operationId} Response`);
210068
210075
  },
210069
- resolveEnumKeyTypedName(node) {
210076
+ resolveEnumKeyTypedName(node, enumTypeSuffix = "key") {
210070
210077
  var _a;
210071
- return `${this.resolveTypedName((_a = node.name) != null ? _a : "")}Key`;
210078
+ return `${this.resolveTypedName((_a = node.name) != null ? _a : "")}${enumTypeSuffix}`;
210072
210079
  },
210073
210080
  resolvePathParamsName(_node) {
210074
210081
  throw new Error("resolvePathParamsName is only available with compatibilityPreset: 'kubbV4'. Use resolveParamName per individual parameter instead.");
@@ -210152,7 +210159,7 @@ const typeGenerator = defineGenerator({
210152
210159
  type: "react",
210153
210160
  Operation({ node, adapter, options, config }) {
210154
210161
  var _a, _b, _c;
210155
- const { enumType, enumKeyCasing, optionalType, arrayType, syntaxType, paramsCasing, group, output, resolver, transformers = [] } = options;
210162
+ const { enumType, enumTypeSuffix, enumKeyCasing, optionalType, arrayType, syntaxType, paramsCasing, group, output, resolver, transformers = [] } = options;
210156
210163
  const root = path$2.resolve(config.root, config.output.path);
210157
210164
  const mode = getMode(path$2.resolve(root, output.path));
210158
210165
  const file = resolver.resolveFile({
@@ -210195,6 +210202,7 @@ const typeGenerator = defineGenerator({
210195
210202
  node: transformedNode,
210196
210203
  description,
210197
210204
  enumType,
210205
+ enumTypeSuffix,
210198
210206
  enumKeyCasing,
210199
210207
  optionalType,
210200
210208
  arrayType,
@@ -210273,7 +210281,7 @@ const typeGenerator = defineGenerator({
210273
210281
  });
210274
210282
  },
210275
210283
  Schema({ node, adapter, options, config }) {
210276
- const { enumType, enumKeyCasing, syntaxType, optionalType, arrayType, output, group, resolver, transformers = [] } = options;
210284
+ const { enumType, enumTypeSuffix, enumKeyCasing, syntaxType, optionalType, arrayType, output, group, resolver, transformers = [] } = options;
210277
210285
  const root = path$2.resolve(config.root, config.output.path);
210278
210286
  const mode = getMode(path$2.resolve(root, output.path));
210279
210287
  if (!node.name) return;
@@ -210290,7 +210298,7 @@ const typeGenerator = defineGenerator({
210290
210298
  }).path
210291
210299
  }));
210292
210300
  const isEnumSchema = !!narrowSchema(node, schemaTypes.enum);
210293
- const typedName = ENUM_TYPES_WITH_KEY_SUFFIX.has(enumType) && isEnumSchema ? resolver.resolveEnumKeyTypedName(node) : resolver.resolveTypedName(node.name);
210301
+ const typedName = ENUM_TYPES_WITH_KEY_SUFFIX.has(enumType) && isEnumSchema ? resolver.resolveEnumKeyTypedName(node, enumTypeSuffix) : resolver.resolveTypedName(node.name);
210294
210302
  const type = {
210295
210303
  name: resolver.resolveName(node.name),
210296
210304
  typedName,
@@ -210329,6 +210337,7 @@ const typeGenerator = defineGenerator({
210329
210337
  typedName: type.typedName,
210330
210338
  node: transformedNode,
210331
210339
  enumType,
210340
+ enumTypeSuffix,
210332
210341
  enumKeyCasing,
210333
210342
  optionalType,
210334
210343
  arrayType,
@@ -210482,7 +210491,7 @@ const typeGeneratorLegacy = defineGenerator({
210482
210491
  type: "react",
210483
210492
  Operation({ node, adapter, options, config }) {
210484
210493
  var _a, _b, _c;
210485
- const { enumType, enumKeyCasing, optionalType, arrayType, syntaxType, paramsCasing, group, output, resolver, transformers = [] } = options;
210494
+ const { enumType, enumTypeSuffix, enumKeyCasing, optionalType, arrayType, syntaxType, paramsCasing, group, output, resolver, transformers = [] } = options;
210486
210495
  const root = path$2.resolve(config.root, config.output.path);
210487
210496
  const mode = getMode(path$2.resolve(root, output.path));
210488
210497
  const file = resolver.resolveFile({
@@ -210525,6 +210534,7 @@ const typeGeneratorLegacy = defineGenerator({
210525
210534
  node: transformedNode,
210526
210535
  description,
210527
210536
  enumType,
210537
+ enumTypeSuffix,
210528
210538
  enumKeyCasing,
210529
210539
  optionalType,
210530
210540
  arrayType,
@@ -210618,7 +210628,7 @@ const typeGeneratorLegacy = defineGenerator({
210618
210628
  });
210619
210629
  },
210620
210630
  Schema({ node, adapter, options, config }) {
210621
- const { enumType, enumKeyCasing, syntaxType, optionalType, arrayType, output, group, resolver, transformers = [] } = options;
210631
+ const { enumType, enumTypeSuffix, enumKeyCasing, syntaxType, optionalType, arrayType, output, group, resolver, transformers = [] } = options;
210622
210632
  const root = path$2.resolve(config.root, config.output.path);
210623
210633
  const mode = getMode(path$2.resolve(root, output.path));
210624
210634
  if (!node.name) return;
@@ -210635,7 +210645,7 @@ const typeGeneratorLegacy = defineGenerator({
210635
210645
  }).path
210636
210646
  }));
210637
210647
  const isEnumSchema = !!narrowSchema(node, schemaTypes.enum);
210638
- const typedName = ENUM_TYPES_WITH_KEY_SUFFIX.has(enumType) && isEnumSchema ? resolver.resolveEnumKeyTypedName(node) : resolver.resolveTypedName(node.name);
210648
+ const typedName = ENUM_TYPES_WITH_KEY_SUFFIX.has(enumType) && isEnumSchema ? resolver.resolveEnumKeyTypedName(node, enumTypeSuffix) : resolver.resolveTypedName(node.name);
210639
210649
  const type = {
210640
210650
  name: resolver.resolveName(node.name),
210641
210651
  typedName,
@@ -210674,6 +210684,7 @@ const typeGeneratorLegacy = defineGenerator({
210674
210684
  typedName: type.typedName,
210675
210685
  node: transformedNode,
210676
210686
  enumType,
210687
+ enumTypeSuffix,
210677
210688
  enumKeyCasing,
210678
210689
  optionalType,
210679
210690
  arrayType,
@@ -210709,7 +210720,7 @@ const pluginTs = createPlugin((options) => {
210709
210720
  const { output = {
210710
210721
  path: "types",
210711
210722
  barrelType: "named"
210712
- }, group, exclude = [], include, override = [], enumType = "asConst", enumKeyCasing = "none", optionalType = "questionToken", arrayType = "array", syntaxType = "type", paramsCasing, compatibilityPreset = "default", resolvers: userResolvers = [], transformers: userTransformers = [], generators: userGenerators = [] } = options;
210723
+ }, group, exclude = [], include, override = [], enumType = "asConst", enumTypeSuffix = "Key", enumKeyCasing = "none", optionalType = "questionToken", arrayType = "array", syntaxType = "type", paramsCasing, compatibilityPreset = "default", resolvers: userResolvers = [], transformers: userTransformers = [], generators: userGenerators = [] } = options;
210713
210724
  const { resolver, transformers, generators } = getPreset$1(compatibilityPreset, {
210714
210725
  resolvers: userResolvers,
210715
210726
  transformers: userTransformers,
@@ -210725,6 +210736,7 @@ const pluginTs = createPlugin((options) => {
210725
210736
  group,
210726
210737
  arrayType,
210727
210738
  enumType,
210739
+ enumTypeSuffix,
210728
210740
  enumKeyCasing,
210729
210741
  syntaxType,
210730
210742
  paramsCasing,
@@ -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.9/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.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/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.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/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.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/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.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/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-Dz4u5Mg4.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-bs_SwfEj.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-DsWHXZ_Z.js","../../../../../plugin-oas/dist/generators-hPE06pZB.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-DW4Q2yVq.js","../../../../../plugin-ts/dist/chunk--u3MIqq1.js","../../../../../plugin-ts/dist/builderTs-DausqHpc.js","../../../../../plugin-ts/dist/casing-BJHFg-zZ.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/printerTs-BgZucv4T.js","../../../../../plugin-ts/dist/Type-B6fo0gSk.js","../../../../../plugin-ts/dist/resolverTsLegacy-DLl854-P.js","../../../../../plugin-ts/dist/generators-ByK18qUn.js","../../../../../plugin-ts/dist/index.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-zod/dist/generators-maqx12yN.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-D6_PXE7w.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-BO5E__bN.js","../../../../../plugin-cypress/dist/generators-wVWvhp28.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-CRVgxJhG.js","../../../../../plugin-faker/dist/fakerGenerator-BviedIXa.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-kM1BVYP3.js","../../../../../plugin-mcp/dist/generators-C4q64yZV.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-Hy13rv6B.js","../../../../../plugin-msw/dist/generators-NHFKYOuW.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-BMhCuuyw.js","../../../../../plugin-react-query/dist/generators-17bLNXlW.js","../../../../../plugin-react-query/dist/index.js","../../../../../adapter-oas/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-C3Y0aR6S.js","../../../../../plugin-solid-query/dist/generators-CLDtrp-l.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-C4oLO5tl.js","../../../../../plugin-svelte-query/dist/generators-B7vvLmr4.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-BWYZa8xS.js","../../../../../plugin-swr/dist/generators-DaEpxxj8.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-FCfsweek.js","../../../../../plugin-vue-query/dist/generators-Cdudcnn7.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.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/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","formatMs","_a","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","__privateAdd","__privateGet","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","renderOperation","renderSchema","item","trimExtName","defaultResolver","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","node","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,58,115,116,117,118]}
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.9/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.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/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.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/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.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/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.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/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-Dz4u5Mg4.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-Ccu5imDC.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-DsWHXZ_Z.js","../../../../../plugin-oas/dist/generators-hPE06pZB.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-DW4Q2yVq.js","../../../../../plugin-ts/dist/chunk--u3MIqq1.js","../../../../../plugin-ts/dist/builderTs-DPpkJKd1.js","../../../../../plugin-ts/dist/casing-BJHFg-zZ.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/printerTs-CMBCOuqd.js","../../../../../plugin-ts/dist/Type-BpXxT4l_.js","../../../../../plugin-ts/dist/resolverTsLegacy-CPiqqsO6.js","../../../../../plugin-ts/dist/generators-DFDut8o-.js","../../../../../plugin-ts/dist/index.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-zod/dist/generators-maqx12yN.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-D6_PXE7w.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-BO5E__bN.js","../../../../../plugin-cypress/dist/generators-wVWvhp28.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-CRVgxJhG.js","../../../../../plugin-faker/dist/fakerGenerator-BviedIXa.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-kM1BVYP3.js","../../../../../plugin-mcp/dist/generators-C4q64yZV.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-Hy13rv6B.js","../../../../../plugin-msw/dist/generators-NHFKYOuW.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-BMhCuuyw.js","../../../../../plugin-react-query/dist/generators-17bLNXlW.js","../../../../../plugin-react-query/dist/index.js","../../../../../adapter-oas/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-C3Y0aR6S.js","../../../../../plugin-solid-query/dist/generators-CLDtrp-l.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-C4oLO5tl.js","../../../../../plugin-svelte-query/dist/generators-B7vvLmr4.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-BWYZa8xS.js","../../../../../plugin-swr/dist/generators-DaEpxxj8.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-FCfsweek.js","../../../../../plugin-vue-query/dist/generators-Cdudcnn7.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.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/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","formatMs","_a","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","__privateAdd","__privateGet","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","renderOperation","renderSchema","item","trimExtName","defaultResolver","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","node","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,58,115,116,117,118]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent-prod",
3
- "version": "5.0.0-alpha.21",
3
+ "version": "5.0.0-alpha.22",
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.21",
3
+ "version": "5.0.0-alpha.22",
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.20.0",
43
- "@kubb/core": "5.0.0-alpha.21",
44
- "@kubb/plugin-client": "5.0.0-alpha.21",
45
- "@kubb/plugin-cypress": "5.0.0-alpha.21",
46
- "@kubb/plugin-faker": "5.0.0-alpha.21",
47
- "@kubb/plugin-mcp": "5.0.0-alpha.21",
48
- "@kubb/plugin-msw": "5.0.0-alpha.21",
49
- "@kubb/plugin-oas": "5.0.0-alpha.21",
50
- "@kubb/plugin-react-query": "5.0.0-alpha.21",
51
- "@kubb/plugin-redoc": "5.0.0-alpha.21",
52
- "@kubb/plugin-solid-query": "5.0.0-alpha.21",
53
- "@kubb/plugin-svelte-query": "5.0.0-alpha.21",
54
- "@kubb/plugin-swr": "5.0.0-alpha.21",
55
- "@kubb/plugin-ts": "5.0.0-alpha.21",
56
- "@kubb/plugin-vue-query": "5.0.0-alpha.21",
57
- "@kubb/plugin-zod": "5.0.0-alpha.21"
43
+ "@kubb/core": "5.0.0-alpha.22",
44
+ "@kubb/plugin-client": "5.0.0-alpha.22",
45
+ "@kubb/plugin-cypress": "5.0.0-alpha.22",
46
+ "@kubb/plugin-faker": "5.0.0-alpha.22",
47
+ "@kubb/plugin-mcp": "5.0.0-alpha.22",
48
+ "@kubb/plugin-msw": "5.0.0-alpha.22",
49
+ "@kubb/plugin-oas": "5.0.0-alpha.22",
50
+ "@kubb/plugin-react-query": "5.0.0-alpha.22",
51
+ "@kubb/plugin-redoc": "5.0.0-alpha.22",
52
+ "@kubb/plugin-solid-query": "5.0.0-alpha.22",
53
+ "@kubb/plugin-svelte-query": "5.0.0-alpha.22",
54
+ "@kubb/plugin-swr": "5.0.0-alpha.22",
55
+ "@kubb/plugin-ts": "5.0.0-alpha.22",
56
+ "@kubb/plugin-vue-query": "5.0.0-alpha.22",
57
+ "@kubb/plugin-zod": "5.0.0-alpha.22"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/ws": "^8.18.1",