@kubb/agent 4.31.1 → 4.31.3

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-03T12:49:58.852Z",
2
+ "date": "2026-03-03T18:01:32.939Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -6073,7 +6073,7 @@ function tokenize(command) {
6073
6073
  return args;
6074
6074
  }
6075
6075
 
6076
- var version = "4.31.1";
6076
+ var version = "4.31.3";
6077
6077
 
6078
6078
  function isCommandMessage(msg) {
6079
6079
  return msg.type === "command";
@@ -6118,7 +6118,7 @@ var BaseGenerator = (_a$3 = class {
6118
6118
  function isInputPath(config) {
6119
6119
  return typeof (config == null ? void 0 : config.input) === "object" && config.input !== null && "path" in config.input;
6120
6120
  }
6121
- var version$1 = "4.31.1";
6121
+ var version$1 = "4.31.3";
6122
6122
  function getDiagnosticInfo() {
6123
6123
  return {
6124
6124
  nodeVersion: version$2,
@@ -10932,9 +10932,75 @@ function getDefaultValue(schema) {
10932
10932
  }
10933
10933
  if (schema.type === "object" || schema.properties) return "{}";
10934
10934
  }
10935
+ function collectExternalFilePaths(obj, files) {
10936
+ if (!obj || typeof obj !== "object") return;
10937
+ if (Array.isArray(obj)) {
10938
+ for (const item of obj) collectExternalFilePaths(item, files);
10939
+ return;
10940
+ }
10941
+ for (const [key, value] of Object.entries(obj)) if (key === "$ref" && typeof value === "string") {
10942
+ const hashIdx = value.indexOf("#");
10943
+ const filePart = hashIdx > 0 ? value.slice(0, hashIdx) : hashIdx === -1 ? value : "";
10944
+ if (filePart && !filePart.startsWith("http://") && !filePart.startsWith("https://")) files.add(filePart);
10945
+ } else collectExternalFilePaths(value, files);
10946
+ }
10947
+ function replaceExternalRefsInPlace(obj, externalFile) {
10948
+ if (!obj || typeof obj !== "object") return;
10949
+ if (Array.isArray(obj)) {
10950
+ for (const item of obj) replaceExternalRefsInPlace(item, externalFile);
10951
+ return;
10952
+ }
10953
+ const record = obj;
10954
+ for (const key of Object.keys(record)) {
10955
+ const value = record[key];
10956
+ if (key === "$ref" && typeof value === "string" && value.startsWith(`${externalFile}#`)) record[key] = value.slice(externalFile.length);
10957
+ else if (value && typeof value === "object") replaceExternalRefsInPlace(value, externalFile);
10958
+ }
10959
+ }
10960
+ function mergeExternalFileComponents(mainFilePath) {
10961
+ var _a2, _b;
10962
+ let mainContent;
10963
+ try {
10964
+ mainContent = fs$1.readFileSync(mainFilePath, "utf-8");
10965
+ } catch {
10966
+ return null;
10967
+ }
10968
+ const mainDoc = import_yaml.parse(mainContent);
10969
+ if (!mainDoc || typeof mainDoc !== "object") return null;
10970
+ const mainDir = path$2.dirname(mainFilePath);
10971
+ const externalFiles = /* @__PURE__ */ new Set();
10972
+ collectExternalFilePaths(mainDoc, externalFiles);
10973
+ if (externalFiles.size === 0) return null;
10974
+ let hasMergedComponents = false;
10975
+ for (const externalFile of externalFiles) {
10976
+ const externalFilePath = path$2.resolve(mainDir, externalFile);
10977
+ let externalContent;
10978
+ try {
10979
+ externalContent = fs$1.readFileSync(externalFilePath, "utf-8");
10980
+ } catch {
10981
+ continue;
10982
+ }
10983
+ const externalDoc = import_yaml.parse(externalContent);
10984
+ if (!(externalDoc == null ? void 0 : externalDoc.components) || typeof externalDoc.components !== "object") continue;
10985
+ const mainComponents = (_a2 = mainDoc.components) != null ? _a2 : {};
10986
+ mainDoc.components = mainComponents;
10987
+ for (const [componentType, components] of Object.entries(externalDoc.components)) {
10988
+ if (!components || typeof components !== "object") continue;
10989
+ mainComponents[componentType] = {
10990
+ ...components,
10991
+ ...(_b = mainComponents[componentType]) != null ? _b : {}
10992
+ };
10993
+ hasMergedComponents = true;
10994
+ }
10995
+ }
10996
+ if (!hasMergedComponents) return null;
10997
+ for (const externalFile of externalFiles) replaceExternalRefsInPlace(mainDoc, externalFile);
10998
+ return mainDoc;
10999
+ }
10935
11000
  async function parse$3(pathOrApi, { oasClass = Oas, enablePaths = true } = {}) {
11001
+ var _a2;
10936
11002
  if (typeof pathOrApi === "string" && !pathOrApi.match(/\n/) && !pathOrApi.match(/^\s*\{/) && enablePaths) try {
10937
- return parse$3(await bundle(pathOrApi), {
11003
+ return parse$3(await bundle((_a2 = mergeExternalFileComponents(pathOrApi)) != null ? _a2 : pathOrApi), {
10938
11004
  oasClass,
10939
11005
  enablePaths
10940
11006
  });
@@ -215386,40 +215452,57 @@ const pluginFaker = definePlugin((options) => {
215386
215452
  };
215387
215453
  });
215388
215454
 
215455
+ function zodExprFromOasSchema(schema) {
215456
+ const types = Array.isArray(schema.type) ? schema.type : [schema.type];
215457
+ const baseType = types.find((t) => t && t !== "null");
215458
+ const isNullableType = types.includes("null");
215459
+ let expr;
215460
+ switch (baseType) {
215461
+ case "integer":
215462
+ expr = "z.coerce.number()";
215463
+ break;
215464
+ case "number":
215465
+ expr = "z.number()";
215466
+ break;
215467
+ case "boolean":
215468
+ expr = "z.boolean()";
215469
+ break;
215470
+ case "array":
215471
+ expr = "z.array(z.unknown())";
215472
+ break;
215473
+ default:
215474
+ expr = "z.string()";
215475
+ }
215476
+ if (isNullableType) expr = `${expr}.nullable()`;
215477
+ return expr;
215478
+ }
215389
215479
  function getParams$b({ schemas, paramsCasing }) {
215390
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
215391
- const pathParams = getPathParams(schemas.pathParams, {
215392
- typed: false,
215393
- casing: paramsCasing
215394
- });
215480
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
215481
+ const pathParamProperties = (_c = (_b = (_a = schemas.pathParams) == null ? void 0 : _a.schema) == null ? void 0 : _b.properties) != null ? _c : {};
215482
+ const requiredFields = Array.isArray((_e = (_d = schemas.pathParams) == null ? void 0 : _d.schema) == null ? void 0 : _e.required) ? schemas.pathParams.schema.required : [];
215483
+ const pathParamEntries = Object.entries(pathParamProperties).reduce((acc, [originalKey, propSchema]) => {
215484
+ const key = paramsCasing === "camelcase" || !isValidVarName(originalKey) ? camelCase(originalKey) : originalKey;
215485
+ acc[key] = {
215486
+ value: zodExprFromOasSchema(propSchema),
215487
+ optional: !requiredFields.includes(originalKey)
215488
+ };
215489
+ return acc;
215490
+ }, {});
215395
215491
  return FunctionParams.factory({ data: {
215396
215492
  mode: "object",
215397
215493
  children: {
215398
- ...Object.entries(pathParams).reduce((acc, [key, param]) => {
215399
- var _a2, _b2;
215400
- if (param && ((_a2 = schemas.pathParams) == null ? void 0 : _a2.name)) {
215401
- let suffix = ".shape";
215402
- if (isNullable(schemas.pathParams.schema)) if (isReference(schemas.pathParams)) suffix = ".unwrap().schema.unwrap().shape";
215403
- else suffix = ".unwrap().shape";
215404
- else if (isReference(schemas.pathParams)) suffix = ".schema.shape";
215405
- param.value = `${(_b2 = schemas.pathParams) == null ? void 0 : _b2.name}${suffix}['${key}']`;
215406
- }
215407
- return {
215408
- ...acc,
215409
- [key]: param
215410
- };
215411
- }, {}),
215412
- data: ((_a = schemas.request) == null ? void 0 : _a.name) ? {
215413
- value: (_b = schemas.request) == null ? void 0 : _b.name,
215414
- optional: isOptional((_c = schemas.request) == null ? void 0 : _c.schema)
215494
+ ...pathParamEntries,
215495
+ data: ((_f = schemas.request) == null ? void 0 : _f.name) ? {
215496
+ value: (_g = schemas.request) == null ? void 0 : _g.name,
215497
+ optional: isOptional((_h = schemas.request) == null ? void 0 : _h.schema)
215415
215498
  } : void 0,
215416
- params: ((_d = schemas.queryParams) == null ? void 0 : _d.name) ? {
215417
- value: (_e = schemas.queryParams) == null ? void 0 : _e.name,
215418
- optional: isOptional((_f = schemas.queryParams) == null ? void 0 : _f.schema)
215499
+ params: ((_i = schemas.queryParams) == null ? void 0 : _i.name) ? {
215500
+ value: (_j = schemas.queryParams) == null ? void 0 : _j.name,
215501
+ optional: isOptional((_k = schemas.queryParams) == null ? void 0 : _k.schema)
215419
215502
  } : void 0,
215420
- headers: ((_g = schemas.headerParams) == null ? void 0 : _g.name) ? {
215421
- value: (_h = schemas.headerParams) == null ? void 0 : _h.name,
215422
- optional: isOptional((_i = schemas.headerParams) == null ? void 0 : _i.schema)
215503
+ headers: ((_l = schemas.headerParams) == null ? void 0 : _l.name) ? {
215504
+ value: (_m = schemas.headerParams) == null ? void 0 : _m.name,
215505
+ optional: isOptional((_n = schemas.headerParams) == null ? void 0 : _n.schema)
215423
215506
  } : void 0
215424
215507
  }
215425
215508
  } });
@@ -215441,18 +215524,29 @@ function Server({ name, serverName, serverVersion, paramsCasing, operations }) {
215441
215524
  `
215442
215525
  }),
215443
215526
  operations.map(({ tool, mcp, zod }) => {
215444
- var _a, _b, _c, _d;
215527
+ var _a, _b, _c, _d, _e;
215445
215528
  const paramsClient = getParams$b({
215446
215529
  schemas: zod.schemas,
215447
215530
  paramsCasing
215448
215531
  });
215449
- if (((_a = zod.schemas.request) == null ? void 0 : _a.name) || ((_b = zod.schemas.headerParams) == null ? void 0 : _b.name) || ((_c = zod.schemas.queryParams) == null ? void 0 : _c.name) || ((_d = zod.schemas.pathParams) == null ? void 0 : _d.name)) return `
215450
- server.tool(${JSON.stringify(tool.name)}, ${JSON.stringify(tool.description)}, ${paramsClient.toObjectValue()}, async (${paramsClient.toObject()}) => {
215532
+ const outputSchema = (_a = zod.schemas.response) == null ? void 0 : _a.name;
215533
+ const config = [
215534
+ tool.title ? `title: ${JSON.stringify(tool.title)}` : null,
215535
+ `description: ${JSON.stringify(tool.description)}`,
215536
+ outputSchema ? `outputSchema: { data: ${outputSchema} }` : null
215537
+ ].filter(Boolean).join(",\n ");
215538
+ if (((_b = zod.schemas.request) == null ? void 0 : _b.name) || ((_c = zod.schemas.headerParams) == null ? void 0 : _c.name) || ((_d = zod.schemas.queryParams) == null ? void 0 : _d.name) || ((_e = zod.schemas.pathParams) == null ? void 0 : _e.name)) return `
215539
+ server.registerTool(${JSON.stringify(tool.name)}, {
215540
+ ${config},
215541
+ inputSchema: ${paramsClient.toObjectValue()},
215542
+ }, async (${paramsClient.toObject()}) => {
215451
215543
  return ${mcp.name}(${paramsClient.toObject()})
215452
215544
  })
215453
215545
  `;
215454
215546
  return `
215455
- server.tool(${JSON.stringify(tool.name)}, ${JSON.stringify(tool.description)}, async () => {
215547
+ server.registerTool(${JSON.stringify(tool.name)}, {
215548
+ ${config},
215549
+ }, async () => {
215456
215550
  return ${mcp.name}(${paramsClient.toObject()})
215457
215551
  })
215458
215552
  `;
@@ -215591,14 +215685,16 @@ const mcpGenerator = createReactGenerator({
215591
215685
  type: 'text',
215592
215686
  text: JSON.stringify(res.data)
215593
215687
  }
215594
- ]
215688
+ ],
215689
+ structuredContent: { data: res.data }
215595
215690
  }`, options.client.dataReturnType === "full" && `return {
215596
215691
  content: [
215597
215692
  {
215598
215693
  type: 'text',
215599
215694
  text: JSON.stringify(res)
215600
215695
  }
215601
- ]
215696
+ ],
215697
+ structuredContent: { data: res.data }
215602
215698
  }`]
215603
215699
  })
215604
215700
  ]
@@ -215628,6 +215724,7 @@ const serverGenerator = createReactGenerator({
215628
215724
  return {
215629
215725
  tool: {
215630
215726
  name: operation.getOperationId() || operation.getSummary() || `${operation.method.toUpperCase()} ${operation.path}`,
215727
+ title: operation.getSummary() || void 0,
215631
215728
  description: operation.getDescription() || `Make a ${operation.method.toUpperCase()} request to ${operation.path}`
215632
215729
  },
215633
215730
  mcp: {
@@ -215655,7 +215752,7 @@ const serverGenerator = createReactGenerator({
215655
215752
  };
215656
215753
  });
215657
215754
  const imports = operationsMapped.flatMap(({ mcp, zod }) => {
215658
- var _a2, _b2, _c, _d;
215755
+ var _a2, _b2, _c, _d, _e;
215659
215756
  return [/* @__PURE__ */ jsx(File.Import, {
215660
215757
  name: [mcp.name],
215661
215758
  root: file.path,
@@ -215665,7 +215762,8 @@ const serverGenerator = createReactGenerator({
215665
215762
  (_a2 = zod.schemas.request) == null ? void 0 : _a2.name,
215666
215763
  (_b2 = zod.schemas.pathParams) == null ? void 0 : _b2.name,
215667
215764
  (_c = zod.schemas.queryParams) == null ? void 0 : _c.name,
215668
- (_d = zod.schemas.headerParams) == null ? void 0 : _d.name
215765
+ (_d = zod.schemas.headerParams) == null ? void 0 : _d.name,
215766
+ (_e = zod.schemas.response) == null ? void 0 : _e.name
215669
215767
  ].filter(Boolean),
215670
215768
  root: file.path,
215671
215769
  path: zod.file.path
@@ -215689,6 +215787,10 @@ const serverGenerator = createReactGenerator({
215689
215787
  name: ["McpServer"],
215690
215788
  path: "@modelcontextprotocol/sdk/server/mcp"
215691
215789
  }),
215790
+ /* @__PURE__ */ jsx(File.Import, {
215791
+ name: ["z"],
215792
+ path: "zod"
215793
+ }),
215692
215794
  /* @__PURE__ */ jsx(File.Import, {
215693
215795
  name: ["StdioServerTransport"],
215694
215796
  path: "@modelcontextprotocol/sdk/server/stdio"
@@ -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.6/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.6/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.6/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.6/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.6/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.6/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.6/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.6/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.6/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.6/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.6/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../server/utils/maskedString.ts","../../../../server/plugins/heartbeat.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../core/dist/write-pEo2oQGI.js","../../../../../core/dist/toRegExp-DdJ1Kgbf.js","../../../../../core/dist/packageManager-B6NiaZeW.js","../../../../../core/dist/utils.js","../../../../server/types/agent.ts","../../../../../core/dist/index.js","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk-DKWOrOAv.js","../../../../../plugin-oas/dist/SchemaMapper-eQhTeFim.js","../../../../../core/dist/transformers.js","../../../../../oas/dist/chunk-Dxrv8gPv.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-CJhU4lwJ.js","../../../../../plugin-oas/dist/getFooter-_DD1dfMI.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-DGIMTS_f.js","../../../../../plugin-oas/dist/jsonGenerator-Df2dxdof.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/Zod-GzH2I46C.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/Type-BoBgmIn8.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-DxNrETHn.js","../../../../../plugin-zod/dist/zodGenerator-DomjELrZ.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/staticClassClientGenerator-BUGBMkNO.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/Request-DOzOQGgb.js","../../../../../plugin-cypress/dist/cypressGenerator-D7trA-II.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/Faker-DNAO-21W.js","../../../../../plugin-faker/dist/fakerGenerator-1hLpeTbP.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-D3kNei96.js","../../../../../plugin-mcp/dist/serverGenerator-DfxZTxke.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/Response-rq32ZXGn.js","../../../../../plugin-msw/dist/mswGenerator-Tg2NjhsD.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-react-query/dist/SuspenseQuery-BJRjCVPn.js","../../../../../plugin-react-query/dist/suspenseQueryGenerator-X-e7npGw.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-solid-query/dist/Query-D_dWu7Ln.js","../../../../../plugin-solid-query/dist/queryGenerator-fZ_tgape.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-svelte-query/dist/Query-BDLjTz45.js","../../../../../plugin-svelte-query/dist/queryGenerator-C19QRAQW.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk-DKWOrOAv.js","../../../../../plugin-swr/dist/Query-DDIFmxNc.js","../../../../../plugin-swr/dist/queryGenerator-96wr4Uxr.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-vue-query/dist/Query-DVuOyLhX.js","../../../../../plugin-vue-query/dist/queryGenerator-CHpHlXsx.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.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.6/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.6/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.6/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.6/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","process","readFile","writeFile","value","_head","_tail","_size","_a","_options","_b","Node","__publicField","Queue","__privateAdd","__privateGet","__privateSet","__privateWrapper","pLimit","validateConcurrency","path","__privateMethod","performance","_c","_d","_e","_f","item","trimExtName","version","build","os","error","__defProp","__name","v","d","b","__assign","o","exports","Kind","YAMLException","string","ScalarType","Comments","isPlainObject","parse","schema","schemas","transformers","normalizedSchema","name","min","max","getParams$1","Function","getParams","Operations","validate","oas","options","Type","siblings","require","global","modifiers","questionToken","propertyName","operationsGenerator","source","baseURL","source$2","Response","getTransformer$1","QueryKey","getParams$9","QueryOptions","getParams$8","InfiniteQuery","getParams$7","InfiniteQueryOptions","getParams$6","getTransformer","MutationKey","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","fs","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","params","generics","index","maskedSessionKey","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,60,112,113,114,115]}
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.6/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.6/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.6/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.6/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.6/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.6/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.6/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.6/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.6/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.6/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.6/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../server/utils/maskedString.ts","../../../../server/plugins/heartbeat.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../core/dist/write-pEo2oQGI.js","../../../../../core/dist/toRegExp-DdJ1Kgbf.js","../../../../../core/dist/packageManager-B6NiaZeW.js","../../../../../core/dist/utils.js","../../../../server/types/agent.ts","../../../../../core/dist/index.js","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk-DKWOrOAv.js","../../../../../plugin-oas/dist/SchemaMapper-eQhTeFim.js","../../../../../core/dist/transformers.js","../../../../../oas/dist/chunk-Dxrv8gPv.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-CJhU4lwJ.js","../../../../../plugin-oas/dist/getFooter-_DD1dfMI.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-DGIMTS_f.js","../../../../../plugin-oas/dist/jsonGenerator-Df2dxdof.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/Zod-GzH2I46C.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/Type-BoBgmIn8.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-DxNrETHn.js","../../../../../plugin-zod/dist/zodGenerator-DomjELrZ.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/staticClassClientGenerator-BUGBMkNO.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/Request-DOzOQGgb.js","../../../../../plugin-cypress/dist/cypressGenerator-D7trA-II.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/Faker-DNAO-21W.js","../../../../../plugin-faker/dist/fakerGenerator-1hLpeTbP.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-D45Pl-Hd.js","../../../../../plugin-mcp/dist/serverGenerator-TERvEwnw.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/Response-rq32ZXGn.js","../../../../../plugin-msw/dist/mswGenerator-Tg2NjhsD.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-react-query/dist/SuspenseQuery-BJRjCVPn.js","../../../../../plugin-react-query/dist/suspenseQueryGenerator-X-e7npGw.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-solid-query/dist/Query-D_dWu7Ln.js","../../../../../plugin-solid-query/dist/queryGenerator-fZ_tgape.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-svelte-query/dist/Query-BDLjTz45.js","../../../../../plugin-svelte-query/dist/queryGenerator-C19QRAQW.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk-DKWOrOAv.js","../../../../../plugin-swr/dist/Query-DDIFmxNc.js","../../../../../plugin-swr/dist/queryGenerator-96wr4Uxr.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-vue-query/dist/Query-DVuOyLhX.js","../../../../../plugin-vue-query/dist/queryGenerator-CHpHlXsx.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.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.6/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.6/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.6/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.6/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","process","readFile","writeFile","value","_head","_tail","_size","_a","_options","_b","Node","__publicField","Queue","__privateAdd","__privateGet","__privateSet","__privateWrapper","pLimit","validateConcurrency","path","__privateMethod","performance","_c","_d","_e","_f","item","trimExtName","version","build","os","error","__defProp","__name","v","d","b","__assign","o","exports","Kind","YAMLException","string","ScalarType","Comments","isPlainObject","fs","parse","schema","schemas","transformers","normalizedSchema","name","min","max","getParams$1","Function","getParams","Operations","validate","oas","options","Type","siblings","require","global","modifiers","questionToken","propertyName","operationsGenerator","source","baseURL","source$2","Response","getTransformer$1","QueryKey","getParams$9","QueryOptions","getParams$8","InfiniteQuery","getParams$7","InfiniteQueryOptions","getParams$6","getTransformer","MutationKey","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","params","generics","index","maskedSessionKey","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,60,112,113,114,115]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent-prod",
3
- "version": "4.31.1",
3
+ "version": "4.31.3",
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": "4.31.1",
3
+ "version": "4.31.3",
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.2",
41
41
  "unstorage": "^1.17.4",
42
42
  "ws": "^8.19.0",
43
- "@kubb/core": "4.31.1",
44
- "@kubb/plugin-client": "4.31.1",
45
- "@kubb/plugin-cypress": "4.31.1",
46
- "@kubb/plugin-faker": "4.31.1",
47
- "@kubb/plugin-mcp": "4.31.1",
48
- "@kubb/plugin-msw": "4.31.1",
49
- "@kubb/plugin-oas": "4.31.1",
50
- "@kubb/plugin-react-query": "4.31.1",
51
- "@kubb/plugin-redoc": "4.31.1",
52
- "@kubb/plugin-solid-query": "4.31.1",
53
- "@kubb/plugin-svelte-query": "4.31.1",
54
- "@kubb/plugin-swr": "4.31.1",
55
- "@kubb/plugin-ts": "4.31.1",
56
- "@kubb/plugin-vue-query": "4.31.1",
57
- "@kubb/plugin-zod": "4.31.1"
43
+ "@kubb/core": "4.31.3",
44
+ "@kubb/plugin-client": "4.31.3",
45
+ "@kubb/plugin-cypress": "4.31.3",
46
+ "@kubb/plugin-faker": "4.31.3",
47
+ "@kubb/plugin-mcp": "4.31.3",
48
+ "@kubb/plugin-msw": "4.31.3",
49
+ "@kubb/plugin-oas": "4.31.3",
50
+ "@kubb/plugin-react-query": "4.31.3",
51
+ "@kubb/plugin-redoc": "4.31.3",
52
+ "@kubb/plugin-solid-query": "4.31.3",
53
+ "@kubb/plugin-svelte-query": "4.31.3",
54
+ "@kubb/plugin-swr": "4.31.3",
55
+ "@kubb/plugin-ts": "4.31.3",
56
+ "@kubb/plugin-vue-query": "4.31.3",
57
+ "@kubb/plugin-zod": "4.31.3"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/ws": "^8.18.1",