@kubb/agent 5.0.0-beta.7 → 5.0.0-beta.8
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
|
@@ -5255,6 +5255,10 @@ function pascalCase(text, { isFile, prefix = "", suffix = "" } = {}) {
|
|
|
5255
5255
|
const DEFAULT_STUDIO_URL = "https://kubb.studio";
|
|
5256
5256
|
const DEFAULT_BANNER = "simple";
|
|
5257
5257
|
const DEFAULT_EXTENSION = { ".ts": ".ts" };
|
|
5258
|
+
function getMode(fileOrFolder) {
|
|
5259
|
+
if (!fileOrFolder) return "split";
|
|
5260
|
+
return extname(fileOrFolder) ? "single" : "split";
|
|
5261
|
+
}
|
|
5258
5262
|
const stringPatternCache = /* @__PURE__ */ new Map();
|
|
5259
5263
|
function testPattern(value, pattern) {
|
|
5260
5264
|
if (typeof pattern === "string") {
|
|
@@ -5325,7 +5329,7 @@ function defaultResolveOptions(node, { options, exclude = [], include, override
|
|
|
5325
5329
|
}
|
|
5326
5330
|
function defaultResolvePath({ baseName, pathMode, tag, path: groupPath }, { root, output, group }) {
|
|
5327
5331
|
var _a2;
|
|
5328
|
-
if ((pathMode != null ? pathMode :
|
|
5332
|
+
if ((pathMode != null ? pathMode : getMode(path$1.resolve(root, output.path))) === "single") return path$1.resolve(root, output.path);
|
|
5329
5333
|
let result;
|
|
5330
5334
|
if (group && (groupPath || tag)) {
|
|
5331
5335
|
const groupValue = group.type === "path" ? groupPath : tag;
|
|
@@ -5341,10 +5345,10 @@ function defaultResolvePath({ baseName, pathMode, tag, path: groupPath }, { root
|
|
|
5341
5345
|
if (result !== outputDir && !result.startsWith(outputDirWithSep)) throw new Error(`[Kubb] Resolved path "${result}" is outside the output directory "${outputDir}". This may indicate a path traversal attempt in the OpenAPI specification or a misconfigured group.name function.`);
|
|
5342
5346
|
return result;
|
|
5343
5347
|
}
|
|
5344
|
-
function defaultResolveFile({ name, extname: extname2, tag, path: groupPath }, context
|
|
5345
|
-
const pathMode =
|
|
5346
|
-
const baseName = `${pathMode === "single" ? "" :
|
|
5347
|
-
const filePath =
|
|
5348
|
+
function defaultResolveFile({ name, extname: extname2, tag, path: groupPath }, context) {
|
|
5349
|
+
const pathMode = getMode(path$1.resolve(context.root, context.output.path));
|
|
5350
|
+
const baseName = `${pathMode === "single" ? "" : this.default(name, "file")}${extname2}`;
|
|
5351
|
+
const filePath = this.resolvePath({
|
|
5348
5352
|
baseName,
|
|
5349
5353
|
pathMode,
|
|
5350
5354
|
tag,
|
|
@@ -5353,7 +5357,7 @@ function defaultResolveFile({ name, extname: extname2, tag, path: groupPath }, c
|
|
|
5353
5357
|
return createFile({
|
|
5354
5358
|
path: filePath,
|
|
5355
5359
|
baseName: path$1.basename(filePath),
|
|
5356
|
-
meta: { pluginName:
|
|
5360
|
+
meta: { pluginName: this.pluginName },
|
|
5357
5361
|
sources: [],
|
|
5358
5362
|
imports: [],
|
|
5359
5363
|
exports: []
|
|
@@ -5405,16 +5409,16 @@ function defaultResolveFooter(node, { output }) {
|
|
|
5405
5409
|
if (typeof (output == null ? void 0 : output.footer) === "string") return output.footer;
|
|
5406
5410
|
}
|
|
5407
5411
|
function defineResolver(build) {
|
|
5408
|
-
|
|
5409
|
-
|
|
5412
|
+
let resolver;
|
|
5413
|
+
resolver = {
|
|
5410
5414
|
default: defaultResolver,
|
|
5411
5415
|
resolveOptions: defaultResolveOptions,
|
|
5412
5416
|
resolvePath: defaultResolvePath,
|
|
5413
|
-
resolveFile: (params, context) => defaultResolveFile(params, context
|
|
5417
|
+
resolveFile: (params, context) => defaultResolveFile.call(resolver, params, context),
|
|
5414
5418
|
resolveBanner: defaultResolveBanner,
|
|
5415
5419
|
resolveFooter: defaultResolveFooter,
|
|
5416
|
-
...build(
|
|
5417
|
-
}
|
|
5420
|
+
...build()
|
|
5421
|
+
};
|
|
5418
5422
|
return resolver;
|
|
5419
5423
|
}
|
|
5420
5424
|
function encodeAst(input) {
|
|
@@ -5520,18 +5524,6 @@ var FileManager = (_a$1 = class {
|
|
|
5520
5524
|
__privateSet$1(this, _filesCache, null);
|
|
5521
5525
|
return resolvedFiles;
|
|
5522
5526
|
}, _a$1);
|
|
5523
|
-
async function applyHookResult(result, driver, rendererFactory) {
|
|
5524
|
-
if (!result) return;
|
|
5525
|
-
if (Array.isArray(result)) {
|
|
5526
|
-
driver.fileManager.upsert(...result);
|
|
5527
|
-
return;
|
|
5528
|
-
}
|
|
5529
|
-
if (!rendererFactory) return;
|
|
5530
|
-
const renderer = rendererFactory();
|
|
5531
|
-
await renderer.render(result);
|
|
5532
|
-
driver.fileManager.upsert(...renderer.files);
|
|
5533
|
-
renderer.unmount();
|
|
5534
|
-
}
|
|
5535
5527
|
function enforceOrder(enforce) {
|
|
5536
5528
|
return enforce === "pre" ? -1 : enforce === "post" ? 1 : 0;
|
|
5537
5529
|
}
|
|
@@ -5586,8 +5578,7 @@ var PluginDriver = (_b$1 = class {
|
|
|
5586
5578
|
* ```
|
|
5587
5579
|
*/
|
|
5588
5580
|
static getMode(fileOrFolder) {
|
|
5589
|
-
|
|
5590
|
-
return extname(fileOrFolder) ? "single" : "split";
|
|
5581
|
+
return getMode(fileOrFolder);
|
|
5591
5582
|
}
|
|
5592
5583
|
get hooks() {
|
|
5593
5584
|
return this.options.hooks;
|
|
@@ -5844,13 +5835,25 @@ normalizePlugin_fn = function(hookPlugin) {
|
|
|
5844
5835
|
}, createDefaultResolver_fn = function(pluginName) {
|
|
5845
5836
|
const existingResolver = __privateGet$1(this, _defaultResolvers).get(pluginName);
|
|
5846
5837
|
if (existingResolver) return existingResolver;
|
|
5847
|
-
const resolver = defineResolver((
|
|
5838
|
+
const resolver = defineResolver(() => ({
|
|
5848
5839
|
name: "default",
|
|
5849
5840
|
pluginName
|
|
5850
5841
|
}));
|
|
5851
5842
|
__privateGet$1(this, _defaultResolvers).set(pluginName, resolver);
|
|
5852
5843
|
return resolver;
|
|
5853
5844
|
}, _b$1);
|
|
5845
|
+
async function applyHookResult(result, driver, rendererFactory) {
|
|
5846
|
+
if (!result) return;
|
|
5847
|
+
if (Array.isArray(result)) {
|
|
5848
|
+
driver.fileManager.upsert(...result);
|
|
5849
|
+
return;
|
|
5850
|
+
}
|
|
5851
|
+
if (!rendererFactory) return;
|
|
5852
|
+
const renderer = rendererFactory();
|
|
5853
|
+
await renderer.render(result);
|
|
5854
|
+
driver.fileManager.upsert(...renderer.files);
|
|
5855
|
+
renderer.unmount();
|
|
5856
|
+
}
|
|
5854
5857
|
|
|
5855
5858
|
var __defProp = Object.defineProperty;
|
|
5856
5859
|
var __typeError = (msg) => {
|
|
@@ -6249,6 +6252,7 @@ eachParam_fn = function(fn) {
|
|
|
6249
6252
|
fn(raw, __privateMethod(this, _URLPath_instances, transformParam_fn).call(this, raw));
|
|
6250
6253
|
}
|
|
6251
6254
|
}, _b);
|
|
6255
|
+
var version$1 = "5.0.0-beta.8";
|
|
6252
6256
|
var Node$1 = (_c = class {
|
|
6253
6257
|
constructor(value) {
|
|
6254
6258
|
__publicField(this, "value");
|
|
@@ -6415,26 +6419,21 @@ var FileProcessor = (_e = class {
|
|
|
6415
6419
|
function createStorage(build2) {
|
|
6416
6420
|
return (options) => build2(options != null ? options : {});
|
|
6417
6421
|
}
|
|
6418
|
-
function isMissingPathError(error) {
|
|
6419
|
-
return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
|
6420
|
-
}
|
|
6421
6422
|
const fsStorage = createStorage(() => ({
|
|
6422
6423
|
name: "fs",
|
|
6423
6424
|
async hasItem(key) {
|
|
6424
6425
|
try {
|
|
6425
6426
|
await access(resolve(key));
|
|
6426
6427
|
return true;
|
|
6427
|
-
} catch (
|
|
6428
|
-
|
|
6429
|
-
throw new Error(`Failed to access storage item "${key}"`, { cause: error });
|
|
6428
|
+
} catch (_error) {
|
|
6429
|
+
return false;
|
|
6430
6430
|
}
|
|
6431
6431
|
},
|
|
6432
6432
|
async getItem(key) {
|
|
6433
6433
|
try {
|
|
6434
6434
|
return await readFile$1(resolve(key), "utf8");
|
|
6435
|
-
} catch (
|
|
6436
|
-
|
|
6437
|
-
throw new Error(`Failed to read storage item "${key}"`, { cause: error });
|
|
6435
|
+
} catch (_error) {
|
|
6436
|
+
return null;
|
|
6438
6437
|
}
|
|
6439
6438
|
},
|
|
6440
6439
|
async setItem(key, value) {
|
|
@@ -6450,9 +6449,8 @@ const fsStorage = createStorage(() => ({
|
|
|
6450
6449
|
let entries;
|
|
6451
6450
|
try {
|
|
6452
6451
|
entries = await readdir$1(dir, { withFileTypes: true });
|
|
6453
|
-
} catch (
|
|
6454
|
-
|
|
6455
|
-
throw new Error(`Failed to list storage keys under "${resolvedBase}"`, { cause: error });
|
|
6452
|
+
} catch (_error) {
|
|
6453
|
+
return;
|
|
6456
6454
|
}
|
|
6457
6455
|
for (const entry of entries) {
|
|
6458
6456
|
const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
|
|
@@ -6468,37 +6466,43 @@ const fsStorage = createStorage(() => ({
|
|
|
6468
6466
|
await clean(resolve(base));
|
|
6469
6467
|
}
|
|
6470
6468
|
}));
|
|
6471
|
-
var version$1 = "5.0.0-beta.7";
|
|
6472
|
-
function getDiagnosticInfo() {
|
|
6473
|
-
return {
|
|
6474
|
-
nodeVersion: version$2,
|
|
6475
|
-
KubbVersion: version$1,
|
|
6476
|
-
platform: process.platform,
|
|
6477
|
-
arch: process.arch,
|
|
6478
|
-
cwd: process.cwd()
|
|
6479
|
-
};
|
|
6480
|
-
}
|
|
6481
|
-
function isInputPath(config) {
|
|
6482
|
-
return typeof (config == null ? void 0 : config.input) === "object" && config.input !== null && "path" in config.input;
|
|
6483
|
-
}
|
|
6484
6469
|
async function setup(userConfig, options = {}) {
|
|
6485
|
-
var _a2, _b2, _c2, _d2, _e2, _f, _g, _h, _i
|
|
6470
|
+
var _a2, _b2, _c2, _d2, _e2, _f, _g, _h, _i;
|
|
6486
6471
|
const hooks = (_a2 = options.hooks) != null ? _a2 : new AsyncEventEmitter();
|
|
6472
|
+
const config = {
|
|
6473
|
+
...userConfig,
|
|
6474
|
+
root: userConfig.root || process.cwd(),
|
|
6475
|
+
parsers: (_b2 = userConfig.parsers) != null ? _b2 : [],
|
|
6476
|
+
adapter: userConfig.adapter,
|
|
6477
|
+
output: {
|
|
6478
|
+
format: false,
|
|
6479
|
+
lint: false,
|
|
6480
|
+
extension: DEFAULT_EXTENSION,
|
|
6481
|
+
defaultBanner: DEFAULT_BANNER,
|
|
6482
|
+
...userConfig.output
|
|
6483
|
+
},
|
|
6484
|
+
storage: (_c2 = userConfig.storage) != null ? _c2 : fsStorage(),
|
|
6485
|
+
devtools: userConfig.devtools ? {
|
|
6486
|
+
studioUrl: DEFAULT_STUDIO_URL,
|
|
6487
|
+
...typeof userConfig.devtools === "boolean" ? {} : userConfig.devtools
|
|
6488
|
+
} : void 0,
|
|
6489
|
+
plugins: (_d2 = userConfig.plugins) != null ? _d2 : []
|
|
6490
|
+
};
|
|
6491
|
+
const driver = new PluginDriver(config, { hooks });
|
|
6487
6492
|
const sources = /* @__PURE__ */ new Map();
|
|
6488
6493
|
const diagnosticInfo = getDiagnosticInfo();
|
|
6489
|
-
if (Array.isArray(userConfig.input)) await hooks.emit("kubb:warn", { message: "This feature is still under development \u2014 use with caution" });
|
|
6490
6494
|
await hooks.emit("kubb:debug", {
|
|
6491
6495
|
date: /* @__PURE__ */ new Date(),
|
|
6492
6496
|
logs: [
|
|
6493
6497
|
"Configuration:",
|
|
6494
6498
|
` \u2022 Name: ${userConfig.name || "unnamed"}`,
|
|
6495
6499
|
` \u2022 Root: ${userConfig.root || process.cwd()}`,
|
|
6496
|
-
` \u2022 Output: ${((
|
|
6497
|
-
` \u2022 Plugins: ${((
|
|
6500
|
+
` \u2022 Output: ${((_e2 = userConfig.output) == null ? void 0 : _e2.path) || "not specified"}`,
|
|
6501
|
+
` \u2022 Plugins: ${((_f = userConfig.plugins) == null ? void 0 : _f.length) || 0}`,
|
|
6498
6502
|
"Output Settings:",
|
|
6499
|
-
` \u2022 Storage: ${
|
|
6500
|
-
` \u2022 Formatter: ${((
|
|
6501
|
-
` \u2022 Linter: ${((
|
|
6503
|
+
` \u2022 Storage: ${config.storage.name}`,
|
|
6504
|
+
` \u2022 Formatter: ${((_g = userConfig.output) == null ? void 0 : _g.format) || "none"}`,
|
|
6505
|
+
` \u2022 Linter: ${((_h = userConfig.output) == null ? void 0 : _h.lint) || "none"}`,
|
|
6502
6506
|
"Environment:",
|
|
6503
6507
|
Object.entries(diagnosticInfo).map(([key, value]) => ` \u2022 ${key}: ${value}`).join("\n")
|
|
6504
6508
|
]
|
|
@@ -6517,39 +6521,18 @@ async function setup(userConfig, options = {}) {
|
|
|
6517
6521
|
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 });
|
|
6518
6522
|
}
|
|
6519
6523
|
}
|
|
6520
|
-
const config = {
|
|
6521
|
-
...userConfig,
|
|
6522
|
-
root: userConfig.root || process.cwd(),
|
|
6523
|
-
parsers: (_g = userConfig.parsers) != null ? _g : [],
|
|
6524
|
-
adapter: userConfig.adapter,
|
|
6525
|
-
output: {
|
|
6526
|
-
format: false,
|
|
6527
|
-
lint: false,
|
|
6528
|
-
write: true,
|
|
6529
|
-
extension: DEFAULT_EXTENSION,
|
|
6530
|
-
defaultBanner: DEFAULT_BANNER,
|
|
6531
|
-
...userConfig.output
|
|
6532
|
-
},
|
|
6533
|
-
devtools: userConfig.devtools ? {
|
|
6534
|
-
studioUrl: DEFAULT_STUDIO_URL,
|
|
6535
|
-
...typeof userConfig.devtools === "boolean" ? {} : userConfig.devtools
|
|
6536
|
-
} : void 0,
|
|
6537
|
-
plugins: (_h = userConfig.plugins) != null ? _h : []
|
|
6538
|
-
};
|
|
6539
|
-
const storage = config.output.write === false ? null : (_i = config.storage) != null ? _i : fsStorage();
|
|
6540
6524
|
if (config.output.clean) {
|
|
6541
6525
|
await hooks.emit("kubb:debug", {
|
|
6542
6526
|
date: /* @__PURE__ */ new Date(),
|
|
6543
6527
|
logs: ["Cleaning output directories", ` \u2022 Output: ${config.output.path}`]
|
|
6544
6528
|
});
|
|
6545
|
-
await
|
|
6529
|
+
await config.storage.clear(resolve(config.root, config.output.path));
|
|
6546
6530
|
}
|
|
6547
|
-
const driver = new PluginDriver(config, { hooks });
|
|
6548
6531
|
function registerMiddlewareHook(event, middlewareHooks) {
|
|
6549
6532
|
const handler = middlewareHooks[event];
|
|
6550
6533
|
if (handler) hooks.on(event, handler);
|
|
6551
6534
|
}
|
|
6552
|
-
for (const middleware of (
|
|
6535
|
+
for (const middleware of (_i = config.middleware) != null ? _i : []) for (const event of Object.keys(middleware.hooks)) registerMiddlewareHook(event, middleware.hooks);
|
|
6553
6536
|
if (config.adapter) {
|
|
6554
6537
|
const source = inputToAdapterSource(config);
|
|
6555
6538
|
await hooks.emit("kubb:debug", {
|
|
@@ -6571,15 +6554,14 @@ async function setup(userConfig, options = {}) {
|
|
|
6571
6554
|
config,
|
|
6572
6555
|
hooks,
|
|
6573
6556
|
driver,
|
|
6574
|
-
sources
|
|
6575
|
-
storage
|
|
6557
|
+
sources
|
|
6576
6558
|
};
|
|
6577
6559
|
}
|
|
6578
6560
|
async function runPluginAstHooks(plugin, context) {
|
|
6579
6561
|
var _a2, _b2, _c2;
|
|
6580
6562
|
const { adapter, inputNode, resolver, driver } = context;
|
|
6581
6563
|
const { exclude, include, override } = plugin.options;
|
|
6582
|
-
if (!adapter || !inputNode) throw new Error(`[${plugin.name}] No adapter found. Add an OAS adapter (e.g.
|
|
6564
|
+
if (!adapter || !inputNode) throw new Error(`[${plugin.name}] No adapter found. Add an OAS adapter (e.g. adapterOas()) before this plugin in your Kubb config.`);
|
|
6583
6565
|
function resolveRenderer(gen) {
|
|
6584
6566
|
var _a3, _b3;
|
|
6585
6567
|
return gen.renderer === null ? void 0 : (_b3 = (_a3 = gen.renderer) != null ? _a3 : plugin.renderer) != null ? _b3 : context.config.renderer;
|
|
@@ -6664,7 +6646,7 @@ async function runPluginAstHooks(plugin, context) {
|
|
|
6664
6646
|
}
|
|
6665
6647
|
async function safeBuild(setupResult) {
|
|
6666
6648
|
var _a2;
|
|
6667
|
-
const { driver, hooks, sources
|
|
6649
|
+
const { driver, hooks, sources } = setupResult;
|
|
6668
6650
|
const failedPlugins = /* @__PURE__ */ new Set();
|
|
6669
6651
|
const pluginTimings = /* @__PURE__ */ new Map();
|
|
6670
6652
|
const config = driver.config;
|
|
@@ -6755,6 +6737,7 @@ async function safeBuild(setupResult) {
|
|
|
6755
6737
|
});
|
|
6756
6738
|
await fileProcessor.run(files, {
|
|
6757
6739
|
parsers: parsersMap,
|
|
6740
|
+
mode: "parallel",
|
|
6758
6741
|
extension: config.output.extension,
|
|
6759
6742
|
onStart: async (processingFiles) => {
|
|
6760
6743
|
await hooks.emit("kubb:files:processing:start", { files: processingFiles });
|
|
@@ -6769,7 +6752,7 @@ async function safeBuild(setupResult) {
|
|
|
6769
6752
|
config
|
|
6770
6753
|
});
|
|
6771
6754
|
if (source) {
|
|
6772
|
-
await
|
|
6755
|
+
await config.storage.setItem(file.path, source);
|
|
6773
6756
|
sources.set(file.path, source);
|
|
6774
6757
|
}
|
|
6775
6758
|
},
|
|
@@ -6822,13 +6805,21 @@ async function build(setupResult) {
|
|
|
6822
6805
|
sources
|
|
6823
6806
|
};
|
|
6824
6807
|
}
|
|
6808
|
+
function getDiagnosticInfo() {
|
|
6809
|
+
return {
|
|
6810
|
+
nodeVersion: version$2,
|
|
6811
|
+
KubbVersion: version$1,
|
|
6812
|
+
platform: process.platform,
|
|
6813
|
+
arch: process.arch,
|
|
6814
|
+
cwd: process.cwd()
|
|
6815
|
+
};
|
|
6816
|
+
}
|
|
6817
|
+
function isInputPath(config) {
|
|
6818
|
+
return typeof (config == null ? void 0 : config.input) === "object" && config.input !== null && "path" in config.input;
|
|
6819
|
+
}
|
|
6825
6820
|
function inputToAdapterSource(config) {
|
|
6826
6821
|
const input = config.input;
|
|
6827
6822
|
if (!input) throw new Error("[kubb] input is required when using an adapter. Provide input.path or input.data in your config.");
|
|
6828
|
-
if (Array.isArray(input)) return {
|
|
6829
|
-
type: "paths",
|
|
6830
|
-
paths: input.map((i) => new URLPath(i.path).isURL ? i.path : resolve(config.root, i.path))
|
|
6831
|
-
};
|
|
6832
6823
|
if ("data" in input) return {
|
|
6833
6824
|
type: "data",
|
|
6834
6825
|
data: input.data
|
|
@@ -6905,7 +6896,7 @@ const memoryStorage = createStorage(() => {
|
|
|
6905
6896
|
};
|
|
6906
6897
|
});
|
|
6907
6898
|
|
|
6908
|
-
var version = "5.0.0-beta.
|
|
6899
|
+
var version = "5.0.0-beta.8";
|
|
6909
6900
|
|
|
6910
6901
|
function isCommandMessage(msg) {
|
|
6911
6902
|
return msg.type === "command";
|
|
@@ -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.4/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.7/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.11/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.4_rolldown@1.0.0/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.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/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.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/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.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/route-rules-utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/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","../../../../../core/dist/chunk--u3MIqq1.js","../../../../../ast/dist/index.js","../../../../../core/dist/PluginDriver-
|
|
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.4/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.7/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.11/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.4_rolldown@1.0.0/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.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/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.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/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.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/route-rules-utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/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","../../../../../core/dist/chunk--u3MIqq1.js","../../../../../ast/dist/index.js","../../../../../core/dist/PluginDriver-D8Z0Htid.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","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/publish.ts","../../../../server/utils/setupHookListener.ts","../../../../server/constants.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/utils/runtimeConfig.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0/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","normalizeKey","defineDriver","DRIVER_NAME","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","_inlineAppConfig","createRadixRouter","formatMs","resolve","_a","process","__defProp","path","_b","extname","__privateAdd","__privateMethod","__privateGet","__privateSet","__publicField","readFile","writeFile","build","walk","readdir","_c","_d","_e","files","error","version","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,31,57,58,59,60]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.8",
|
|
4
4
|
"description": "HTTP agent server for Kubb. Exposes code generation via REST API and WebSocket with real-time Kubb Studio integration, machine binding, and Docker support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -43,18 +43,18 @@
|
|
|
43
43
|
"tinyexec": "^1.1.2",
|
|
44
44
|
"unstorage": "^1.17.5",
|
|
45
45
|
"ws": "^8.20.0",
|
|
46
|
-
"@kubb/
|
|
47
|
-
"@kubb/
|
|
46
|
+
"@kubb/core": "5.0.0-beta.8",
|
|
47
|
+
"@kubb/ast": "5.0.0-beta.8"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/ws": "^8.18.1",
|
|
51
|
-
"msw": "^2.14.
|
|
51
|
+
"msw": "^2.14.5",
|
|
52
52
|
"nitropack": "^2.13.4",
|
|
53
|
-
"vite": "^8.0.
|
|
53
|
+
"vite": "^8.0.11",
|
|
54
54
|
"@internals/utils": "0.0.0",
|
|
55
|
-
"@kubb/adapter-oas": "5.0.0-beta.
|
|
56
|
-
"@kubb/parser-ts": "5.0.0-beta.
|
|
57
|
-
"@kubb/renderer-jsx": "5.0.0-beta.
|
|
55
|
+
"@kubb/adapter-oas": "5.0.0-beta.8",
|
|
56
|
+
"@kubb/parser-ts": "5.0.0-beta.8",
|
|
57
|
+
"@kubb/renderer-jsx": "5.0.0-beta.8"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=22"
|