@kubb/agent 5.0.0-alpha.52 → 5.0.0-alpha.53
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
|
@@ -5690,13 +5690,13 @@ var PluginDriver = (_b$1 = class {
|
|
|
5690
5690
|
return plugin.transformer;
|
|
5691
5691
|
},
|
|
5692
5692
|
warn(message) {
|
|
5693
|
-
driver.hooks.emit("kubb:warn", message);
|
|
5693
|
+
driver.hooks.emit("kubb:warn", { message });
|
|
5694
5694
|
},
|
|
5695
5695
|
error(error) {
|
|
5696
|
-
driver.hooks.emit("kubb:error", typeof error === "string" ? new Error(error) : error);
|
|
5696
|
+
driver.hooks.emit("kubb:error", { error: typeof error === "string" ? new Error(error) : error });
|
|
5697
5697
|
},
|
|
5698
5698
|
info(message) {
|
|
5699
|
-
driver.hooks.emit("kubb:info", message);
|
|
5699
|
+
driver.hooks.emit("kubb:info", { message });
|
|
5700
5700
|
},
|
|
5701
5701
|
openInStudio(options) {
|
|
5702
5702
|
var _a2, _b2;
|
|
@@ -6297,7 +6297,7 @@ const fsStorage = createStorage(() => ({
|
|
|
6297
6297
|
await clean(resolve(base));
|
|
6298
6298
|
}
|
|
6299
6299
|
}));
|
|
6300
|
-
var version$1 = "5.0.0-alpha.
|
|
6300
|
+
var version$1 = "5.0.0-alpha.53";
|
|
6301
6301
|
function getDiagnosticInfo() {
|
|
6302
6302
|
return {
|
|
6303
6303
|
nodeVersion: version$2,
|
|
@@ -6533,7 +6533,7 @@ async function setup(userConfig, options = {}) {
|
|
|
6533
6533
|
const hooks = (_a2 = options.hooks) != null ? _a2 : new AsyncEventEmitter();
|
|
6534
6534
|
const sources = /* @__PURE__ */ new Map();
|
|
6535
6535
|
const diagnosticInfo = getDiagnosticInfo();
|
|
6536
|
-
if (Array.isArray(userConfig.input)) await hooks.emit("kubb:warn", "This feature is still under development \u2014 use with caution");
|
|
6536
|
+
if (Array.isArray(userConfig.input)) await hooks.emit("kubb:warn", { message: "This feature is still under development \u2014 use with caution" });
|
|
6537
6537
|
await hooks.emit("kubb:debug", {
|
|
6538
6538
|
date: /* @__PURE__ */ new Date(),
|
|
6539
6539
|
logs: [
|
|
@@ -6708,7 +6708,7 @@ async function safeBuild(setupResult) {
|
|
|
6708
6708
|
const root = resolve(config.root, config.output.path);
|
|
6709
6709
|
try {
|
|
6710
6710
|
const timestamp = /* @__PURE__ */ new Date();
|
|
6711
|
-
await hooks.emit("kubb:plugin:start", plugin);
|
|
6711
|
+
await hooks.emit("kubb:plugin:start", { plugin });
|
|
6712
6712
|
await hooks.emit("kubb:debug", {
|
|
6713
6713
|
date: timestamp,
|
|
6714
6714
|
logs: ["Starting plugin...", ` \u2022 Plugin Name: ${plugin.name}`]
|
|
@@ -6725,7 +6725,8 @@ async function safeBuild(setupResult) {
|
|
|
6725
6725
|
}
|
|
6726
6726
|
const duration = getElapsedMs(hrStart);
|
|
6727
6727
|
pluginTimings.set(plugin.name, duration);
|
|
6728
|
-
await hooks.emit("kubb:plugin:end",
|
|
6728
|
+
await hooks.emit("kubb:plugin:end", {
|
|
6729
|
+
plugin,
|
|
6729
6730
|
duration,
|
|
6730
6731
|
success: true
|
|
6731
6732
|
});
|
|
@@ -6737,7 +6738,8 @@ async function safeBuild(setupResult) {
|
|
|
6737
6738
|
const error = caughtError;
|
|
6738
6739
|
const errorTimestamp = /* @__PURE__ */ new Date();
|
|
6739
6740
|
const duration = getElapsedMs(hrStart);
|
|
6740
|
-
await hooks.emit("kubb:plugin:end",
|
|
6741
|
+
await hooks.emit("kubb:plugin:end", {
|
|
6742
|
+
plugin,
|
|
6741
6743
|
duration,
|
|
6742
6744
|
success: false,
|
|
6743
6745
|
error
|
|
@@ -6809,7 +6811,7 @@ async function safeBuild(setupResult) {
|
|
|
6809
6811
|
parsers: parsersMap,
|
|
6810
6812
|
extension: config.output.extension,
|
|
6811
6813
|
onStart: async (processingFiles) => {
|
|
6812
|
-
await hooks.emit("kubb:files:processing:start", processingFiles);
|
|
6814
|
+
await hooks.emit("kubb:files:processing:start", { files: processingFiles });
|
|
6813
6815
|
},
|
|
6814
6816
|
onUpdate: async ({ file, source, processed, total, percentage }) => {
|
|
6815
6817
|
await hooks.emit("kubb:file:processing:update", {
|
|
@@ -6826,7 +6828,7 @@ async function safeBuild(setupResult) {
|
|
|
6826
6828
|
}
|
|
6827
6829
|
},
|
|
6828
6830
|
onEnd: async (processedFiles) => {
|
|
6829
|
-
await hooks.emit("kubb:files:processing:end", processedFiles);
|
|
6831
|
+
await hooks.emit("kubb:files:processing:end", { files: processedFiles });
|
|
6830
6832
|
await hooks.emit("kubb:debug", {
|
|
6831
6833
|
date: /* @__PURE__ */ new Date(),
|
|
6832
6834
|
logs: [`\u2713 File write process completed for ${processedFiles.length} files`]
|
|
@@ -6977,7 +6979,7 @@ const memoryStorage = createStorage(() => {
|
|
|
6977
6979
|
};
|
|
6978
6980
|
});
|
|
6979
6981
|
|
|
6980
|
-
var version = "5.0.0-alpha.
|
|
6982
|
+
var version = "5.0.0-alpha.53";
|
|
6981
6983
|
|
|
6982
6984
|
function isCommandMessage(msg) {
|
|
6983
6985
|
return msg.type === "command";
|
|
@@ -7019,23 +7021,23 @@ async function executeHooks({ configHooks, hooks }) {
|
|
|
7019
7021
|
}
|
|
7020
7022
|
const hookId = createHash("sha256").update(command).digest("hex");
|
|
7021
7023
|
await hooks.emit("kubb:hook:start", { id: hookId, command: cmd, args });
|
|
7022
|
-
await hooks.onOnce("kubb:hook:end", async (
|
|
7023
|
-
if (!success) {
|
|
7024
|
-
throw error;
|
|
7024
|
+
await hooks.onOnce("kubb:hook:end", async (ctx) => {
|
|
7025
|
+
if (!ctx.success) {
|
|
7026
|
+
throw ctx.error;
|
|
7025
7027
|
}
|
|
7026
|
-
await hooks.emit("kubb:success", `${command} successfully executed`);
|
|
7028
|
+
await hooks.emit("kubb:success", { message: `${command} successfully executed` });
|
|
7027
7029
|
});
|
|
7028
7030
|
}
|
|
7029
7031
|
}
|
|
7030
7032
|
|
|
7031
7033
|
async function generate({ config, hooks }) {
|
|
7032
|
-
await hooks.emit("kubb:generation:start", config);
|
|
7033
|
-
await hooks.emit("kubb:info", config.name ? `Setup generation ${config.name}` : "Setup generation");
|
|
7034
|
+
await hooks.emit("kubb:generation:start", { config });
|
|
7035
|
+
await hooks.emit("kubb:info", { message: config.name ? `Setup generation ${config.name}` : "Setup generation" });
|
|
7034
7036
|
const kubb = createKubb(config, { hooks });
|
|
7035
7037
|
await kubb.setup();
|
|
7036
|
-
await hooks.emit("kubb:info", config.name ? `Build generation ${config.name}` : "Build generation");
|
|
7038
|
+
await hooks.emit("kubb:info", { message: config.name ? `Build generation ${config.name}` : "Build generation" });
|
|
7037
7039
|
const { files, failedPlugins, error } = await kubb.safeBuild();
|
|
7038
|
-
await hooks.emit("kubb:info", "Load summary");
|
|
7040
|
+
await hooks.emit("kubb:info", { message: "Load summary" });
|
|
7039
7041
|
const hasFailures = failedPlugins.size > 0 || error;
|
|
7040
7042
|
if (hasFailures) {
|
|
7041
7043
|
const allErrors = [
|
|
@@ -7043,23 +7045,23 @@ async function generate({ config, hooks }) {
|
|
|
7043
7045
|
...Array.from(failedPlugins).filter((it) => it.error).map((it) => it.error)
|
|
7044
7046
|
].filter(Boolean);
|
|
7045
7047
|
allErrors.forEach((err) => {
|
|
7046
|
-
hooks.emit("kubb:error", err);
|
|
7048
|
+
hooks.emit("kubb:error", { error: err });
|
|
7047
7049
|
});
|
|
7048
|
-
await hooks.emit("kubb:generation:end", config, files, kubb.sources);
|
|
7050
|
+
await hooks.emit("kubb:generation:end", { config, files, sources: kubb.sources });
|
|
7049
7051
|
throw new Error("Generation failed");
|
|
7050
7052
|
}
|
|
7051
|
-
await hooks.emit("kubb:success", "Generation successfully");
|
|
7052
|
-
await hooks.emit("kubb:generation:end", config, files, kubb.sources);
|
|
7053
|
+
await hooks.emit("kubb:success", { message: "Generation successfully" });
|
|
7054
|
+
await hooks.emit("kubb:generation:end", { config, files, sources: kubb.sources });
|
|
7053
7055
|
if (config.output.format) {
|
|
7054
7056
|
await hooks.emit("kubb:format:start");
|
|
7055
7057
|
let formatter = config.output.format;
|
|
7056
7058
|
if (formatter === "auto") {
|
|
7057
7059
|
const detectedFormatter = await detectFormatter();
|
|
7058
7060
|
if (!detectedFormatter) {
|
|
7059
|
-
await hooks.emit("kubb:warn", "No formatter found (oxfmt, biome, or prettier). Skipping formatting.");
|
|
7061
|
+
await hooks.emit("kubb:warn", { message: "No formatter found (oxfmt, biome, or prettier). Skipping formatting." });
|
|
7060
7062
|
} else {
|
|
7061
7063
|
formatter = detectedFormatter;
|
|
7062
|
-
await hooks.emit("kubb:info", `Auto-detected formatter: ${formatter}`);
|
|
7064
|
+
await hooks.emit("kubb:info", { message: `Auto-detected formatter: ${formatter}` });
|
|
7063
7065
|
}
|
|
7064
7066
|
}
|
|
7065
7067
|
if (formatter && formatter !== "auto" && formatter in formatters) {
|
|
@@ -7072,14 +7074,14 @@ async function generate({ config, hooks }) {
|
|
|
7072
7074
|
command: formatterConfig.command,
|
|
7073
7075
|
args: formatterConfig.args(outputPath)
|
|
7074
7076
|
});
|
|
7075
|
-
await hooks.onOnce("kubb:hook:end", async (
|
|
7076
|
-
if (!success) throw
|
|
7077
|
-
await hooks.emit("kubb:success", `Formatting with ${formatter} successfully`);
|
|
7077
|
+
await hooks.onOnce("kubb:hook:end", async (ctx) => {
|
|
7078
|
+
if (!ctx.success) throw ctx.error;
|
|
7079
|
+
await hooks.emit("kubb:success", { message: `Formatting with ${formatter} successfully` });
|
|
7078
7080
|
});
|
|
7079
7081
|
} catch (caughtError) {
|
|
7080
7082
|
const error2 = new Error(formatterConfig.errorMessage);
|
|
7081
7083
|
error2.cause = caughtError;
|
|
7082
|
-
await hooks.emit("kubb:error", error2);
|
|
7084
|
+
await hooks.emit("kubb:error", { error: error2 });
|
|
7083
7085
|
}
|
|
7084
7086
|
}
|
|
7085
7087
|
await hooks.emit("kubb:format:end");
|
|
@@ -7090,10 +7092,10 @@ async function generate({ config, hooks }) {
|
|
|
7090
7092
|
if (linter === "auto") {
|
|
7091
7093
|
const detectedLinter = await detectLinter();
|
|
7092
7094
|
if (!detectedLinter) {
|
|
7093
|
-
await hooks.emit("kubb:warn", "No linter found (oxlint, biome, or eslint). Skipping linting.");
|
|
7095
|
+
await hooks.emit("kubb:warn", { message: "No linter found (oxlint, biome, or eslint). Skipping linting." });
|
|
7094
7096
|
} else {
|
|
7095
7097
|
linter = detectedLinter;
|
|
7096
|
-
await hooks.emit("kubb:info", `Auto-detected linter: ${styleText("dim", linter)}`);
|
|
7098
|
+
await hooks.emit("kubb:info", { message: `Auto-detected linter: ${styleText("dim", linter)}` });
|
|
7097
7099
|
}
|
|
7098
7100
|
}
|
|
7099
7101
|
if (linter && linter !== "auto" && linter in linters) {
|
|
@@ -7106,13 +7108,13 @@ async function generate({ config, hooks }) {
|
|
|
7106
7108
|
command: linterConfig.command,
|
|
7107
7109
|
args: linterConfig.args(outputPath)
|
|
7108
7110
|
});
|
|
7109
|
-
await hooks.onOnce("kubb:hook:end", async (
|
|
7110
|
-
if (!success) throw
|
|
7111
|
+
await hooks.onOnce("kubb:hook:end", async (ctx) => {
|
|
7112
|
+
if (!ctx.success) throw ctx.error;
|
|
7111
7113
|
});
|
|
7112
7114
|
} catch (caughtError) {
|
|
7113
7115
|
const error2 = new Error(linterConfig.errorMessage);
|
|
7114
7116
|
error2.cause = caughtError;
|
|
7115
|
-
await hooks.emit("kubb:error", error2);
|
|
7117
|
+
await hooks.emit("kubb:error", { error: error2 });
|
|
7116
7118
|
}
|
|
7117
7119
|
}
|
|
7118
7120
|
await hooks.emit("kubb:lint:end");
|
|
@@ -7231,7 +7233,7 @@ async function publish({ command, outputPath, root, hooks }) {
|
|
|
7231
7233
|
throw new Error(`[plugin-publish] Invalid publish command: "${command}"`);
|
|
7232
7234
|
}
|
|
7233
7235
|
const commandWithArgs = args.length ? `${cmd} ${args.join(" ")}` : cmd;
|
|
7234
|
-
await hooks.emit("kubb:info", `[publish] Running "${commandWithArgs}" in "${resolvedOutputPath}"`);
|
|
7236
|
+
await hooks.emit("kubb:info", { message: `[publish] Running "${commandWithArgs}" in "${resolvedOutputPath}"` });
|
|
7235
7237
|
const startTime = Date.now();
|
|
7236
7238
|
let exitCode = null;
|
|
7237
7239
|
try {
|
|
@@ -7240,7 +7242,7 @@ async function publish({ command, outputPath, root, hooks }) {
|
|
|
7240
7242
|
});
|
|
7241
7243
|
for await (const line of proc) {
|
|
7242
7244
|
if (line.trim()) {
|
|
7243
|
-
await hooks.emit("kubb:info", line.trim());
|
|
7245
|
+
await hooks.emit("kubb:info", { message: line.trim() });
|
|
7244
7246
|
}
|
|
7245
7247
|
}
|
|
7246
7248
|
const result = await proc;
|
|
@@ -7249,20 +7251,21 @@ async function publish({ command, outputPath, root, hooks }) {
|
|
|
7249
7251
|
const message = (_d = (_c = (_b = err == null ? void 0 : err.stderr) == null ? void 0 : _b.trim()) != null ? _c : err == null ? void 0 : err.message) != null ? _d : String(err);
|
|
7250
7252
|
const error = new Error(`[publish] Failed to run "${commandWithArgs}": ${message}`);
|
|
7251
7253
|
error.cause = err;
|
|
7252
|
-
await hooks.emit("kubb:error", error);
|
|
7254
|
+
await hooks.emit("kubb:error", { error });
|
|
7253
7255
|
throw error;
|
|
7254
7256
|
}
|
|
7255
7257
|
if (exitCode !== 0) {
|
|
7256
7258
|
const error = new Error(`[publish] "${commandWithArgs}" exited with code ${exitCode}`);
|
|
7257
|
-
await hooks.emit("kubb:error", error);
|
|
7259
|
+
await hooks.emit("kubb:error", { error });
|
|
7258
7260
|
throw error;
|
|
7259
7261
|
}
|
|
7260
7262
|
const duration = Date.now() - startTime;
|
|
7261
|
-
await hooks.emit("kubb:success", `[publish] Published successfully in ${duration}ms`);
|
|
7263
|
+
await hooks.emit("kubb:success", { message: `[publish] Published successfully in ${duration}ms` });
|
|
7262
7264
|
}
|
|
7263
7265
|
|
|
7264
7266
|
function setupHookListener(hooks, root) {
|
|
7265
|
-
hooks.on("kubb:hook:start", async (
|
|
7267
|
+
hooks.on("kubb:hook:start", async (ctx) => {
|
|
7268
|
+
const { id, command, args } = ctx;
|
|
7266
7269
|
if (!id) {
|
|
7267
7270
|
return;
|
|
7268
7271
|
}
|
|
@@ -7289,7 +7292,7 @@ function setupHookListener(hooks, root) {
|
|
|
7289
7292
|
success: false,
|
|
7290
7293
|
error: errorMessage
|
|
7291
7294
|
});
|
|
7292
|
-
await hooks.emit("kubb:error", errorMessage);
|
|
7295
|
+
await hooks.emit("kubb:error", { error: errorMessage });
|
|
7293
7296
|
}
|
|
7294
7297
|
});
|
|
7295
7298
|
}
|
|
@@ -7337,70 +7340,70 @@ function setupEventsStream(ws, hooks, getSource) {
|
|
|
7337
7340
|
payload: { ...payload, source: getSource == null ? void 0 : getSource() }
|
|
7338
7341
|
});
|
|
7339
7342
|
}
|
|
7340
|
-
hooks.on("kubb:plugin:start", (
|
|
7343
|
+
hooks.on("kubb:plugin:start", (ctx) => {
|
|
7341
7344
|
sendDataMessage({
|
|
7342
7345
|
type: "kubb:plugin:start",
|
|
7343
|
-
data: [plugin],
|
|
7346
|
+
data: [ctx.plugin],
|
|
7344
7347
|
timestamp: Date.now()
|
|
7345
7348
|
});
|
|
7346
7349
|
});
|
|
7347
|
-
hooks.on("kubb:plugin:end", (
|
|
7350
|
+
hooks.on("kubb:plugin:end", (ctx) => {
|
|
7348
7351
|
sendDataMessage({
|
|
7349
7352
|
type: "kubb:plugin:end",
|
|
7350
|
-
data: [plugin,
|
|
7353
|
+
data: [ctx.plugin, { duration: ctx.duration, success: ctx.success }],
|
|
7351
7354
|
timestamp: Date.now()
|
|
7352
7355
|
});
|
|
7353
7356
|
});
|
|
7354
|
-
hooks.on("kubb:files:processing:start", (files) => {
|
|
7357
|
+
hooks.on("kubb:files:processing:start", ({ files }) => {
|
|
7355
7358
|
sendDataMessage({
|
|
7356
7359
|
type: "kubb:files:processing:start",
|
|
7357
7360
|
data: [{ total: files.length }],
|
|
7358
7361
|
timestamp: Date.now()
|
|
7359
7362
|
});
|
|
7360
7363
|
});
|
|
7361
|
-
hooks.on("kubb:file:processing:update", (
|
|
7364
|
+
hooks.on("kubb:file:processing:update", (ctx) => {
|
|
7362
7365
|
sendDataMessage({
|
|
7363
7366
|
type: "kubb:file:processing:update",
|
|
7364
7367
|
data: [
|
|
7365
7368
|
{
|
|
7366
|
-
file:
|
|
7367
|
-
processed:
|
|
7368
|
-
total:
|
|
7369
|
-
percentage:
|
|
7369
|
+
file: ctx.file.path,
|
|
7370
|
+
processed: ctx.processed,
|
|
7371
|
+
total: ctx.total,
|
|
7372
|
+
percentage: ctx.percentage
|
|
7370
7373
|
}
|
|
7371
7374
|
],
|
|
7372
7375
|
timestamp: Date.now()
|
|
7373
7376
|
});
|
|
7374
7377
|
});
|
|
7375
|
-
hooks.on("kubb:files:processing:end", (files) => {
|
|
7378
|
+
hooks.on("kubb:files:processing:end", ({ files }) => {
|
|
7376
7379
|
sendDataMessage({
|
|
7377
7380
|
type: "kubb:files:processing:end",
|
|
7378
7381
|
data: [{ total: files.length }],
|
|
7379
7382
|
timestamp: Date.now()
|
|
7380
7383
|
});
|
|
7381
7384
|
});
|
|
7382
|
-
hooks.on("kubb:info", (message, info) => {
|
|
7385
|
+
hooks.on("kubb:info", ({ message, info }) => {
|
|
7383
7386
|
sendDataMessage({
|
|
7384
7387
|
type: "kubb:info",
|
|
7385
7388
|
data: [message, info],
|
|
7386
7389
|
timestamp: Date.now()
|
|
7387
7390
|
});
|
|
7388
7391
|
});
|
|
7389
|
-
hooks.on("kubb:success", (message, info) => {
|
|
7392
|
+
hooks.on("kubb:success", ({ message, info }) => {
|
|
7390
7393
|
sendDataMessage({
|
|
7391
7394
|
type: "kubb:success",
|
|
7392
7395
|
data: [message, info],
|
|
7393
7396
|
timestamp: Date.now()
|
|
7394
7397
|
});
|
|
7395
7398
|
});
|
|
7396
|
-
hooks.on("kubb:warn", (message, info) => {
|
|
7399
|
+
hooks.on("kubb:warn", ({ message, info }) => {
|
|
7397
7400
|
sendDataMessage({
|
|
7398
7401
|
type: "kubb:warn",
|
|
7399
7402
|
data: [message, info],
|
|
7400
7403
|
timestamp: Date.now()
|
|
7401
7404
|
});
|
|
7402
7405
|
});
|
|
7403
|
-
hooks.on("kubb:generation:start", (config) => {
|
|
7406
|
+
hooks.on("kubb:generation:start", ({ config }) => {
|
|
7404
7407
|
sendDataMessage({
|
|
7405
7408
|
type: "kubb:generation:start",
|
|
7406
7409
|
data: [
|
|
@@ -7412,7 +7415,7 @@ function setupEventsStream(ws, hooks, getSource) {
|
|
|
7412
7415
|
timestamp: Date.now()
|
|
7413
7416
|
});
|
|
7414
7417
|
});
|
|
7415
|
-
hooks.on("kubb:generation:end", (config, files, sources) => {
|
|
7418
|
+
hooks.on("kubb:generation:end", ({ config, files, sources }) => {
|
|
7416
7419
|
const sourcesRecord = {};
|
|
7417
7420
|
sources.forEach((value, key) => {
|
|
7418
7421
|
sourcesRecord[key] = value;
|
|
@@ -7423,7 +7426,7 @@ function setupEventsStream(ws, hooks, getSource) {
|
|
|
7423
7426
|
timestamp: Date.now()
|
|
7424
7427
|
});
|
|
7425
7428
|
});
|
|
7426
|
-
hooks.on("kubb:error", (error) => {
|
|
7429
|
+
hooks.on("kubb:error", ({ error }) => {
|
|
7427
7430
|
sendDataMessage({
|
|
7428
7431
|
type: "kubb:error",
|
|
7429
7432
|
data: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nitro.mjs","sources":["../../../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.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.3_rolldown@1.0.0-rc.16/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_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/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.3_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/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_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/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.3/node_modules/ufo/dist/index.mjs","../../../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.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.3_rolldown@1.0.0-rc.16/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_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/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.3_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/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_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/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-ClKHvtnd.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.3_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.3_rolldown@1.0.0-rc.16/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","trimExtName","path","exports","_b","extname","__privateAdd","__privateGet","__privateSet","__publicField","__privateMethod","readFile","writeFile","build","walk","readdir","version","item","_c","_d","_e","_f","error","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,56,57,58,59]}
|
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.53",
|
|
4
4
|
"description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"tinyexec": "^1.1.1",
|
|
44
44
|
"unstorage": "^1.17.5",
|
|
45
45
|
"ws": "^8.20.0",
|
|
46
|
-
"@kubb/ast": "5.0.0-alpha.
|
|
47
|
-
"@kubb/core": "5.0.0-alpha.
|
|
46
|
+
"@kubb/ast": "5.0.0-alpha.53",
|
|
47
|
+
"@kubb/core": "5.0.0-alpha.53"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/ws": "^8.18.1",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"nitropack": "^2.13.3",
|
|
53
53
|
"vite": "^8.0.9",
|
|
54
54
|
"@internals/utils": "0.0.0",
|
|
55
|
-
"@kubb/adapter-oas": "5.0.0-alpha.
|
|
56
|
-
"@kubb/parser-ts": "5.0.0-alpha.
|
|
55
|
+
"@kubb/adapter-oas": "5.0.0-alpha.53",
|
|
56
|
+
"@kubb/parser-ts": "5.0.0-alpha.53"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=22"
|