@kubb/agent 4.31.2 → 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.
package/.output/nitro.json
CHANGED
|
@@ -6073,7 +6073,7 @@ function tokenize(command) {
|
|
|
6073
6073
|
return args;
|
|
6074
6074
|
}
|
|
6075
6075
|
|
|
6076
|
-
var version = "4.31.
|
|
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.
|
|
6121
|
+
var version$1 = "4.31.3";
|
|
6122
6122
|
function getDiagnosticInfo() {
|
|
6123
6123
|
return {
|
|
6124
6124
|
nodeVersion: version$2,
|
|
@@ -215452,40 +215452,57 @@ const pluginFaker = definePlugin((options) => {
|
|
|
215452
215452
|
};
|
|
215453
215453
|
});
|
|
215454
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
|
+
}
|
|
215455
215479
|
function getParams$b({ schemas, paramsCasing }) {
|
|
215456
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
215457
|
-
const
|
|
215458
|
-
|
|
215459
|
-
|
|
215460
|
-
|
|
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
|
+
}, {});
|
|
215461
215491
|
return FunctionParams.factory({ data: {
|
|
215462
215492
|
mode: "object",
|
|
215463
215493
|
children: {
|
|
215464
|
-
...
|
|
215465
|
-
|
|
215466
|
-
|
|
215467
|
-
|
|
215468
|
-
if (isNullable(schemas.pathParams.schema)) if (isReference(schemas.pathParams)) suffix = ".unwrap().schema.unwrap().shape";
|
|
215469
|
-
else suffix = ".unwrap().shape";
|
|
215470
|
-
else if (isReference(schemas.pathParams)) suffix = ".schema.shape";
|
|
215471
|
-
param.value = `${(_b2 = schemas.pathParams) == null ? void 0 : _b2.name}${suffix}['${key}']`;
|
|
215472
|
-
}
|
|
215473
|
-
return {
|
|
215474
|
-
...acc,
|
|
215475
|
-
[key]: param
|
|
215476
|
-
};
|
|
215477
|
-
}, {}),
|
|
215478
|
-
data: ((_a = schemas.request) == null ? void 0 : _a.name) ? {
|
|
215479
|
-
value: (_b = schemas.request) == null ? void 0 : _b.name,
|
|
215480
|
-
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)
|
|
215481
215498
|
} : void 0,
|
|
215482
|
-
params: ((
|
|
215483
|
-
value: (
|
|
215484
|
-
optional: isOptional((
|
|
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)
|
|
215485
215502
|
} : void 0,
|
|
215486
|
-
headers: ((
|
|
215487
|
-
value: (
|
|
215488
|
-
optional: isOptional((
|
|
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)
|
|
215489
215506
|
} : void 0
|
|
215490
215507
|
}
|
|
215491
215508
|
} });
|
|
@@ -215507,18 +215524,29 @@ function Server({ name, serverName, serverVersion, paramsCasing, operations }) {
|
|
|
215507
215524
|
`
|
|
215508
215525
|
}),
|
|
215509
215526
|
operations.map(({ tool, mcp, zod }) => {
|
|
215510
|
-
var _a, _b, _c, _d;
|
|
215527
|
+
var _a, _b, _c, _d, _e;
|
|
215511
215528
|
const paramsClient = getParams$b({
|
|
215512
215529
|
schemas: zod.schemas,
|
|
215513
215530
|
paramsCasing
|
|
215514
215531
|
});
|
|
215515
|
-
|
|
215516
|
-
|
|
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()}) => {
|
|
215517
215543
|
return ${mcp.name}(${paramsClient.toObject()})
|
|
215518
215544
|
})
|
|
215519
215545
|
`;
|
|
215520
215546
|
return `
|
|
215521
|
-
server.
|
|
215547
|
+
server.registerTool(${JSON.stringify(tool.name)}, {
|
|
215548
|
+
${config},
|
|
215549
|
+
}, async () => {
|
|
215522
215550
|
return ${mcp.name}(${paramsClient.toObject()})
|
|
215523
215551
|
})
|
|
215524
215552
|
`;
|
|
@@ -215657,14 +215685,16 @@ const mcpGenerator = createReactGenerator({
|
|
|
215657
215685
|
type: 'text',
|
|
215658
215686
|
text: JSON.stringify(res.data)
|
|
215659
215687
|
}
|
|
215660
|
-
]
|
|
215688
|
+
],
|
|
215689
|
+
structuredContent: { data: res.data }
|
|
215661
215690
|
}`, options.client.dataReturnType === "full" && `return {
|
|
215662
215691
|
content: [
|
|
215663
215692
|
{
|
|
215664
215693
|
type: 'text',
|
|
215665
215694
|
text: JSON.stringify(res)
|
|
215666
215695
|
}
|
|
215667
|
-
]
|
|
215696
|
+
],
|
|
215697
|
+
structuredContent: { data: res.data }
|
|
215668
215698
|
}`]
|
|
215669
215699
|
})
|
|
215670
215700
|
]
|
|
@@ -215694,6 +215724,7 @@ const serverGenerator = createReactGenerator({
|
|
|
215694
215724
|
return {
|
|
215695
215725
|
tool: {
|
|
215696
215726
|
name: operation.getOperationId() || operation.getSummary() || `${operation.method.toUpperCase()} ${operation.path}`,
|
|
215727
|
+
title: operation.getSummary() || void 0,
|
|
215697
215728
|
description: operation.getDescription() || `Make a ${operation.method.toUpperCase()} request to ${operation.path}`
|
|
215698
215729
|
},
|
|
215699
215730
|
mcp: {
|
|
@@ -215721,7 +215752,7 @@ const serverGenerator = createReactGenerator({
|
|
|
215721
215752
|
};
|
|
215722
215753
|
});
|
|
215723
215754
|
const imports = operationsMapped.flatMap(({ mcp, zod }) => {
|
|
215724
|
-
var _a2, _b2, _c, _d;
|
|
215755
|
+
var _a2, _b2, _c, _d, _e;
|
|
215725
215756
|
return [/* @__PURE__ */ jsx(File.Import, {
|
|
215726
215757
|
name: [mcp.name],
|
|
215727
215758
|
root: file.path,
|
|
@@ -215731,7 +215762,8 @@ const serverGenerator = createReactGenerator({
|
|
|
215731
215762
|
(_a2 = zod.schemas.request) == null ? void 0 : _a2.name,
|
|
215732
215763
|
(_b2 = zod.schemas.pathParams) == null ? void 0 : _b2.name,
|
|
215733
215764
|
(_c = zod.schemas.queryParams) == null ? void 0 : _c.name,
|
|
215734
|
-
(_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
|
|
215735
215767
|
].filter(Boolean),
|
|
215736
215768
|
root: file.path,
|
|
215737
215769
|
path: zod.file.path
|
|
@@ -215755,6 +215787,10 @@ const serverGenerator = createReactGenerator({
|
|
|
215755
215787
|
name: ["McpServer"],
|
|
215756
215788
|
path: "@modelcontextprotocol/sdk/server/mcp"
|
|
215757
215789
|
}),
|
|
215790
|
+
/* @__PURE__ */ jsx(File.Import, {
|
|
215791
|
+
name: ["z"],
|
|
215792
|
+
path: "zod"
|
|
215793
|
+
}),
|
|
215758
215794
|
/* @__PURE__ */ jsx(File.Import, {
|
|
215759
215795
|
name: ["StdioServerTransport"],
|
|
215760
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","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
|
+
{"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]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent",
|
|
3
|
-
"version": "4.31.
|
|
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.
|
|
44
|
-
"@kubb/plugin-client": "4.31.
|
|
45
|
-
"@kubb/plugin-cypress": "4.31.
|
|
46
|
-
"@kubb/plugin-faker": "4.31.
|
|
47
|
-
"@kubb/plugin-mcp": "4.31.
|
|
48
|
-
"@kubb/plugin-msw": "4.31.
|
|
49
|
-
"@kubb/plugin-oas": "4.31.
|
|
50
|
-
"@kubb/plugin-react-query": "4.31.
|
|
51
|
-
"@kubb/plugin-redoc": "4.31.
|
|
52
|
-
"@kubb/plugin-solid-query": "4.31.
|
|
53
|
-
"@kubb/plugin-svelte-query": "4.31.
|
|
54
|
-
"@kubb/plugin-swr": "4.31.
|
|
55
|
-
"@kubb/plugin-ts": "4.31.
|
|
56
|
-
"@kubb/plugin-vue-query": "4.31.
|
|
57
|
-
"@kubb/plugin-zod": "4.31.
|
|
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",
|