@kubb/agent 5.0.0-alpha.30 → 5.0.0-alpha.31
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 +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +73 -55
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +0 -1
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
- package/.output/server/index.mjs +0 -1
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/package.json +1 -1
- package/package.json +18 -16
- package/.output/server/node_modules/@kubb/fabric-core/dist/parsers.js +0 -17
- package/.output/server/node_modules/@kubb/react-fabric/dist/parsers.js +0 -2
package/.output/nitro.json
CHANGED
|
@@ -15,7 +15,6 @@ import { Logtail } from '@logtail/node';
|
|
|
15
15
|
import { consola } from 'consola';
|
|
16
16
|
import { access, rm, readFile as readFile$1, readdir as readdir$1, mkdir, writeFile as writeFile$1 } from 'node:fs/promises';
|
|
17
17
|
import { createFabric, createReactFabric, Fabric, File, Type as Type$1, Const, Function as Function$1, FunctionParams, useFabric } from '@kubb/react-fabric';
|
|
18
|
-
import { typescriptParser } from '@kubb/react-fabric/parsers';
|
|
19
18
|
import { fsPlugin } from '@kubb/react-fabric/plugins';
|
|
20
19
|
import { performance as performance$1 } from 'node:perf_hooks';
|
|
21
20
|
import { deflateSync } from 'fflate';
|
|
@@ -5675,9 +5674,6 @@ eachParam_fn$b = function(fn) {
|
|
|
5675
5674
|
fn(raw, __privateMethod$d(this, _URLPath_instances$b, transformParam_fn$b).call(this, raw));
|
|
5676
5675
|
}
|
|
5677
5676
|
}, _b$1);
|
|
5678
|
-
function isInputPath(config) {
|
|
5679
|
-
return typeof (config == null ? void 0 : config.input) === "object" && config.input !== null && "path" in config.input;
|
|
5680
|
-
}
|
|
5681
5677
|
const DEFAULT_STUDIO_URL = "https://studio.kubb.dev";
|
|
5682
5678
|
const BARREL_FILENAME = "index.ts";
|
|
5683
5679
|
const DEFAULT_BANNER = "simple";
|
|
@@ -5728,6 +5724,14 @@ const formatters = {
|
|
|
5728
5724
|
errorMessage: "Oxfmt not found"
|
|
5729
5725
|
}
|
|
5730
5726
|
};
|
|
5727
|
+
function defineParser(parser) {
|
|
5728
|
+
return {
|
|
5729
|
+
install() {
|
|
5730
|
+
},
|
|
5731
|
+
type: "parser",
|
|
5732
|
+
...parser
|
|
5733
|
+
};
|
|
5734
|
+
}
|
|
5731
5735
|
function encodeAst(root) {
|
|
5732
5736
|
const compressed = deflateSync(new TextEncoder().encode(JSON.stringify(root)));
|
|
5733
5737
|
return Buffer.from(compressed).toString("base64url");
|
|
@@ -6364,7 +6368,7 @@ const fsStorage = createStorage(() => ({
|
|
|
6364
6368
|
await clean(resolve(base));
|
|
6365
6369
|
}
|
|
6366
6370
|
}));
|
|
6367
|
-
var version$1$1 = "5.0.0-alpha.
|
|
6371
|
+
var version$1$1 = "5.0.0-alpha.31";
|
|
6368
6372
|
function getDiagnosticInfo() {
|
|
6369
6373
|
return {
|
|
6370
6374
|
nodeVersion: version$f,
|
|
@@ -6594,8 +6598,11 @@ async function getBarrelFiles(files, { type, meta = {}, root, output }) {
|
|
|
6594
6598
|
};
|
|
6595
6599
|
});
|
|
6596
6600
|
}
|
|
6601
|
+
function isInputPath(config) {
|
|
6602
|
+
return typeof (config == null ? void 0 : config.input) === "object" && config.input !== null && "path" in config.input;
|
|
6603
|
+
}
|
|
6597
6604
|
async function setup(options) {
|
|
6598
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g;
|
|
6605
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h;
|
|
6599
6606
|
const { config: userConfig, events = new AsyncEventEmitter() } = options;
|
|
6600
6607
|
const sources = /* @__PURE__ */ new Map();
|
|
6601
6608
|
const diagnosticInfo = getDiagnosticInfo();
|
|
@@ -6630,9 +6637,12 @@ async function setup(options) {
|
|
|
6630
6637
|
throw new Error(`Cannot read file/URL defined in \`input.path\` or set with \`kubb generate PATH\` in the CLI of your Kubb config ${userConfig.input.path}`, { cause: error });
|
|
6631
6638
|
}
|
|
6632
6639
|
}
|
|
6633
|
-
|
|
6640
|
+
if (!userConfig.adapter) throw new Error("Adapter should be defined");
|
|
6641
|
+
const config = {
|
|
6634
6642
|
root: userConfig.root || process.cwd(),
|
|
6635
6643
|
...userConfig,
|
|
6644
|
+
parsers: (_g = userConfig.parsers) != null ? _g : [],
|
|
6645
|
+
adapter: userConfig.adapter,
|
|
6636
6646
|
output: {
|
|
6637
6647
|
write: true,
|
|
6638
6648
|
barrelType: "named",
|
|
@@ -6646,17 +6656,24 @@ async function setup(options) {
|
|
|
6646
6656
|
} : void 0,
|
|
6647
6657
|
plugins: userConfig.plugins
|
|
6648
6658
|
};
|
|
6649
|
-
const storage =
|
|
6650
|
-
if (
|
|
6659
|
+
const storage = config.output.write === false ? null : (_h = config.output.storage) != null ? _h : fsStorage();
|
|
6660
|
+
if (config.output.clean) {
|
|
6651
6661
|
await events.emit("debug", {
|
|
6652
6662
|
date: /* @__PURE__ */ new Date(),
|
|
6653
|
-
logs: ["Cleaning output directories", ` \u2022 Output: ${
|
|
6663
|
+
logs: ["Cleaning output directories", ` \u2022 Output: ${config.output.path}`]
|
|
6654
6664
|
});
|
|
6655
|
-
await (storage == null ? void 0 : storage.clear(resolve(
|
|
6665
|
+
await (storage == null ? void 0 : storage.clear(resolve(config.root, config.output.path)));
|
|
6656
6666
|
}
|
|
6657
6667
|
const fabric = createFabric();
|
|
6658
6668
|
fabric.use(fsPlugin);
|
|
6659
|
-
fabric.use(
|
|
6669
|
+
for (const parser of config.parsers) fabric.use(parser);
|
|
6670
|
+
fabric.use(defineParser({
|
|
6671
|
+
name: "fallback",
|
|
6672
|
+
extNames: void 0,
|
|
6673
|
+
parse(file) {
|
|
6674
|
+
return file.sources.map((item) => item.value).filter((value) => value != null).join("\n\n");
|
|
6675
|
+
}
|
|
6676
|
+
}));
|
|
6660
6677
|
fabric.context.on("files:processing:start", (files) => {
|
|
6661
6678
|
events.emit("files:processing:start", files);
|
|
6662
6679
|
events.emit("debug", {
|
|
@@ -6665,16 +6682,16 @@ async function setup(options) {
|
|
|
6665
6682
|
});
|
|
6666
6683
|
});
|
|
6667
6684
|
fabric.context.on("file:processing:update", async (params) => {
|
|
6668
|
-
const { file, source } = params;
|
|
6685
|
+
const { file, source: source2 } = params;
|
|
6669
6686
|
await events.emit("file:processing:update", {
|
|
6670
6687
|
...params,
|
|
6671
|
-
config
|
|
6672
|
-
source
|
|
6688
|
+
config,
|
|
6689
|
+
source: source2
|
|
6673
6690
|
});
|
|
6674
|
-
if (
|
|
6675
|
-
const key = relative(resolve(
|
|
6676
|
-
await (storage == null ? void 0 : storage.setItem(key,
|
|
6677
|
-
sources.set(file.path,
|
|
6691
|
+
if (source2) {
|
|
6692
|
+
const key = relative(resolve(config.root), file.path);
|
|
6693
|
+
await (storage == null ? void 0 : storage.setItem(key, source2));
|
|
6694
|
+
sources.set(file.path, source2);
|
|
6678
6695
|
}
|
|
6679
6696
|
});
|
|
6680
6697
|
fabric.context.on("files:processing:end", async (files) => {
|
|
@@ -6689,35 +6706,36 @@ async function setup(options) {
|
|
|
6689
6706
|
logs: [
|
|
6690
6707
|
"\u2713 Fabric initialized",
|
|
6691
6708
|
` \u2022 Storage: ${storage ? storage.name : "disabled (dry-run)"}`,
|
|
6692
|
-
` \u2022 Barrel type: ${
|
|
6709
|
+
` \u2022 Barrel type: ${config.output.barrelType || "none"}`
|
|
6693
6710
|
]
|
|
6694
6711
|
});
|
|
6695
|
-
const
|
|
6712
|
+
const driver = new PluginDriver(config, {
|
|
6696
6713
|
fabric,
|
|
6697
6714
|
events,
|
|
6698
6715
|
concurrency: 15
|
|
6699
6716
|
});
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
}
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
}
|
|
6717
|
+
const adapter = config.adapter;
|
|
6718
|
+
if (!adapter) throw new Error("No adapter configured. Please provide an adapter in your kubb.config.ts.");
|
|
6719
|
+
const source = inputToAdapterSource(config);
|
|
6720
|
+
await events.emit("debug", {
|
|
6721
|
+
date: /* @__PURE__ */ new Date(),
|
|
6722
|
+
logs: [`Running adapter: ${adapter.name}`]
|
|
6723
|
+
});
|
|
6724
|
+
driver.adapter = adapter;
|
|
6725
|
+
driver.rootNode = await adapter.parse(source);
|
|
6726
|
+
await events.emit("debug", {
|
|
6727
|
+
date: /* @__PURE__ */ new Date(),
|
|
6728
|
+
logs: [
|
|
6729
|
+
`\u2713 Adapter '${adapter.name}' resolved RootNode`,
|
|
6730
|
+
` \u2022 Schemas: ${driver.rootNode.schemas.length}`,
|
|
6731
|
+
` \u2022 Operations: ${driver.rootNode.operations.length}`
|
|
6732
|
+
]
|
|
6733
|
+
});
|
|
6717
6734
|
return {
|
|
6735
|
+
config,
|
|
6718
6736
|
events,
|
|
6719
6737
|
fabric,
|
|
6720
|
-
driver
|
|
6738
|
+
driver,
|
|
6721
6739
|
sources
|
|
6722
6740
|
};
|
|
6723
6741
|
}
|
|
@@ -7276,7 +7294,7 @@ async function detectLinter() {
|
|
|
7276
7294
|
return null;
|
|
7277
7295
|
}
|
|
7278
7296
|
|
|
7279
|
-
var version$e = "5.0.0-alpha.
|
|
7297
|
+
var version$e = "5.0.0-alpha.31";
|
|
7280
7298
|
|
|
7281
7299
|
function isCommandMessage(msg) {
|
|
7282
7300
|
return msg.type === "command";
|
|
@@ -7340,7 +7358,7 @@ async function generate({ config, events }) {
|
|
|
7340
7358
|
config,
|
|
7341
7359
|
events
|
|
7342
7360
|
},
|
|
7343
|
-
{ driver, fabric, events, sources
|
|
7361
|
+
{ driver, fabric, events, sources}
|
|
7344
7362
|
);
|
|
7345
7363
|
await events.emit("info", "Load summary");
|
|
7346
7364
|
const hasFailures = failedPlugins.size > 0 || error;
|
|
@@ -206240,7 +206258,7 @@ const typeGenerator = defineGenerator({
|
|
|
206240
206258
|
});
|
|
206241
206259
|
}
|
|
206242
206260
|
});
|
|
206243
|
-
var version$d = "5.0.0-alpha.
|
|
206261
|
+
var version$d = "5.0.0-alpha.31";
|
|
206244
206262
|
const resolverTs = defineResolver(() => {
|
|
206245
206263
|
return {
|
|
206246
206264
|
name: "default",
|
|
@@ -208157,7 +208175,7 @@ const zodGeneratorLegacy = defineGenerator({
|
|
|
208157
208175
|
});
|
|
208158
208176
|
}
|
|
208159
208177
|
});
|
|
208160
|
-
var version$c = "5.0.0-alpha.
|
|
208178
|
+
var version$c = "5.0.0-alpha.31";
|
|
208161
208179
|
const resolverZod = defineResolver(() => {
|
|
208162
208180
|
return {
|
|
208163
208181
|
name: "default",
|
|
@@ -210012,7 +210030,7 @@ const staticClassClientGenerator = defineGenerator({
|
|
|
210012
210030
|
}) });
|
|
210013
210031
|
}
|
|
210014
210032
|
});
|
|
210015
|
-
var version$b = "5.0.0-alpha.
|
|
210033
|
+
var version$b = "5.0.0-alpha.31";
|
|
210016
210034
|
const resolverClient = defineResolver(() => ({
|
|
210017
210035
|
name: "default",
|
|
210018
210036
|
pluginName: "plugin-client",
|
|
@@ -210476,7 +210494,7 @@ const cypressGenerator = defineGenerator({
|
|
|
210476
210494
|
});
|
|
210477
210495
|
}
|
|
210478
210496
|
});
|
|
210479
|
-
var version$a = "5.0.0-alpha.
|
|
210497
|
+
var version$a = "5.0.0-alpha.31";
|
|
210480
210498
|
const resolverCypress = defineResolver(() => ({
|
|
210481
210499
|
name: "default",
|
|
210482
210500
|
pluginName: "plugin-cypress",
|
|
@@ -212837,7 +212855,7 @@ var OperationGenerator = (_a$8 = class {
|
|
|
212837
212855
|
const { include = [] } = this.context;
|
|
212838
212856
|
return include.some(({ pattern, type }) => __privateMethod$8(this, _OperationGenerator_instances, matchesPattern_fn).call(this, operation, method, type, pattern));
|
|
212839
212857
|
}, _a$8);
|
|
212840
|
-
var version$9 = "5.0.0-alpha.
|
|
212858
|
+
var version$9 = "5.0.0-alpha.31";
|
|
212841
212859
|
const pluginOasName = "plugin-oas";
|
|
212842
212860
|
const pluginOas = createPlugin((options) => {
|
|
212843
212861
|
const { output = { path: "schemas" }, group, validate = true, generators = [jsonGenerator], serverIndex, serverVariables, contentType, oasClass, discriminator = "strict", collisionDetection = false } = options;
|
|
@@ -213954,7 +213972,7 @@ function camelCase$7(text, { isFile, prefix = "", suffix = "" } = {}) {
|
|
|
213954
213972
|
} : {}));
|
|
213955
213973
|
return toCamelOrPascal$7(`${prefix} ${text} ${suffix}`);
|
|
213956
213974
|
}
|
|
213957
|
-
var version$8 = "5.0.0-alpha.
|
|
213975
|
+
var version$8 = "5.0.0-alpha.31";
|
|
213958
213976
|
const pluginFakerName = "plugin-faker";
|
|
213959
213977
|
const pluginFaker = createPlugin((options) => {
|
|
213960
213978
|
const { output = {
|
|
@@ -214862,7 +214880,7 @@ const serverGeneratorLegacy = defineGenerator({
|
|
|
214862
214880
|
})] });
|
|
214863
214881
|
}
|
|
214864
214882
|
});
|
|
214865
|
-
var version$7 = "5.0.0-alpha.
|
|
214883
|
+
var version$7 = "5.0.0-alpha.31";
|
|
214866
214884
|
const resolverMcp = defineResolver(() => ({
|
|
214867
214885
|
name: "default",
|
|
214868
214886
|
pluginName: "plugin-mcp",
|
|
@@ -215418,7 +215436,7 @@ const mswGenerator = createReactGenerator({
|
|
|
215418
215436
|
}
|
|
215419
215437
|
});
|
|
215420
215438
|
|
|
215421
|
-
var version$6 = "5.0.0-alpha.
|
|
215439
|
+
var version$6 = "5.0.0-alpha.31";
|
|
215422
215440
|
const pluginMswName = "plugin-msw";
|
|
215423
215441
|
const pluginMsw = createPlugin((options) => {
|
|
215424
215442
|
const { output = {
|
|
@@ -218415,7 +218433,7 @@ const suspenseQueryGenerator = createReactGenerator({
|
|
|
218415
218433
|
}
|
|
218416
218434
|
});
|
|
218417
218435
|
|
|
218418
|
-
var version$5 = "5.0.0-alpha.
|
|
218436
|
+
var version$5 = "5.0.0-alpha.31";
|
|
218419
218437
|
const pluginReactQueryName = "plugin-react-query";
|
|
218420
218438
|
const pluginReactQuery = createPlugin((options) => {
|
|
218421
218439
|
var _a, _b, _c, _d;
|
|
@@ -218572,7 +218590,7 @@ const pluginReactQuery = createPlugin((options) => {
|
|
|
218572
218590
|
|
|
218573
218591
|
const adapterOasName = "oas";
|
|
218574
218592
|
|
|
218575
|
-
var version$4 = "5.0.0-alpha.
|
|
218593
|
+
var version$4 = "5.0.0-alpha.31";
|
|
218576
218594
|
const __filename$1 = fileURLToPath(globalThis._importMeta_.url);
|
|
218577
218595
|
const __dirname$1 = path$2.dirname(__filename$1);
|
|
218578
218596
|
async function getPageHTML(api, { title, disableGoogleFont, templateOptions } = {}) {
|
|
@@ -219695,7 +219713,7 @@ const queryGenerator$3 = createReactGenerator({
|
|
|
219695
219713
|
}
|
|
219696
219714
|
});
|
|
219697
219715
|
|
|
219698
|
-
var version$3 = "5.0.0-alpha.
|
|
219716
|
+
var version$3 = "5.0.0-alpha.31";
|
|
219699
219717
|
const pluginSolidQueryName = "plugin-solid-query";
|
|
219700
219718
|
const pluginSolidQuery = createPlugin((options) => {
|
|
219701
219719
|
var _a, _b, _c, _d;
|
|
@@ -220895,7 +220913,7 @@ const queryGenerator$2 = createReactGenerator({
|
|
|
220895
220913
|
}
|
|
220896
220914
|
});
|
|
220897
220915
|
|
|
220898
|
-
var version$2 = "5.0.0-alpha.
|
|
220916
|
+
var version$2 = "5.0.0-alpha.31";
|
|
220899
220917
|
const pluginSvelteQueryName = "plugin-svelte-query";
|
|
220900
220918
|
const pluginSvelteQuery = createPlugin((options) => {
|
|
220901
220919
|
var _a, _b, _c, _d;
|
|
@@ -222118,7 +222136,7 @@ const queryGenerator$1 = createReactGenerator({
|
|
|
222118
222136
|
}
|
|
222119
222137
|
});
|
|
222120
222138
|
|
|
222121
|
-
var version$1 = "5.0.0-alpha.
|
|
222139
|
+
var version$1 = "5.0.0-alpha.31";
|
|
222122
222140
|
const pluginSwrName = "plugin-swr";
|
|
222123
222141
|
const pluginSwr = createPlugin((options) => {
|
|
222124
222142
|
var _a, _b, _c, _d;
|
|
@@ -223918,7 +223936,7 @@ const queryGenerator = createReactGenerator({
|
|
|
223918
223936
|
}
|
|
223919
223937
|
});
|
|
223920
223938
|
|
|
223921
|
-
var version = "5.0.0-alpha.
|
|
223939
|
+
var version = "5.0.0-alpha.31";
|
|
223922
223940
|
const pluginVueQueryName = "plugin-vue-query";
|
|
223923
223941
|
const pluginVueQuery = createPlugin((options) => {
|
|
223924
223942
|
var _a, _b, _c, _d;
|
|
@@ -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/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../../../node_modules/.pnpm/h3@1.15.10/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.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/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.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.6/node_modules/defu/dist/defu.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/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.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/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-client/dist/templates/clients/axios.source.js","../../../../../plugin-client/dist/templates/clients/fetch.source.js","../../../../../plugin-client/dist/templates/config.source.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/index.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/index.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-oas/dist/getFooter-Dz4u5Mg4.js","../../../../../plugin-oas/dist/generators-hPE06pZB.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-BO3N7fWH.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-faker/dist/components-CRVgxJhG.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-faker/dist/fakerGenerator-BviedIXa.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-Hy13rv6B.js","../../../../../plugin-msw/dist/generators-NHFKYOuW.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-HG1bVVRU.js","../../../../../plugin-react-query/dist/generators-BZKMuZRH.js","../../../../../plugin-react-query/dist/index.js","../../../../../adapter-oas/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-DGhLQ6SB.js","../../../../../plugin-solid-query/dist/generators-btQmKDEY.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-BHuFcBvT.js","../../../../../plugin-svelte-query/dist/generators-DV7MaGbo.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-Dx3TpD0e.js","../../../../../plugin-swr/dist/generators-DgOGoKCg.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-BqilTESI.js","../../../../../plugin-vue-query/dist/generators-C_oXqIAr.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.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","stringify","normalizeKey","defineDriver","DRIVER_NAME","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","formatMs","_a","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","__privateAdd","__privateGet","pascalCase","path","readFile","writeFile","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","match","resolve","_c","extname","performance","build","walk","readdir","version$1","version","item","trimExtName","_d","_e","_f","x","composeTransformers$1","error","__defProp","__name","
|
|
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/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../../../node_modules/.pnpm/h3@1.15.10/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.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/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.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.6/node_modules/defu/dist/defu.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/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.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/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-client/dist/templates/clients/axios.source.js","../../../../../plugin-client/dist/templates/clients/fetch.source.js","../../../../../plugin-client/dist/templates/config.source.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/index.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/index.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-oas/dist/getFooter-Dz4u5Mg4.js","../../../../../plugin-oas/dist/generators-hPE06pZB.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-BO3N7fWH.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-faker/dist/components-CRVgxJhG.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-faker/dist/fakerGenerator-BviedIXa.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-Hy13rv6B.js","../../../../../plugin-msw/dist/generators-NHFKYOuW.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-HG1bVVRU.js","../../../../../plugin-react-query/dist/generators-BZKMuZRH.js","../../../../../plugin-react-query/dist/index.js","../../../../../adapter-oas/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-DGhLQ6SB.js","../../../../../plugin-solid-query/dist/generators-btQmKDEY.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-BHuFcBvT.js","../../../../../plugin-svelte-query/dist/generators-DV7MaGbo.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-Dx3TpD0e.js","../../../../../plugin-swr/dist/generators-DgOGoKCg.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-BqilTESI.js","../../../../../plugin-vue-query/dist/generators-C_oXqIAr.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.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_encoding@0.1.13_rolldown@1.0.0-rc.13/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","stringify","normalizeKey","defineDriver","DRIVER_NAME","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","formatMs","_a","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","__privateAdd","__privateGet","pascalCase","path","readFile","writeFile","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","match","resolve","_c","extname","performance","build","walk","readdir","version$1","version","item","trimExtName","_d","_e","_f","source","x","composeTransformers$1","error","__defProp","__name","require","global","trimQuotes","jsStringEscape","modifiers","questionToken","node","transform","options","buildGroupedParamsSchema","buildLegacyResponsesSchemaNode","buildLegacyResponseUnionSchemaNode","presets","toRegExpString","Operations","Type","getComments","getParams$2","getParams$1","getParams","declarationPrinter$1","declarationPrinter","source$2","isPlainObject","parse","loadConfig","schema","params","_context","schemas","normalizedSchema","name","min","max","validate","oas","Function","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","operations","fs","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","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,49,99,100,101,102]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.get.mjs","sources":["../../../../../server/routes/api/health.get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"health.get.mjs","sources":["../../../../../server/routes/api/health.get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CACA;AACA,CAAA,CAAA;;"}
|
package/.output/server/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
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.31",
|
|
4
4
|
"description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -40,21 +40,23 @@
|
|
|
40
40
|
"tinyexec": "^1.0.4",
|
|
41
41
|
"unstorage": "^1.17.5",
|
|
42
42
|
"ws": "^8.20.0",
|
|
43
|
-
"@kubb/
|
|
44
|
-
"@kubb/
|
|
45
|
-
"@kubb/
|
|
46
|
-
"@kubb/plugin-
|
|
47
|
-
"@kubb/plugin-
|
|
48
|
-
"@kubb/plugin-
|
|
49
|
-
"@kubb/plugin-
|
|
50
|
-
"@kubb/plugin-
|
|
51
|
-
"@kubb/plugin-
|
|
52
|
-
"@kubb/plugin-
|
|
53
|
-
"@kubb/plugin-
|
|
54
|
-
"@kubb/plugin-
|
|
55
|
-
"@kubb/plugin-
|
|
56
|
-
"@kubb/plugin-
|
|
57
|
-
"@kubb/plugin-
|
|
43
|
+
"@kubb/adapter-oas": "5.0.0-alpha.31",
|
|
44
|
+
"@kubb/core": "5.0.0-alpha.31",
|
|
45
|
+
"@kubb/parser-ts": "5.0.0-alpha.31",
|
|
46
|
+
"@kubb/plugin-client": "5.0.0-alpha.31",
|
|
47
|
+
"@kubb/plugin-cypress": "5.0.0-alpha.31",
|
|
48
|
+
"@kubb/plugin-faker": "5.0.0-alpha.31",
|
|
49
|
+
"@kubb/plugin-mcp": "5.0.0-alpha.31",
|
|
50
|
+
"@kubb/plugin-msw": "5.0.0-alpha.31",
|
|
51
|
+
"@kubb/plugin-oas": "5.0.0-alpha.31",
|
|
52
|
+
"@kubb/plugin-react-query": "5.0.0-alpha.31",
|
|
53
|
+
"@kubb/plugin-redoc": "5.0.0-alpha.31",
|
|
54
|
+
"@kubb/plugin-solid-query": "5.0.0-alpha.31",
|
|
55
|
+
"@kubb/plugin-svelte-query": "5.0.0-alpha.31",
|
|
56
|
+
"@kubb/plugin-swr": "5.0.0-alpha.31",
|
|
57
|
+
"@kubb/plugin-ts": "5.0.0-alpha.31",
|
|
58
|
+
"@kubb/plugin-vue-query": "5.0.0-alpha.31",
|
|
59
|
+
"@kubb/plugin-zod": "5.0.0-alpha.31"
|
|
58
60
|
},
|
|
59
61
|
"devDependencies": {
|
|
60
62
|
"@types/ws": "^8.18.1",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "./chunk-O_arW02_.js";
|
|
2
|
-
import { n as defineParser } from "./getRelativePath-NAm_Y-vp.js";
|
|
3
|
-
import { t as defaultParser } from "./defaultParser-iCpMSYCp.js";
|
|
4
|
-
import { typescriptParser } from "./parsers/typescript.js";
|
|
5
|
-
//#region src/parsers/tsxParser.ts
|
|
6
|
-
const tsxParser = defineParser({
|
|
7
|
-
name: "tsx",
|
|
8
|
-
extNames: [".tsx", ".jsx"],
|
|
9
|
-
install() {},
|
|
10
|
-
async parse(file, options = { extname: ".tsx" }) {
|
|
11
|
-
return typescriptParser.parse(file, options);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
//#endregion
|
|
15
|
-
export { defaultParser, defineParser, tsxParser, typescriptParser };
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=parsers.js.map
|