@kubb/agent 5.0.0-alpha.16 → 5.0.0-alpha.17
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
|
@@ -4654,79 +4654,8 @@ async function disconnect({ sessionId, token, studioUrl }) {
|
|
|
4654
4654
|
const visitorDepths = {
|
|
4655
4655
|
deep: "deep"
|
|
4656
4656
|
};
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
properties: [],
|
|
4660
|
-
...props,
|
|
4661
|
-
kind: "Schema"
|
|
4662
|
-
};
|
|
4663
|
-
return {
|
|
4664
|
-
...props,
|
|
4665
|
-
kind: "Schema"
|
|
4666
|
-
};
|
|
4667
|
-
}
|
|
4668
|
-
function syncPropertySchema(required, schema) {
|
|
4669
|
-
var _a;
|
|
4670
|
-
const nullable = (_a = schema.nullable) != null ? _a : false;
|
|
4671
|
-
return {
|
|
4672
|
-
...schema,
|
|
4673
|
-
optional: !required && !nullable ? true : void 0,
|
|
4674
|
-
nullish: !required && nullable ? true : void 0
|
|
4675
|
-
};
|
|
4676
|
-
}
|
|
4677
|
-
function createProperty(props) {
|
|
4678
|
-
var _a;
|
|
4679
|
-
const required = (_a = props.required) != null ? _a : false;
|
|
4680
|
-
return {
|
|
4681
|
-
...props,
|
|
4682
|
-
kind: "Property",
|
|
4683
|
-
required,
|
|
4684
|
-
schema: syncPropertySchema(required, props.schema)
|
|
4685
|
-
};
|
|
4686
|
-
}
|
|
4687
|
-
function createParameter(props) {
|
|
4688
|
-
var _a;
|
|
4689
|
-
const required = (_a = props.required) != null ? _a : false;
|
|
4690
|
-
return {
|
|
4691
|
-
...props,
|
|
4692
|
-
kind: "Parameter",
|
|
4693
|
-
required,
|
|
4694
|
-
schema: syncPropertySchema(required, props.schema)
|
|
4695
|
-
};
|
|
4696
|
-
}
|
|
4697
|
-
function definePrinter(build) {
|
|
4698
|
-
return createPrinterFactory((node) => node.type)(build);
|
|
4699
|
-
}
|
|
4700
|
-
function createPrinterFactory(getKey) {
|
|
4701
|
-
return function(build) {
|
|
4702
|
-
return (options) => {
|
|
4703
|
-
const { name, options: resolvedOptions, nodes, print: printOverride } = build(options != null ? options : {});
|
|
4704
|
-
const context = {
|
|
4705
|
-
options: resolvedOptions,
|
|
4706
|
-
print: (node) => {
|
|
4707
|
-
const key = getKey(node);
|
|
4708
|
-
if (key === void 0) return void 0;
|
|
4709
|
-
const handler = nodes[key];
|
|
4710
|
-
if (!handler) return void 0;
|
|
4711
|
-
return handler.call(context, node);
|
|
4712
|
-
}
|
|
4713
|
-
};
|
|
4714
|
-
return {
|
|
4715
|
-
name,
|
|
4716
|
-
options: resolvedOptions,
|
|
4717
|
-
print: printOverride ? printOverride.bind(context) : context.print
|
|
4718
|
-
};
|
|
4719
|
-
};
|
|
4720
|
-
};
|
|
4721
|
-
}
|
|
4722
|
-
function narrowSchema(node, type) {
|
|
4723
|
-
return (node == null ? void 0 : node.type) === type ? node : void 0;
|
|
4724
|
-
}
|
|
4725
|
-
function isKind(kind) {
|
|
4726
|
-
return (node) => node.kind === kind;
|
|
4727
|
-
}
|
|
4728
|
-
const isOperationNode = isKind("Operation");
|
|
4729
|
-
const isSchemaNode = isKind("Schema");
|
|
4657
|
+
const schemaTypes = {
|
|
4658
|
+
enum: "enum"};
|
|
4730
4659
|
function toCamelOrPascal$f(text, pascal) {
|
|
4731
4660
|
return text.trim().replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/(\d)([a-z])/g, "$1 $2").split(/[\s\-_./\\:]+/).filter(Boolean).map((word, i) => {
|
|
4732
4661
|
if (word.length > 1 && word === word.toUpperCase()) return word;
|
|
@@ -4770,6 +4699,14 @@ function isValidVarName$c(name) {
|
|
|
4770
4699
|
}
|
|
4771
4700
|
return true;
|
|
4772
4701
|
}
|
|
4702
|
+
function narrowSchema(node, type) {
|
|
4703
|
+
return (node == null ? void 0 : node.type) === type ? node : void 0;
|
|
4704
|
+
}
|
|
4705
|
+
function isKind(kind) {
|
|
4706
|
+
return (node) => node.kind === kind;
|
|
4707
|
+
}
|
|
4708
|
+
const isOperationNode = isKind("Operation");
|
|
4709
|
+
const isSchemaNode = isKind("Schema");
|
|
4773
4710
|
const plainStringTypes = /* @__PURE__ */ new Set([
|
|
4774
4711
|
"string",
|
|
4775
4712
|
"uuid",
|
|
@@ -4777,14 +4714,14 @@ const plainStringTypes = /* @__PURE__ */ new Set([
|
|
|
4777
4714
|
"url",
|
|
4778
4715
|
"datetime"
|
|
4779
4716
|
]);
|
|
4780
|
-
function
|
|
4717
|
+
function isStringType(node) {
|
|
4781
4718
|
var _a;
|
|
4782
4719
|
if (plainStringTypes.has(node.type)) return true;
|
|
4783
4720
|
const temporal = (_a = narrowSchema(node, "date")) != null ? _a : narrowSchema(node, "time");
|
|
4784
4721
|
if (temporal) return temporal.representation !== "date";
|
|
4785
4722
|
return false;
|
|
4786
4723
|
}
|
|
4787
|
-
function
|
|
4724
|
+
function caseParams(params, casing) {
|
|
4788
4725
|
if (!casing) return params;
|
|
4789
4726
|
return params.map((param) => {
|
|
4790
4727
|
const transformed = casing === "camelcase" || !isValidVarName$c(param.name) ? camelCase$f(param.name) : param.name;
|
|
@@ -4794,6 +4731,71 @@ function applyParamsCasing$1(params, casing) {
|
|
|
4794
4731
|
};
|
|
4795
4732
|
});
|
|
4796
4733
|
}
|
|
4734
|
+
function syncOptionality(required, schema) {
|
|
4735
|
+
var _a;
|
|
4736
|
+
const nullable = (_a = schema.nullable) != null ? _a : false;
|
|
4737
|
+
return {
|
|
4738
|
+
...schema,
|
|
4739
|
+
optional: !required && !nullable ? true : void 0,
|
|
4740
|
+
nullish: !required && nullable ? true : void 0
|
|
4741
|
+
};
|
|
4742
|
+
}
|
|
4743
|
+
function createSchema(props) {
|
|
4744
|
+
if (props["type"] === "object") return {
|
|
4745
|
+
properties: [],
|
|
4746
|
+
...props,
|
|
4747
|
+
kind: "Schema"
|
|
4748
|
+
};
|
|
4749
|
+
return {
|
|
4750
|
+
...props,
|
|
4751
|
+
kind: "Schema"
|
|
4752
|
+
};
|
|
4753
|
+
}
|
|
4754
|
+
function createProperty(props) {
|
|
4755
|
+
var _a;
|
|
4756
|
+
const required = (_a = props.required) != null ? _a : false;
|
|
4757
|
+
return {
|
|
4758
|
+
...props,
|
|
4759
|
+
kind: "Property",
|
|
4760
|
+
required,
|
|
4761
|
+
schema: syncOptionality(required, props.schema)
|
|
4762
|
+
};
|
|
4763
|
+
}
|
|
4764
|
+
function createParameter(props) {
|
|
4765
|
+
var _a;
|
|
4766
|
+
const required = (_a = props.required) != null ? _a : false;
|
|
4767
|
+
return {
|
|
4768
|
+
...props,
|
|
4769
|
+
kind: "Parameter",
|
|
4770
|
+
required,
|
|
4771
|
+
schema: syncOptionality(required, props.schema)
|
|
4772
|
+
};
|
|
4773
|
+
}
|
|
4774
|
+
function definePrinter(build) {
|
|
4775
|
+
return createPrinterFactory((node) => node.type)(build);
|
|
4776
|
+
}
|
|
4777
|
+
function createPrinterFactory(getKey) {
|
|
4778
|
+
return function(build) {
|
|
4779
|
+
return (options) => {
|
|
4780
|
+
const { name, options: resolvedOptions, nodes, print: printOverride } = build(options != null ? options : {});
|
|
4781
|
+
const context = {
|
|
4782
|
+
options: resolvedOptions,
|
|
4783
|
+
print: (node) => {
|
|
4784
|
+
const key = getKey(node);
|
|
4785
|
+
if (key === void 0) return void 0;
|
|
4786
|
+
const handler = nodes[key];
|
|
4787
|
+
if (!handler) return void 0;
|
|
4788
|
+
return handler.call(context, node);
|
|
4789
|
+
}
|
|
4790
|
+
};
|
|
4791
|
+
return {
|
|
4792
|
+
name,
|
|
4793
|
+
options: resolvedOptions,
|
|
4794
|
+
print: printOverride ? printOverride.bind(context) : context.print
|
|
4795
|
+
};
|
|
4796
|
+
};
|
|
4797
|
+
};
|
|
4798
|
+
}
|
|
4797
4799
|
function createLimit(concurrency) {
|
|
4798
4800
|
let active = 0;
|
|
4799
4801
|
const queue = [];
|
|
@@ -6124,7 +6126,7 @@ const fsStorage = createStorage(() => ({
|
|
|
6124
6126
|
await clean(resolve(base));
|
|
6125
6127
|
}
|
|
6126
6128
|
}));
|
|
6127
|
-
var version$1 = "5.0.0-alpha.
|
|
6129
|
+
var version$1 = "5.0.0-alpha.17";
|
|
6128
6130
|
function getDiagnosticInfo() {
|
|
6129
6131
|
return {
|
|
6130
6132
|
nodeVersion: version$2,
|
|
@@ -6940,7 +6942,7 @@ function satisfiesDependency(dependency, version2, cwd) {
|
|
|
6940
6942
|
return satisfies(semVer, version2);
|
|
6941
6943
|
}
|
|
6942
6944
|
|
|
6943
|
-
var version = "5.0.0-alpha.
|
|
6945
|
+
var version = "5.0.0-alpha.17";
|
|
6944
6946
|
|
|
6945
6947
|
function isCommandMessage(msg) {
|
|
6946
6948
|
return msg.type === "command";
|
|
@@ -209510,12 +209512,15 @@ const printerTs = definePrinter((options) => {
|
|
|
209510
209512
|
union(node) {
|
|
209511
209513
|
var _a, _b, _c;
|
|
209512
209514
|
const members = (_a = node.members) != null ? _a : [];
|
|
209513
|
-
const hasStringLiteral = members.some((m) =>
|
|
209514
|
-
|
|
209515
|
+
const hasStringLiteral = members.some((m) => {
|
|
209516
|
+
var _a2;
|
|
209517
|
+
return ((_a2 = narrowSchema(m, schemaTypes.enum)) == null ? void 0 : _a2.primitive) === "string";
|
|
209518
|
+
});
|
|
209519
|
+
const hasPlainString = members.some((m) => isStringType(m));
|
|
209515
209520
|
if (hasStringLiteral && hasPlainString) return (_b = createUnionDeclaration({
|
|
209516
209521
|
withParentheses: true,
|
|
209517
209522
|
nodes: members.map((m) => {
|
|
209518
|
-
if (
|
|
209523
|
+
if (isStringType(m)) return createIntersectionDeclaration({
|
|
209519
209524
|
nodes: [keywordTypeNodes.string, createTypeLiteralNode([])],
|
|
209520
209525
|
withParentheses: true
|
|
209521
209526
|
});
|
|
@@ -209647,7 +209652,8 @@ function Enum({ node, enumType, enumKeyCasing, resolver }) {
|
|
|
209647
209652
|
function Type({ name, typedName, node, keysToOmit, optionalType, arrayType, syntaxType, enumType, enumKeyCasing, description, resolver }) {
|
|
209648
209653
|
const resolvedDescription = description || (node == null ? void 0 : node.description);
|
|
209649
209654
|
const enumSchemaNodes = collect(node, { schema(n) {
|
|
209650
|
-
|
|
209655
|
+
const enumNode = narrowSchema(n, schemaTypes.enum);
|
|
209656
|
+
if (enumNode == null ? void 0 : enumNode.name) return enumNode;
|
|
209651
209657
|
} });
|
|
209652
209658
|
const typeNode = printerTs({
|
|
209653
209659
|
optionalType,
|
|
@@ -209987,8 +209993,9 @@ function buildLegacyResponseUnionSchemaNode({ node, resolver }) {
|
|
|
209987
209993
|
function nameUnnamedEnums(node, parentName) {
|
|
209988
209994
|
return transform(node, {
|
|
209989
209995
|
schema(n) {
|
|
209990
|
-
|
|
209991
|
-
|
|
209996
|
+
const enumNode = narrowSchema(n, "enum");
|
|
209997
|
+
if (enumNode && !enumNode.name) return {
|
|
209998
|
+
...enumNode,
|
|
209992
209999
|
name: pascalCase$6([parentName, "enum"].join(" "))
|
|
209993
210000
|
};
|
|
209994
210001
|
},
|
|
@@ -210022,7 +210029,7 @@ const typeGenerator = defineGenerator({
|
|
|
210022
210029
|
mode,
|
|
210023
210030
|
options: { group: group ? group.type === "tag" ? { tag: (_a = node.tags[0]) != null ? _a : "default" } : { path: node.path } : void 0 }
|
|
210024
210031
|
});
|
|
210025
|
-
const params =
|
|
210032
|
+
const params = caseParams(node.parameters, paramsCasing);
|
|
210026
210033
|
function renderSchemaType({ node: schemaNode, name, typedName, description, keysToOmit }) {
|
|
210027
210034
|
if (!schemaNode) return null;
|
|
210028
210035
|
const transformedNode = transform(schemaNode, composeTransformers(...transformers));
|
|
@@ -210217,7 +210224,7 @@ const typeGenerator = defineGenerator({
|
|
|
210217
210224
|
mode
|
|
210218
210225
|
}).path
|
|
210219
210226
|
}));
|
|
210220
|
-
const isEnumSchema = node.
|
|
210227
|
+
const isEnumSchema = !!narrowSchema(node, schemaTypes.enum);
|
|
210221
210228
|
const typedName = ENUM_TYPES_WITH_KEY_SUFFIX.has(enumType) && isEnumSchema ? resolver.resolveEnumKeyTypedName(node) : resolver.resolveTypedName(node.name);
|
|
210222
210229
|
const type = {
|
|
210223
210230
|
name: resolver.resolveName(node.name),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nitro.mjs","sources":["../../../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../../../../node_modules/.pnpm/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../../../node_modules/.pnpm/h3@1.15.9/node_modules/h3/dist/index.mjs","../../../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../../../internals/utils/dist/index.js","../../../../server/plugins/heartbeat.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../ast/dist/index.js","../../../../../core/dist/index.js","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk--u3MIqq1.js","../../../../../plugin-oas/dist/getFooter-Dz4u5Mg4.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-bs_SwfEj.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-BFqabdAx.js","../../../../../plugin-oas/dist/generators-hPE06pZB.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-Cp2XF1Sa.js","../../../../../plugin-ts/dist/chunk--u3MIqq1.js","../../../../../plugin-ts/dist/casing-Cp-jbC_k.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/Type-C8EHVKjc.js","../../../../../core/dist/hooks.js","../../../../../plugin-ts/dist/generators-BZQhvuc5.js","../../../../../plugin-ts/dist/resolvers-DsKabI0F.js","../../../../../plugin-ts/dist/index.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-zod/dist/generators-Dc5k6ZRg.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-C7Uz42d2.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-C6qvavJ4.js","../../../../../plugin-cypress/dist/generators-CsddWitM.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-M5oCrPmy.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-zYi6bZ4D.js","../../../../../plugin-mcp/dist/generators-B8MpQcFC.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-skQTekfZ.js","../../../../../plugin-msw/dist/generators-Cx8YEtI4.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CFTdrzdu.js","../../../../../plugin-react-query/dist/generators-D5XRpAur.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-DhF2y62B.js","../../../../../plugin-solid-query/dist/generators-Bjt_pqc2.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-gSKB93uB.js","../../../../../plugin-svelte-query/dist/generators-BnlHq9qP.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-dWefgCqh.js","../../../../../plugin-swr/dist/generators-h6SrQ3Gr.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components--op2hxIJ.js","../../../../../plugin-vue-query/dist/generators-B6cv10kw.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/publish.ts","../../../../server/utils/setupHookListener.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","stringify","normalizeKey","defineDriver","DRIVER_NAME","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","_emitter","_a","toError","AsyncEventEmitter","__privateAdd","__privateGet","formatMs","parseHex","hex","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","applyParamsCasing","pascalCase","path","readFile","writeFile","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","match","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","extname","x","performance","build","readdir","version","_c","_d","_e","_f","renderOperation","renderSchema","item","trimExtName","defaultResolver","error","__defProp","__name","isPlainObject","parse","loadConfig","schema","params","_context","trimQuotes","schemas","normalizedSchema","name","min","max","getParams$1","getParams","Operations","validate","oas","options","jsStringEscape","toRegExpString","Type","siblings","require","global","modifiers","questionToken","node","operationsGenerator","source","Function","baseURL","source$2","Response","getNestedAccessor","getTransformer$1","MutationKey","getParams$9","getTransformer","QueryKey","getParams$8","QueryOptions","getParams$7","InfiniteQuery","getParams$6","InfiniteQueryOptions","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","fs","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","generics","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,57,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.9/node_modules/h3/dist/index.mjs","../../../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../../../internals/utils/dist/index.js","../../../../server/plugins/heartbeat.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../ast/dist/index.js","../../../../../core/dist/index.js","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk--u3MIqq1.js","../../../../../plugin-oas/dist/getFooter-Dz4u5Mg4.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-bs_SwfEj.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-BFqabdAx.js","../../../../../plugin-oas/dist/generators-hPE06pZB.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-Cp2XF1Sa.js","../../../../../plugin-ts/dist/chunk--u3MIqq1.js","../../../../../plugin-ts/dist/casing-Cp-jbC_k.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/Type-CEYpKTNb.js","../../../../../core/dist/hooks.js","../../../../../plugin-ts/dist/generators-huxvj9y4.js","../../../../../plugin-ts/dist/resolvers-DsKabI0F.js","../../../../../plugin-ts/dist/index.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-zod/dist/generators-Dc5k6ZRg.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-C7Uz42d2.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-C6qvavJ4.js","../../../../../plugin-cypress/dist/generators-CsddWitM.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-M5oCrPmy.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-zYi6bZ4D.js","../../../../../plugin-mcp/dist/generators-B8MpQcFC.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-skQTekfZ.js","../../../../../plugin-msw/dist/generators-Cx8YEtI4.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CFTdrzdu.js","../../../../../plugin-react-query/dist/generators-D5XRpAur.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-DhF2y62B.js","../../../../../plugin-solid-query/dist/generators-Bjt_pqc2.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-gSKB93uB.js","../../../../../plugin-svelte-query/dist/generators-BnlHq9qP.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-dWefgCqh.js","../../../../../plugin-swr/dist/generators-h6SrQ3Gr.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components--op2hxIJ.js","../../../../../plugin-vue-query/dist/generators-B6cv10kw.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/publish.ts","../../../../server/utils/setupHookListener.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","stringify","normalizeKey","defineDriver","DRIVER_NAME","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","_emitter","_a","toError","AsyncEventEmitter","__privateAdd","__privateGet","formatMs","parseHex","hex","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","pascalCase","path","readFile","writeFile","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","match","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","extname","x","performance","build","readdir","version","_c","_d","_e","_f","renderOperation","renderSchema","item","trimExtName","defaultResolver","error","__defProp","__name","isPlainObject","parse","loadConfig","schema","params","_context","trimQuotes","schemas","normalizedSchema","name","min","max","getParams$1","getParams","Operations","validate","oas","options","jsStringEscape","toRegExpString","Type","siblings","require","global","modifiers","questionToken","node","operationsGenerator","source","Function","baseURL","source$2","Response","getNestedAccessor","getTransformer$1","MutationKey","getParams$9","getTransformer","QueryKey","getParams$8","QueryOptions","getParams$7","InfiniteQuery","getParams$6","InfiniteQueryOptions","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","fs","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","generics","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,57,112,113,114,115]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.17",
|
|
4
4
|
"description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"tinyexec": "^1.0.4",
|
|
41
41
|
"unstorage": "^1.17.4",
|
|
42
42
|
"ws": "^8.20.0",
|
|
43
|
-
"@kubb/core": "5.0.0-alpha.
|
|
44
|
-
"@kubb/plugin-client": "5.0.0-alpha.
|
|
45
|
-
"@kubb/plugin-cypress": "5.0.0-alpha.
|
|
46
|
-
"@kubb/plugin-faker": "5.0.0-alpha.
|
|
47
|
-
"@kubb/plugin-mcp": "5.0.0-alpha.
|
|
48
|
-
"@kubb/plugin-msw": "5.0.0-alpha.
|
|
49
|
-
"@kubb/plugin-oas": "5.0.0-alpha.
|
|
50
|
-
"@kubb/plugin-react-query": "5.0.0-alpha.
|
|
51
|
-
"@kubb/plugin-redoc": "5.0.0-alpha.
|
|
52
|
-
"@kubb/plugin-solid-query": "5.0.0-alpha.
|
|
53
|
-
"@kubb/plugin-svelte-query": "5.0.0-alpha.
|
|
54
|
-
"@kubb/plugin-swr": "5.0.0-alpha.
|
|
55
|
-
"@kubb/plugin-ts": "5.0.0-alpha.
|
|
56
|
-
"@kubb/plugin-vue-query": "5.0.0-alpha.
|
|
57
|
-
"@kubb/plugin-zod": "5.0.0-alpha.
|
|
43
|
+
"@kubb/core": "5.0.0-alpha.17",
|
|
44
|
+
"@kubb/plugin-client": "5.0.0-alpha.17",
|
|
45
|
+
"@kubb/plugin-cypress": "5.0.0-alpha.17",
|
|
46
|
+
"@kubb/plugin-faker": "5.0.0-alpha.17",
|
|
47
|
+
"@kubb/plugin-mcp": "5.0.0-alpha.17",
|
|
48
|
+
"@kubb/plugin-msw": "5.0.0-alpha.17",
|
|
49
|
+
"@kubb/plugin-oas": "5.0.0-alpha.17",
|
|
50
|
+
"@kubb/plugin-react-query": "5.0.0-alpha.17",
|
|
51
|
+
"@kubb/plugin-redoc": "5.0.0-alpha.17",
|
|
52
|
+
"@kubb/plugin-solid-query": "5.0.0-alpha.17",
|
|
53
|
+
"@kubb/plugin-svelte-query": "5.0.0-alpha.17",
|
|
54
|
+
"@kubb/plugin-swr": "5.0.0-alpha.17",
|
|
55
|
+
"@kubb/plugin-ts": "5.0.0-alpha.17",
|
|
56
|
+
"@kubb/plugin-vue-query": "5.0.0-alpha.17",
|
|
57
|
+
"@kubb/plugin-zod": "5.0.0-alpha.17"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/ws": "^8.18.1",
|