@kubb/agent 5.0.0-beta.10 → 5.0.0-beta.11
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
|
@@ -5498,6 +5498,13 @@ var FileManager = (_a$1 = class {
|
|
|
5498
5498
|
__privateSet$1(this, _filesCache, null);
|
|
5499
5499
|
}
|
|
5500
5500
|
/**
|
|
5501
|
+
* Releases all stored files. Called by the core after `kubb:build:end` to
|
|
5502
|
+
* free the per-plugin FileNode caches for the rest of the process lifetime.
|
|
5503
|
+
*/
|
|
5504
|
+
dispose() {
|
|
5505
|
+
this.clear();
|
|
5506
|
+
}
|
|
5507
|
+
/**
|
|
5501
5508
|
* All stored files, sorted by path length (shorter paths first).
|
|
5502
5509
|
*/
|
|
5503
5510
|
get files() {
|
|
@@ -5727,6 +5734,10 @@ var PluginDriver = (_b$1 = class {
|
|
|
5727
5734
|
for (const [event, handlers] of __privateGet$1(this, _hookListeners)) for (const handler of handlers) this.hooks.off(event, handler);
|
|
5728
5735
|
__privateGet$1(this, _hookListeners).clear();
|
|
5729
5736
|
__privateGet$1(this, _pluginsWithEventGenerators).clear();
|
|
5737
|
+
__privateGet$1(this, _resolvers).clear();
|
|
5738
|
+
__privateGet$1(this, _defaultResolvers).clear();
|
|
5739
|
+
this.fileManager.dispose();
|
|
5740
|
+
this.inputNode = void 0;
|
|
5730
5741
|
}
|
|
5731
5742
|
/**
|
|
5732
5743
|
* Merges `partial` with the plugin's default resolver and stores the result.
|
|
@@ -6252,7 +6263,10 @@ eachParam_fn = function(fn) {
|
|
|
6252
6263
|
fn(raw, __privateMethod(this, _URLPath_instances, transformParam_fn).call(this, raw));
|
|
6253
6264
|
}
|
|
6254
6265
|
}, _b);
|
|
6255
|
-
var version$1 = "5.0.0-beta.
|
|
6266
|
+
var version$1 = "5.0.0-beta.11";
|
|
6267
|
+
function createStorage(build2) {
|
|
6268
|
+
return (options) => build2(options != null ? options : {});
|
|
6269
|
+
}
|
|
6256
6270
|
var Node$1 = (_c = class {
|
|
6257
6271
|
constructor(value) {
|
|
6258
6272
|
__publicField(this, "value");
|
|
@@ -6382,7 +6396,8 @@ function joinSources(file) {
|
|
|
6382
6396
|
}
|
|
6383
6397
|
var FileProcessor = (_e = class {
|
|
6384
6398
|
constructor() {
|
|
6385
|
-
|
|
6399
|
+
__publicField(this, "events", new AsyncEventEmitter());
|
|
6400
|
+
__privateAdd(this, _limit, pLimit(16));
|
|
6386
6401
|
}
|
|
6387
6402
|
async parse(file, { parsers, extension } = {}) {
|
|
6388
6403
|
const parseExtName = (extension == null ? void 0 : extension[file.extname]) || void 0;
|
|
@@ -6391,8 +6406,8 @@ var FileProcessor = (_e = class {
|
|
|
6391
6406
|
if (!parser) return joinSources(file);
|
|
6392
6407
|
return parser.parse(file, { extname: parseExtName });
|
|
6393
6408
|
}
|
|
6394
|
-
async run(files, { parsers, mode = "sequential", extension
|
|
6395
|
-
await (
|
|
6409
|
+
async run(files, { parsers, mode = "sequential", extension } = {}) {
|
|
6410
|
+
await this.events.emit("start", files);
|
|
6396
6411
|
const total = files.length;
|
|
6397
6412
|
let processed = 0;
|
|
6398
6413
|
const processOne = async (file) => {
|
|
@@ -6402,23 +6417,20 @@ var FileProcessor = (_e = class {
|
|
|
6402
6417
|
});
|
|
6403
6418
|
const currentProcessed = ++processed;
|
|
6404
6419
|
const percentage = currentProcessed / total * 100;
|
|
6405
|
-
await (
|
|
6420
|
+
await this.events.emit("update", {
|
|
6406
6421
|
file,
|
|
6407
6422
|
source,
|
|
6408
6423
|
processed: currentProcessed,
|
|
6409
6424
|
percentage,
|
|
6410
6425
|
total
|
|
6411
|
-
})
|
|
6426
|
+
});
|
|
6412
6427
|
};
|
|
6413
6428
|
if (mode === "sequential") for (const file of files) await processOne(file);
|
|
6414
6429
|
else await Promise.all(files.map((file) => __privateGet(this, _limit).call(this, () => processOne(file))));
|
|
6415
|
-
await (
|
|
6430
|
+
await this.events.emit("end", files);
|
|
6416
6431
|
return files;
|
|
6417
6432
|
}
|
|
6418
6433
|
}, _limit = new WeakMap(), _e);
|
|
6419
|
-
function createStorage(build2) {
|
|
6420
|
-
return (options) => build2(options != null ? options : {});
|
|
6421
|
-
}
|
|
6422
6434
|
const fsStorage = createStorage(() => ({
|
|
6423
6435
|
name: "fs",
|
|
6424
6436
|
async hasItem(key) {
|
|
@@ -6466,6 +6478,36 @@ const fsStorage = createStorage(() => ({
|
|
|
6466
6478
|
await clean(resolve(base));
|
|
6467
6479
|
}
|
|
6468
6480
|
}));
|
|
6481
|
+
function createSourcesView(storage) {
|
|
6482
|
+
const paths = /* @__PURE__ */ new Set();
|
|
6483
|
+
return createStorage(() => ({
|
|
6484
|
+
name: `${storage.name}:sources`,
|
|
6485
|
+
async hasItem(key) {
|
|
6486
|
+
return paths.has(key) && await storage.hasItem(key);
|
|
6487
|
+
},
|
|
6488
|
+
async getItem(key) {
|
|
6489
|
+
return paths.has(key) ? storage.getItem(key) : null;
|
|
6490
|
+
},
|
|
6491
|
+
async setItem(key, value) {
|
|
6492
|
+
paths.add(key);
|
|
6493
|
+
await storage.setItem(key, value);
|
|
6494
|
+
},
|
|
6495
|
+
async removeItem(key) {
|
|
6496
|
+
paths.delete(key);
|
|
6497
|
+
await storage.removeItem(key);
|
|
6498
|
+
},
|
|
6499
|
+
async getKeys(base) {
|
|
6500
|
+
if (!base) return [...paths];
|
|
6501
|
+
const result = [];
|
|
6502
|
+
for (const key of paths) if (key.startsWith(base)) result.push(key);
|
|
6503
|
+
return result;
|
|
6504
|
+
},
|
|
6505
|
+
async clear() {
|
|
6506
|
+
paths.clear();
|
|
6507
|
+
await storage.clear();
|
|
6508
|
+
}
|
|
6509
|
+
}))();
|
|
6510
|
+
}
|
|
6469
6511
|
async function setup(userConfig, options = {}) {
|
|
6470
6512
|
var _a2, _b2, _c2, _d2, _e2, _f, _g, _h, _i;
|
|
6471
6513
|
const hooks = (_a2 = options.hooks) != null ? _a2 : new AsyncEventEmitter();
|
|
@@ -6489,7 +6531,7 @@ async function setup(userConfig, options = {}) {
|
|
|
6489
6531
|
plugins: (_d2 = userConfig.plugins) != null ? _d2 : []
|
|
6490
6532
|
};
|
|
6491
6533
|
const driver = new PluginDriver(config, { hooks });
|
|
6492
|
-
const
|
|
6534
|
+
const storage = createSourcesView(config.storage);
|
|
6493
6535
|
const diagnosticInfo = getDiagnosticInfo();
|
|
6494
6536
|
await hooks.emit("kubb:debug", {
|
|
6495
6537
|
date: /* @__PURE__ */ new Date(),
|
|
@@ -6554,7 +6596,7 @@ async function setup(userConfig, options = {}) {
|
|
|
6554
6596
|
config,
|
|
6555
6597
|
hooks,
|
|
6556
6598
|
driver,
|
|
6557
|
-
|
|
6599
|
+
storage
|
|
6558
6600
|
};
|
|
6559
6601
|
}
|
|
6560
6602
|
async function runPluginAstHooks(plugin, context) {
|
|
@@ -6646,10 +6688,49 @@ async function runPluginAstHooks(plugin, context) {
|
|
|
6646
6688
|
}
|
|
6647
6689
|
async function safeBuild(setupResult) {
|
|
6648
6690
|
var _a2;
|
|
6649
|
-
const { driver, hooks,
|
|
6691
|
+
const { driver, hooks, storage } = setupResult;
|
|
6650
6692
|
const failedPlugins = /* @__PURE__ */ new Set();
|
|
6651
6693
|
const pluginTimings = /* @__PURE__ */ new Map();
|
|
6652
6694
|
const config = driver.config;
|
|
6695
|
+
const writtenPaths = /* @__PURE__ */ new Set();
|
|
6696
|
+
const parsersMap = /* @__PURE__ */ new Map();
|
|
6697
|
+
for (const parser of config.parsers) if (parser.extNames) for (const extname of parser.extNames) parsersMap.set(extname, parser);
|
|
6698
|
+
const fileProcessor = new FileProcessor();
|
|
6699
|
+
fileProcessor.events.on("start", async (processingFiles) => {
|
|
6700
|
+
await hooks.emit("kubb:files:processing:start", { files: processingFiles });
|
|
6701
|
+
});
|
|
6702
|
+
fileProcessor.events.on("update", async ({ file, source, processed, total, percentage }) => {
|
|
6703
|
+
await hooks.emit("kubb:file:processing:update", {
|
|
6704
|
+
file,
|
|
6705
|
+
source,
|
|
6706
|
+
processed,
|
|
6707
|
+
total,
|
|
6708
|
+
percentage,
|
|
6709
|
+
config
|
|
6710
|
+
});
|
|
6711
|
+
if (source) await storage.setItem(file.path, source);
|
|
6712
|
+
});
|
|
6713
|
+
fileProcessor.events.on("end", async (processed) => {
|
|
6714
|
+
await hooks.emit("kubb:files:processing:end", { files: processed });
|
|
6715
|
+
await hooks.emit("kubb:debug", {
|
|
6716
|
+
date: /* @__PURE__ */ new Date(),
|
|
6717
|
+
logs: [`\u2713 File write process completed for ${processed.length} files`]
|
|
6718
|
+
});
|
|
6719
|
+
});
|
|
6720
|
+
async function flushPendingFiles() {
|
|
6721
|
+
const files = driver.fileManager.files.filter((f) => !writtenPaths.has(f.path));
|
|
6722
|
+
if (files.length === 0) return;
|
|
6723
|
+
await hooks.emit("kubb:debug", {
|
|
6724
|
+
date: /* @__PURE__ */ new Date(),
|
|
6725
|
+
logs: [`Writing ${files.length} files...`]
|
|
6726
|
+
});
|
|
6727
|
+
await fileProcessor.run(files, {
|
|
6728
|
+
parsers: parsersMap,
|
|
6729
|
+
mode: "parallel",
|
|
6730
|
+
extension: config.output.extension
|
|
6731
|
+
});
|
|
6732
|
+
for (const file of files) writtenPaths.add(file.path);
|
|
6733
|
+
}
|
|
6653
6734
|
try {
|
|
6654
6735
|
await driver.emitSetupHooks();
|
|
6655
6736
|
if (driver.adapter && driver.inputNode) await hooks.emit("kubb:build:start", {
|
|
@@ -6685,6 +6766,7 @@ async function safeBuild(setupResult) {
|
|
|
6685
6766
|
},
|
|
6686
6767
|
upsertFile: (...files2) => driver.fileManager.upsert(...files2)
|
|
6687
6768
|
});
|
|
6769
|
+
await flushPendingFiles();
|
|
6688
6770
|
await hooks.emit("kubb:debug", {
|
|
6689
6771
|
date: /* @__PURE__ */ new Date(),
|
|
6690
6772
|
logs: [`\u2713 Plugin started successfully (${formatMs(duration)})`]
|
|
@@ -6704,6 +6786,7 @@ async function safeBuild(setupResult) {
|
|
|
6704
6786
|
},
|
|
6705
6787
|
upsertFile: (...files2) => driver.fileManager.upsert(...files2)
|
|
6706
6788
|
});
|
|
6789
|
+
await flushPendingFiles();
|
|
6707
6790
|
await hooks.emit("kubb:debug", {
|
|
6708
6791
|
date: errorTimestamp,
|
|
6709
6792
|
logs: [
|
|
@@ -6727,43 +6810,8 @@ async function safeBuild(setupResult) {
|
|
|
6727
6810
|
},
|
|
6728
6811
|
upsertFile: (...files2) => driver.fileManager.upsert(...files2)
|
|
6729
6812
|
});
|
|
6813
|
+
await flushPendingFiles();
|
|
6730
6814
|
const files = driver.fileManager.files;
|
|
6731
|
-
const parsersMap = /* @__PURE__ */ new Map();
|
|
6732
|
-
for (const parser of config.parsers) if (parser.extNames) for (const extname of parser.extNames) parsersMap.set(extname, parser);
|
|
6733
|
-
const fileProcessor = new FileProcessor();
|
|
6734
|
-
await hooks.emit("kubb:debug", {
|
|
6735
|
-
date: /* @__PURE__ */ new Date(),
|
|
6736
|
-
logs: [`Writing ${files.length} files...`]
|
|
6737
|
-
});
|
|
6738
|
-
await fileProcessor.run(files, {
|
|
6739
|
-
parsers: parsersMap,
|
|
6740
|
-
mode: "parallel",
|
|
6741
|
-
extension: config.output.extension,
|
|
6742
|
-
onStart: async (processingFiles) => {
|
|
6743
|
-
await hooks.emit("kubb:files:processing:start", { files: processingFiles });
|
|
6744
|
-
},
|
|
6745
|
-
onUpdate: async ({ file, source, processed, total, percentage }) => {
|
|
6746
|
-
await hooks.emit("kubb:file:processing:update", {
|
|
6747
|
-
file,
|
|
6748
|
-
source,
|
|
6749
|
-
processed,
|
|
6750
|
-
total,
|
|
6751
|
-
percentage,
|
|
6752
|
-
config
|
|
6753
|
-
});
|
|
6754
|
-
if (source) {
|
|
6755
|
-
await config.storage.setItem(file.path, source);
|
|
6756
|
-
sources.set(file.path, source);
|
|
6757
|
-
}
|
|
6758
|
-
},
|
|
6759
|
-
onEnd: async (processedFiles) => {
|
|
6760
|
-
await hooks.emit("kubb:files:processing:end", { files: processedFiles });
|
|
6761
|
-
await hooks.emit("kubb:debug", {
|
|
6762
|
-
date: /* @__PURE__ */ new Date(),
|
|
6763
|
-
logs: [`\u2713 File write process completed for ${processedFiles.length} files`]
|
|
6764
|
-
});
|
|
6765
|
-
}
|
|
6766
|
-
});
|
|
6767
6815
|
await hooks.emit("kubb:build:end", {
|
|
6768
6816
|
files,
|
|
6769
6817
|
config,
|
|
@@ -6774,7 +6822,7 @@ async function safeBuild(setupResult) {
|
|
|
6774
6822
|
files,
|
|
6775
6823
|
driver,
|
|
6776
6824
|
pluginTimings,
|
|
6777
|
-
|
|
6825
|
+
storage
|
|
6778
6826
|
};
|
|
6779
6827
|
} catch (error) {
|
|
6780
6828
|
return {
|
|
@@ -6783,14 +6831,14 @@ async function safeBuild(setupResult) {
|
|
|
6783
6831
|
driver,
|
|
6784
6832
|
pluginTimings,
|
|
6785
6833
|
error,
|
|
6786
|
-
|
|
6834
|
+
storage
|
|
6787
6835
|
};
|
|
6788
6836
|
} finally {
|
|
6789
6837
|
driver.dispose();
|
|
6790
6838
|
}
|
|
6791
6839
|
}
|
|
6792
6840
|
async function build(setupResult) {
|
|
6793
|
-
const { files, driver, failedPlugins, pluginTimings, error,
|
|
6841
|
+
const { files, driver, failedPlugins, pluginTimings, error, storage } = await safeBuild(setupResult);
|
|
6794
6842
|
if (error) throw error;
|
|
6795
6843
|
if (failedPlugins.size > 0) {
|
|
6796
6844
|
const errors = [...failedPlugins].map(({ error: error2 }) => error2);
|
|
@@ -6802,7 +6850,7 @@ async function build(setupResult) {
|
|
|
6802
6850
|
driver,
|
|
6803
6851
|
pluginTimings,
|
|
6804
6852
|
error: void 0,
|
|
6805
|
-
|
|
6853
|
+
storage
|
|
6806
6854
|
};
|
|
6807
6855
|
}
|
|
6808
6856
|
function getDiagnosticInfo() {
|
|
@@ -6841,15 +6889,17 @@ function createKubb(userConfig, options = {}) {
|
|
|
6841
6889
|
get hooks() {
|
|
6842
6890
|
return hooks;
|
|
6843
6891
|
},
|
|
6844
|
-
get
|
|
6845
|
-
|
|
6846
|
-
return
|
|
6892
|
+
get storage() {
|
|
6893
|
+
if (!setupResult) throw new Error("[kubb] setup() must be called before accessing storage");
|
|
6894
|
+
return setupResult.storage;
|
|
6847
6895
|
},
|
|
6848
6896
|
get driver() {
|
|
6849
|
-
|
|
6897
|
+
if (!setupResult) throw new Error("[kubb] setup() must be called before accessing driver");
|
|
6898
|
+
return setupResult.driver;
|
|
6850
6899
|
},
|
|
6851
6900
|
get config() {
|
|
6852
|
-
|
|
6901
|
+
if (!setupResult) throw new Error("[kubb] setup() must be called before accessing config");
|
|
6902
|
+
return setupResult.config;
|
|
6853
6903
|
},
|
|
6854
6904
|
async setup() {
|
|
6855
6905
|
setupResult = await setup(userConfig, { hooks });
|
|
@@ -6896,7 +6946,7 @@ const memoryStorage = createStorage(() => {
|
|
|
6896
6946
|
};
|
|
6897
6947
|
});
|
|
6898
6948
|
|
|
6899
|
-
var version = "5.0.0-beta.
|
|
6949
|
+
var version = "5.0.0-beta.11";
|
|
6900
6950
|
|
|
6901
6951
|
function isCommandMessage(msg) {
|
|
6902
6952
|
return msg.type === "command";
|
|
@@ -6953,7 +7003,7 @@ async function generate({ config, hooks }) {
|
|
|
6953
7003
|
const kubb = createKubb(config, { hooks });
|
|
6954
7004
|
await kubb.setup();
|
|
6955
7005
|
await hooks.emit("kubb:info", { message: config.name ? `Build generation ${config.name}` : "Build generation" });
|
|
6956
|
-
const {
|
|
7006
|
+
const { failedPlugins, error } = await kubb.safeBuild();
|
|
6957
7007
|
await hooks.emit("kubb:info", { message: "Load summary" });
|
|
6958
7008
|
const hasFailures = failedPlugins.size > 0 || error;
|
|
6959
7009
|
if (hasFailures) {
|
|
@@ -6964,11 +7014,11 @@ async function generate({ config, hooks }) {
|
|
|
6964
7014
|
allErrors.forEach((err) => {
|
|
6965
7015
|
hooks.emit("kubb:error", { error: err });
|
|
6966
7016
|
});
|
|
6967
|
-
await hooks.emit("kubb:generation:end", { config,
|
|
7017
|
+
await hooks.emit("kubb:generation:end", { config, storage: kubb.storage });
|
|
6968
7018
|
throw new Error("Generation failed");
|
|
6969
7019
|
}
|
|
6970
7020
|
await hooks.emit("kubb:success", { message: "Generation successfully" });
|
|
6971
|
-
await hooks.emit("kubb:generation:end", { config,
|
|
7021
|
+
await hooks.emit("kubb:generation:end", { config, storage: kubb.storage });
|
|
6972
7022
|
if (config.output.format) {
|
|
6973
7023
|
await hooks.emit("kubb:format:start");
|
|
6974
7024
|
let formatter = config.output.format;
|
|
@@ -7345,14 +7395,17 @@ function setupEventsStream(ws, hooks, getSource) {
|
|
|
7345
7395
|
timestamp: Date.now()
|
|
7346
7396
|
});
|
|
7347
7397
|
});
|
|
7348
|
-
hooks.on("kubb:generation:end", ({ config,
|
|
7398
|
+
hooks.on("kubb:generation:end", async ({ config, storage }) => {
|
|
7349
7399
|
const sourcesRecord = {};
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7400
|
+
for (const key of await storage.getKeys()) {
|
|
7401
|
+
const value = await storage.getItem(key);
|
|
7402
|
+
if (value !== null) {
|
|
7403
|
+
sourcesRecord[key] = value;
|
|
7404
|
+
}
|
|
7405
|
+
}
|
|
7353
7406
|
sendDataMessage({
|
|
7354
7407
|
type: "kubb:generation:end",
|
|
7355
|
-
data: [{ config,
|
|
7408
|
+
data: [{ config, storage: sourcesRecord }],
|
|
7356
7409
|
timestamp: Date.now()
|
|
7357
7410
|
});
|
|
7358
7411
|
});
|
|
@@ -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-CGypdXHg.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.11",
|
|
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,8 +43,8 @@
|
|
|
43
43
|
"tinyexec": "^1.1.2",
|
|
44
44
|
"unstorage": "^1.17.5",
|
|
45
45
|
"ws": "^8.20.0",
|
|
46
|
-
"@kubb/ast": "5.0.0-beta.
|
|
47
|
-
"@kubb/core": "5.0.0-beta.
|
|
46
|
+
"@kubb/ast": "5.0.0-beta.11",
|
|
47
|
+
"@kubb/core": "5.0.0-beta.11"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/ws": "^8.18.1",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"nitropack": "^2.13.4",
|
|
53
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.11",
|
|
56
|
+
"@kubb/parser-ts": "5.0.0-beta.11",
|
|
57
|
+
"@kubb/renderer-jsx": "5.0.0-beta.11"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=22"
|