@kubb/agent 5.0.0-alpha.3 → 5.0.0-alpha.4

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-17T18:23:14.764Z",
2
+ "date": "2026-03-17T22:29:23.213Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -4656,6 +4656,11 @@ const visitorDepths = {
4656
4656
  function narrowSchema(node, type) {
4657
4657
  return (node == null ? void 0 : node.type) === type ? node : void 0;
4658
4658
  }
4659
+ function isKind(kind) {
4660
+ return (node) => node.kind === kind;
4661
+ }
4662
+ const isOperationNode = isKind("Operation");
4663
+ const isSchemaNode = isKind("Schema");
4659
4664
  function definePrinter(build) {
4660
4665
  return (options) => {
4661
4666
  const { name, options: resolvedOptions, nodes } = build(options != null ? options : {});
@@ -5880,7 +5885,7 @@ const fsStorage = defineStorage(() => ({
5880
5885
  await clean(resolve(base));
5881
5886
  }
5882
5887
  }));
5883
- var version$1 = "5.0.0-alpha.3";
5888
+ var version$1 = "5.0.0-alpha.4";
5884
5889
  function getDiagnosticInfo() {
5885
5890
  return {
5886
5891
  nodeVersion: version$2,
@@ -6168,6 +6173,34 @@ function inputToAdapterSource(config) {
6168
6173
  path: resolve(config.root, config.input.path)
6169
6174
  };
6170
6175
  }
6176
+ function defineGenerator(generator) {
6177
+ if (generator.type === "react") return {
6178
+ version: "2",
6179
+ Operations() {
6180
+ return null;
6181
+ },
6182
+ Operation() {
6183
+ return null;
6184
+ },
6185
+ Schema() {
6186
+ return null;
6187
+ },
6188
+ ...generator
6189
+ };
6190
+ return {
6191
+ version: "2",
6192
+ async operations() {
6193
+ return [];
6194
+ },
6195
+ async operation() {
6196
+ return [];
6197
+ },
6198
+ async schema() {
6199
+ return [];
6200
+ },
6201
+ ...generator
6202
+ };
6203
+ }
6171
6204
  function definePlugin(build2) {
6172
6205
  return (options) => build2(options != null ? options : {});
6173
6206
  }
@@ -6614,8 +6647,55 @@ async function detectLinter() {
6614
6647
  "eslint"
6615
6648
  ]) if (await isLinterAvailable(linter)) return linter;
6616
6649
  }
6650
+ function matchesOperationPattern(node, type, pattern) {
6651
+ switch (type) {
6652
+ case "tag":
6653
+ return node.tags.some((tag) => !!tag.match(pattern));
6654
+ case "operationId":
6655
+ return !!node.operationId.match(pattern);
6656
+ case "path":
6657
+ return !!node.path.match(pattern);
6658
+ case "method":
6659
+ return !!node.method.toLowerCase().match(pattern);
6660
+ default:
6661
+ return false;
6662
+ }
6663
+ }
6664
+ function matchesSchemaPattern(node, type, pattern) {
6665
+ switch (type) {
6666
+ case "schemaName":
6667
+ return node.name ? !!node.name.match(pattern) : false;
6668
+ default:
6669
+ return null;
6670
+ }
6671
+ }
6672
+ function resolveOptions(node, { options, exclude = [], include, override = [] }) {
6673
+ var _a2, _b2;
6674
+ if (isOperationNode(node)) {
6675
+ if (exclude.some(({ type, pattern }) => matchesOperationPattern(node, type, pattern))) return null;
6676
+ if (include && !include.some(({ type, pattern }) => matchesOperationPattern(node, type, pattern))) return null;
6677
+ const overrideOptions = (_a2 = override.find(({ type, pattern }) => matchesOperationPattern(node, type, pattern))) == null ? void 0 : _a2.options;
6678
+ return {
6679
+ ...options,
6680
+ ...overrideOptions
6681
+ };
6682
+ }
6683
+ if (isSchemaNode(node)) {
6684
+ if (exclude.some(({ type, pattern }) => matchesSchemaPattern(node, type, pattern) === true)) return null;
6685
+ if (include) {
6686
+ const applicable = include.map(({ type, pattern }) => matchesSchemaPattern(node, type, pattern)).filter((r) => r !== null);
6687
+ if (applicable.length > 0 && !applicable.includes(true)) return null;
6688
+ }
6689
+ const overrideOptions = (_b2 = override.find(({ type, pattern }) => matchesSchemaPattern(node, type, pattern) === true)) == null ? void 0 : _b2.options;
6690
+ return {
6691
+ ...options,
6692
+ ...overrideOptions
6693
+ };
6694
+ }
6695
+ return options;
6696
+ }
6617
6697
 
6618
- var version = "5.0.0-alpha.3";
6698
+ var version = "5.0.0-alpha.4";
6619
6699
 
6620
6700
  function isCommandMessage(msg) {
6621
6701
  return msg.type === "command";
@@ -7849,11 +7929,11 @@ async function buildOperations(operationsOrNodes, options) {
7849
7929
  config,
7850
7930
  adapter,
7851
7931
  nodes: operationsOrNodes,
7852
- options: plugin.options
7932
+ options: options.options
7853
7933
  })
7854
7934
  }));
7855
7935
  }
7856
- await fabric.context.fileManager.upsert(...fabricChild.files);
7936
+ fabric.context.fileManager.upsert(...fabricChild.files);
7857
7937
  fabricChild.unmount();
7858
7938
  }
7859
7939
  function isBuildOperationV1Options(options) {
@@ -7893,11 +7973,11 @@ async function buildOperation(operationOrNode, options) {
7893
7973
  config,
7894
7974
  adapter,
7895
7975
  node: operationOrNode,
7896
- options: plugin.options
7976
+ options: options.options
7897
7977
  })
7898
7978
  }));
7899
7979
  }
7900
- await fabric.context.fileManager.upsert(...fabricChild.files);
7980
+ fabric.context.fileManager.upsert(...fabricChild.files);
7901
7981
  fabricChild.unmount();
7902
7982
  }
7903
7983
  function isBuildSchemaV1Options(options) {
@@ -7937,11 +8017,11 @@ async function buildSchema(schema, options) {
7937
8017
  config,
7938
8018
  adapter,
7939
8019
  node: schema,
7940
- options: plugin.options
8020
+ options: options.options
7941
8021
  })
7942
8022
  }));
7943
8023
  }
7944
- await fabric.context.fileManager.upsert(...fabricChild.files);
8024
+ fabric.context.fileManager.upsert(...fabricChild.files);
7945
8025
  fabricChild.unmount();
7946
8026
  }
7947
8027
  const GENERATOR_CONCURRENCY = 3;
@@ -9750,10 +9830,9 @@ ${operations.map(({ operation, name: methodName, typeSchemas, zodSchemas }) => g
9750
9830
  StaticClassClient.getParams = Client.getParams;
9751
9831
 
9752
9832
  function createGenerator(generator) {
9753
- var _a;
9754
9833
  return {
9755
9834
  type: "core",
9756
- version: (_a = generator.version) != null ? _a : "1",
9835
+ version: "1",
9757
9836
  async operations() {
9758
9837
  return [];
9759
9838
  },
@@ -9767,10 +9846,9 @@ function createGenerator(generator) {
9767
9846
  };
9768
9847
  }
9769
9848
  function createReactGenerator(generator) {
9770
- var _a;
9771
9849
  return {
9772
9850
  type: "react",
9773
- version: (_a = generator.version) != null ? _a : "1",
9851
+ version: "1",
9774
9852
  Operations() {
9775
9853
  return null;
9776
9854
  },
@@ -209826,7 +209904,6 @@ function printResponseSchema({ baseName, schemas, pluginManager, unknownType })
209826
209904
  }
209827
209905
  const typeGenerator$1 = createReactGenerator({
209828
209906
  name: "typescript",
209829
- version: "1",
209830
209907
  Operation({ operation, generator, plugin }) {
209831
209908
  const { options, options: { mapper, enumType, enumKeyCasing, syntaxType, optionalType, arrayType, unknownType, paramsCasing } } = plugin;
209832
209909
  const mode = useMode();
@@ -210254,9 +210331,9 @@ function Type({ name, typedName, node, keysToOmit, optionalType, arrayType, synt
210254
210331
  children: safePrint(...typeNodes)
210255
210332
  })] });
210256
210333
  }
210257
- const typeGenerator = createReactGenerator({
210334
+ const typeGenerator = defineGenerator({
210258
210335
  name: "typescript",
210259
- version: "2",
210336
+ type: "react",
210260
210337
  Operation({ node, adapter, options }) {
210261
210338
  const { enumType, enumKeyCasing, optionalType, arrayType, syntaxType } = options;
210262
210339
  const { plugin, mode, getFile, resolveName } = useKubb();
@@ -210487,32 +210564,54 @@ const pluginTs = definePlugin((options) => {
210487
210564
  await openInStudio({ ast: true });
210488
210565
  await walk(rootNode, {
210489
210566
  async schema(schemaNode) {
210490
- await generators.map(async (generator) => {
210491
- if (generator.type === "react" && generator.version === "2") await buildSchema(schemaNode, {
210492
- adapter,
210493
- config,
210494
- fabric,
210495
- Component: generator.Schema,
210496
- plugin,
210497
- pluginManager,
210498
- mode,
210499
- version: generator.version
210500
- });
210567
+ const writeTasks = generators.map(async (generator) => {
210568
+ if (generator.type === "react" && generator.version === "2") {
210569
+ const options2 = resolveOptions(schemaNode, {
210570
+ options: plugin.options,
210571
+ exclude,
210572
+ include,
210573
+ override
210574
+ });
210575
+ if (options2 === null) return;
210576
+ await buildSchema(schemaNode, {
210577
+ options: options2,
210578
+ adapter,
210579
+ config,
210580
+ fabric,
210581
+ Component: generator.Schema,
210582
+ plugin,
210583
+ pluginManager,
210584
+ mode,
210585
+ version: generator.version
210586
+ });
210587
+ }
210501
210588
  });
210589
+ await Promise.all(writeTasks);
210502
210590
  },
210503
210591
  async operation(operationNode) {
210504
- await generators.map(async (generator) => {
210505
- if (generator.type === "react" && generator.version === "2") await buildOperation(operationNode, {
210506
- adapter,
210507
- config,
210508
- fabric,
210509
- Component: generator.Operation,
210510
- plugin,
210511
- pluginManager,
210512
- mode,
210513
- version: generator.version
210514
- });
210592
+ const writeTasks = generators.map(async (generator) => {
210593
+ if (generator.type === "react" && generator.version === "2") {
210594
+ const options2 = resolveOptions(operationNode, {
210595
+ options: plugin.options,
210596
+ exclude,
210597
+ include,
210598
+ override
210599
+ });
210600
+ if (options2 === null) return;
210601
+ await buildOperation(operationNode, {
210602
+ options: options2,
210603
+ adapter,
210604
+ config,
210605
+ fabric,
210606
+ Component: generator.Operation,
210607
+ plugin,
210608
+ pluginManager,
210609
+ mode,
210610
+ version: generator.version
210611
+ });
210612
+ }
210515
210613
  });
210614
+ await Promise.all(writeTasks);
210516
210615
  }
210517
210616
  }, { depth: "shallow" });
210518
210617
  return;
@@ -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-CSL-jLGQ.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-CCn9g9eF.js","../../../../../plugin-oas/dist/generators-B8HiBWvT.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-CRjwjdyE.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-DmwgRHK8.js","../../../../../plugin-zod/dist/generators-CRKtFRi1.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-C2jT7XCH.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-BImGfp9Q.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-BuATcfwD.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-KWLMg0Lm.js","../../../../../plugin-mcp/dist/generators-BFPqVSmg.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-DgtTZkWX.js","../../../../../plugin-msw/dist/generators-Cs46KGm7.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-BZn1n6rK.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-5ZZQ5Oz3.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-BjJF5K9h.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-DRDGvgXG.js","../../../../../plugin-swr/dist/generators-D0W2bxXt.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-BzA136hL.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","nodes","toCamelOrPascal","applyToFileParts","camelCase","path","readFile","writeFile","isValidVarName","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","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.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-BehWL7WM.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-CCn9g9eF.js","../../../../../plugin-oas/dist/generators-DxN9Dqyi.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-CRjwjdyE.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-Bgm8TNUt.js","../../../../../plugin-zod/dist/generators-CRKtFRi1.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-C2jT7XCH.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-BImGfp9Q.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-BuATcfwD.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-KWLMg0Lm.js","../../../../../plugin-mcp/dist/generators-BFPqVSmg.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-DgtTZkWX.js","../../../../../plugin-msw/dist/generators-Cs46KGm7.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-BZn1n6rK.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-5ZZQ5Oz3.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-BjJF5K9h.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-DRDGvgXG.js","../../../../../plugin-swr/dist/generators-D0W2bxXt.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-BzA136hL.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","nodes","toCamelOrPascal","applyToFileParts","camelCase","path","readFile","writeFile","isValidVarName","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","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,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent-prod",
3
- "version": "5.0.0-alpha.3",
3
+ "version": "5.0.0-alpha.4",
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.3",
3
+ "version": "5.0.0-alpha.4",
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.3",
44
- "@kubb/plugin-client": "5.0.0-alpha.3",
45
- "@kubb/plugin-cypress": "5.0.0-alpha.3",
46
- "@kubb/plugin-faker": "5.0.0-alpha.3",
47
- "@kubb/plugin-mcp": "5.0.0-alpha.3",
48
- "@kubb/plugin-msw": "5.0.0-alpha.3",
49
- "@kubb/plugin-oas": "5.0.0-alpha.3",
50
- "@kubb/plugin-react-query": "5.0.0-alpha.3",
51
- "@kubb/plugin-redoc": "5.0.0-alpha.3",
52
- "@kubb/plugin-solid-query": "5.0.0-alpha.3",
53
- "@kubb/plugin-svelte-query": "5.0.0-alpha.3",
54
- "@kubb/plugin-swr": "5.0.0-alpha.3",
55
- "@kubb/plugin-ts": "5.0.0-alpha.3",
56
- "@kubb/plugin-vue-query": "5.0.0-alpha.3",
57
- "@kubb/plugin-zod": "5.0.0-alpha.3"
43
+ "@kubb/core": "5.0.0-alpha.4",
44
+ "@kubb/plugin-client": "5.0.0-alpha.4",
45
+ "@kubb/plugin-cypress": "5.0.0-alpha.4",
46
+ "@kubb/plugin-faker": "5.0.0-alpha.4",
47
+ "@kubb/plugin-mcp": "5.0.0-alpha.4",
48
+ "@kubb/plugin-msw": "5.0.0-alpha.4",
49
+ "@kubb/plugin-oas": "5.0.0-alpha.4",
50
+ "@kubb/plugin-react-query": "5.0.0-alpha.4",
51
+ "@kubb/plugin-redoc": "5.0.0-alpha.4",
52
+ "@kubb/plugin-solid-query": "5.0.0-alpha.4",
53
+ "@kubb/plugin-svelte-query": "5.0.0-alpha.4",
54
+ "@kubb/plugin-swr": "5.0.0-alpha.4",
55
+ "@kubb/plugin-ts": "5.0.0-alpha.4",
56
+ "@kubb/plugin-vue-query": "5.0.0-alpha.4",
57
+ "@kubb/plugin-zod": "5.0.0-alpha.4"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/ws": "^8.18.1",