@kubb/agent 5.0.0-beta.4 → 5.0.0-beta.5
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 +57 -34
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/node_modules/jiti/dist/jiti.cjs +1 -0
- package/.output/server/node_modules/jiti/lib/jiti.mjs +29 -0
- package/.output/server/node_modules/jiti/package.json +146 -0
- package/.output/server/package.json +2 -5
- package/README.md +2 -2
- package/package.json +8 -7
- package/.output/server/node_modules/@rolldown/binding-linux-x64-gnu/package.json +0 -40
- package/.output/server/node_modules/@rolldown/binding-linux-x64-gnu/rolldown-binding.linux-x64-gnu.node +0 -0
- package/.output/server/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +0 -256
- package/.output/server/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +0 -75
- package/.output/server/node_modules/@rolldown/pluginutils/dist/filter/index.js +0 -3
- package/.output/server/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +0 -70
- package/.output/server/node_modules/@rolldown/pluginutils/dist/index.js +0 -1
- package/.output/server/node_modules/@rolldown/pluginutils/dist/utils.js +0 -17
- package/.output/server/node_modules/@rolldown/pluginutils/package.json +0 -37
- package/.output/server/node_modules/rolldown/dist/index.mjs +0 -50
- package/.output/server/node_modules/rolldown/dist/parse-ast-index.mjs +0 -60
- package/.output/server/node_modules/rolldown/dist/shared/binding-BeU_1iEk.mjs +0 -582
- package/.output/server/node_modules/rolldown/dist/shared/bindingify-input-options-DbbBhzky.mjs +0 -2211
- package/.output/server/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +0 -6
- package/.output/server/node_modules/rolldown/dist/shared/error-DL-e8-oE.mjs +0 -85
- package/.output/server/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +0 -180
- package/.output/server/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +0 -21
- package/.output/server/node_modules/rolldown/dist/shared/normalize-string-or-regex-CbQQ69gT.mjs +0 -66
- package/.output/server/node_modules/rolldown/dist/shared/parse-B_ZnWxLZ.mjs +0 -74
- package/.output/server/node_modules/rolldown/dist/shared/prompt-U5ajztzG.mjs +0 -847
- package/.output/server/node_modules/rolldown/dist/shared/rolldown-D3JZ9rMt.mjs +0 -40
- package/.output/server/node_modules/rolldown/dist/shared/rolldown-build-DSxL8qiP.mjs +0 -3325
- package/.output/server/node_modules/rolldown/dist/shared/watch-Bd8v9ewv.mjs +0 -374
- package/.output/server/node_modules/rolldown/package.json +0 -153
- package/.output/server/node_modules/unrun/dist/index.mjs +0 -2
- package/.output/server/node_modules/unrun/dist/src-GU5PtktT.mjs +0 -887
- package/.output/server/node_modules/unrun/package.json +0 -125
package/.output/nitro.json
CHANGED
|
@@ -18,7 +18,7 @@ import { deflateSync } from 'fflate';
|
|
|
18
18
|
import { x } from 'tinyexec';
|
|
19
19
|
import { access, rm, readFile as readFile$1, readdir as readdir$1, mkdir, writeFile as writeFile$1 } from 'node:fs/promises';
|
|
20
20
|
import { styleText } from 'node:util';
|
|
21
|
-
import {
|
|
21
|
+
import { createJiti } from 'jiti';
|
|
22
22
|
import { mergeDeep } from 'remeda';
|
|
23
23
|
import WebSocket from 'ws';
|
|
24
24
|
|
|
@@ -4426,11 +4426,14 @@ function sendToBetterStack(level, tag, message, ctx) {
|
|
|
4426
4426
|
const fullMessage = message !== void 0 ? `[${tag}] ${message}` : tag;
|
|
4427
4427
|
const context = toBetterStackContext(ctx);
|
|
4428
4428
|
if (level === "error") {
|
|
4429
|
-
client.error(fullMessage, context).then(() => client.flush())
|
|
4429
|
+
client.error(fullMessage, context).then(() => client.flush()).catch(() => {
|
|
4430
|
+
});
|
|
4430
4431
|
} else if (level === "warn") {
|
|
4431
|
-
client.warn(fullMessage, context).then(() => client.flush())
|
|
4432
|
+
client.warn(fullMessage, context).then(() => client.flush()).catch(() => {
|
|
4433
|
+
});
|
|
4432
4434
|
} else {
|
|
4433
|
-
client.info(fullMessage, context).then(() => client.flush())
|
|
4435
|
+
client.info(fullMessage, context).then(() => client.flush()).catch(() => {
|
|
4436
|
+
});
|
|
4434
4437
|
}
|
|
4435
4438
|
} catch (_e) {
|
|
4436
4439
|
}
|
|
@@ -5249,7 +5252,7 @@ function pascalCase(text, { isFile, prefix = "", suffix = "" } = {}) {
|
|
|
5249
5252
|
}) : camelCase(part));
|
|
5250
5253
|
return toCamelOrPascal(`${prefix} ${text} ${suffix}`, true);
|
|
5251
5254
|
}
|
|
5252
|
-
const DEFAULT_STUDIO_URL = "https://
|
|
5255
|
+
const DEFAULT_STUDIO_URL = "https://kubb.studio";
|
|
5253
5256
|
const DEFAULT_BANNER = "simple";
|
|
5254
5257
|
const DEFAULT_EXTENSION = { ".ts": ".ts" };
|
|
5255
5258
|
const stringPatternCache = /* @__PURE__ */ new Map();
|
|
@@ -5606,6 +5609,7 @@ var PluginDriver = (_b$1 = class {
|
|
|
5606
5609
|
*/
|
|
5607
5610
|
registerPluginHooks(hookPlugin, normalizedPlugin) {
|
|
5608
5611
|
const { hooks } = hookPlugin;
|
|
5612
|
+
if (!hooks) return;
|
|
5609
5613
|
if (hooks["kubb:plugin:setup"]) {
|
|
5610
5614
|
const setupHandler = (globalCtx) => {
|
|
5611
5615
|
var _a2;
|
|
@@ -5800,7 +5804,7 @@ var PluginDriver = (_b$1 = class {
|
|
|
5800
5804
|
if (typeof driver.config.devtools !== "object") throw new Error("Devtools must be an object");
|
|
5801
5805
|
if (!driver.inputNode || !driver.adapter) throw new Error("adapter is not defined, make sure you have set the parser in kubb.config.ts");
|
|
5802
5806
|
__privateSet$1(driver, _studioIsOpen, true);
|
|
5803
|
-
const studioUrl = (_b2 = (_a2 = driver.config.devtools) == null ? void 0 : _a2.studioUrl) != null ? _b2 : "https://
|
|
5807
|
+
const studioUrl = (_b2 = (_a2 = driver.config.devtools) == null ? void 0 : _a2.studioUrl) != null ? _b2 : "https://kubb.studio";
|
|
5804
5808
|
return openInStudio(driver.inputNode, studioUrl, options);
|
|
5805
5809
|
}
|
|
5806
5810
|
};
|
|
@@ -6464,7 +6468,7 @@ const fsStorage = createStorage(() => ({
|
|
|
6464
6468
|
await clean(resolve(base));
|
|
6465
6469
|
}
|
|
6466
6470
|
}));
|
|
6467
|
-
var version$1 = "5.0.0-beta.
|
|
6471
|
+
var version$1 = "5.0.0-beta.5";
|
|
6468
6472
|
function getDiagnosticInfo() {
|
|
6469
6473
|
return {
|
|
6470
6474
|
nodeVersion: version$2,
|
|
@@ -6478,7 +6482,7 @@ function isInputPath(config) {
|
|
|
6478
6482
|
return typeof (config == null ? void 0 : config.input) === "object" && config.input !== null && "path" in config.input;
|
|
6479
6483
|
}
|
|
6480
6484
|
async function setup(userConfig, options = {}) {
|
|
6481
|
-
var _a2, _b2, _c2, _d2, _e2, _f, _g, _h, _i;
|
|
6485
|
+
var _a2, _b2, _c2, _d2, _e2, _f, _g, _h, _i, _j;
|
|
6482
6486
|
const hooks = (_a2 = options.hooks) != null ? _a2 : new AsyncEventEmitter();
|
|
6483
6487
|
const sources = /* @__PURE__ */ new Map();
|
|
6484
6488
|
const diagnosticInfo = getDiagnosticInfo();
|
|
@@ -6530,9 +6534,9 @@ async function setup(userConfig, options = {}) {
|
|
|
6530
6534
|
studioUrl: DEFAULT_STUDIO_URL,
|
|
6531
6535
|
...typeof userConfig.devtools === "boolean" ? {} : userConfig.devtools
|
|
6532
6536
|
} : void 0,
|
|
6533
|
-
plugins: userConfig.plugins
|
|
6537
|
+
plugins: (_h = userConfig.plugins) != null ? _h : []
|
|
6534
6538
|
};
|
|
6535
|
-
const storage = config.output.write === false ? null : (
|
|
6539
|
+
const storage = config.output.write === false ? null : (_i = config.storage) != null ? _i : fsStorage();
|
|
6536
6540
|
if (config.output.clean) {
|
|
6537
6541
|
await hooks.emit("kubb:debug", {
|
|
6538
6542
|
date: /* @__PURE__ */ new Date(),
|
|
@@ -6545,7 +6549,7 @@ async function setup(userConfig, options = {}) {
|
|
|
6545
6549
|
const handler = middlewareHooks[event];
|
|
6546
6550
|
if (handler) hooks.on(event, handler);
|
|
6547
6551
|
}
|
|
6548
|
-
for (const middleware of (
|
|
6552
|
+
for (const middleware of (_j = config.middleware) != null ? _j : []) for (const event of Object.keys(middleware.hooks)) registerMiddlewareHook(event, middleware.hooks);
|
|
6549
6553
|
if (config.adapter) {
|
|
6550
6554
|
const source = inputToAdapterSource(config);
|
|
6551
6555
|
await hooks.emit("kubb:debug", {
|
|
@@ -6901,7 +6905,7 @@ const memoryStorage = createStorage(() => {
|
|
|
6901
6905
|
};
|
|
6902
6906
|
});
|
|
6903
6907
|
|
|
6904
|
-
var version = "5.0.0-beta.
|
|
6908
|
+
var version = "5.0.0-beta.5";
|
|
6905
6909
|
|
|
6906
6910
|
function isCommandMessage(msg) {
|
|
6907
6911
|
return msg.type === "command";
|
|
@@ -7048,20 +7052,15 @@ async function generate({ config, hooks }) {
|
|
|
7048
7052
|
}
|
|
7049
7053
|
}
|
|
7050
7054
|
|
|
7051
|
-
const
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
};
|
|
7055
|
+
const jiti = createJiti(globalThis._importMeta_.url, {
|
|
7056
|
+
jsx: {
|
|
7057
|
+
runtime: "automatic",
|
|
7058
|
+
importSource: "@kubb/renderer-jsx"
|
|
7059
|
+
},
|
|
7060
|
+
moduleCache: false
|
|
7061
|
+
});
|
|
7059
7062
|
const tsLoader = async (configFile) => {
|
|
7060
|
-
|
|
7061
|
-
path: configFile,
|
|
7062
|
-
inputOptions: unrunInputOptions
|
|
7063
|
-
});
|
|
7064
|
-
return module;
|
|
7063
|
+
return jiti.import(configFile, { default: true });
|
|
7065
7064
|
};
|
|
7066
7065
|
async function getCosmiConfig(configPath) {
|
|
7067
7066
|
var _a;
|
|
@@ -7122,6 +7121,21 @@ async function resolvePlugins(plugins) {
|
|
|
7122
7121
|
})
|
|
7123
7122
|
);
|
|
7124
7123
|
}
|
|
7124
|
+
async function resolveMiddlewares(middlewares) {
|
|
7125
|
+
return Promise.all(
|
|
7126
|
+
middlewares.map(async ({ name, options }) => {
|
|
7127
|
+
const factory = await loadPluginFactory(name);
|
|
7128
|
+
return factory(options != null ? options : {});
|
|
7129
|
+
})
|
|
7130
|
+
);
|
|
7131
|
+
}
|
|
7132
|
+
async function checkPeerDependencies() {
|
|
7133
|
+
try {
|
|
7134
|
+
await import('@kubb/renderer-jsx');
|
|
7135
|
+
} catch {
|
|
7136
|
+
logger.warn("Missing peer dependency @kubb/renderer-jsx. Install it alongside kubb plugins.");
|
|
7137
|
+
}
|
|
7138
|
+
}
|
|
7125
7139
|
|
|
7126
7140
|
async function mergePlugins(diskPlugins, studioPlugins) {
|
|
7127
7141
|
if (!diskPlugins && !studioPlugins) return void 0;
|
|
@@ -7223,7 +7237,7 @@ function setupHookListener(hooks, root) {
|
|
|
7223
7237
|
}
|
|
7224
7238
|
|
|
7225
7239
|
const agentDefaults = {
|
|
7226
|
-
studioUrl: "https://
|
|
7240
|
+
studioUrl: "https://kubb.studio",
|
|
7227
7241
|
configPath: "kubb.config.ts",
|
|
7228
7242
|
retryIntervalMs: 3e4,
|
|
7229
7243
|
heartbeatIntervalMs: 3e4,
|
|
@@ -7268,14 +7282,14 @@ function setupEventsStream(ws, hooks, getSource) {
|
|
|
7268
7282
|
hooks.on("kubb:plugin:start", (ctx) => {
|
|
7269
7283
|
sendDataMessage({
|
|
7270
7284
|
type: "kubb:plugin:start",
|
|
7271
|
-
data: [ctx.plugin],
|
|
7285
|
+
data: [{ plugin: ctx.plugin }],
|
|
7272
7286
|
timestamp: Date.now()
|
|
7273
7287
|
});
|
|
7274
7288
|
});
|
|
7275
7289
|
hooks.on("kubb:plugin:end", (ctx) => {
|
|
7276
7290
|
sendDataMessage({
|
|
7277
7291
|
type: "kubb:plugin:end",
|
|
7278
|
-
data: [ctx.plugin,
|
|
7292
|
+
data: [{ plugin: ctx.plugin, duration: ctx.duration, success: ctx.success }],
|
|
7279
7293
|
timestamp: Date.now()
|
|
7280
7294
|
});
|
|
7281
7295
|
});
|
|
@@ -7310,21 +7324,21 @@ function setupEventsStream(ws, hooks, getSource) {
|
|
|
7310
7324
|
hooks.on("kubb:info", ({ message, info }) => {
|
|
7311
7325
|
sendDataMessage({
|
|
7312
7326
|
type: "kubb:info",
|
|
7313
|
-
data: [message, info],
|
|
7327
|
+
data: [{ message, info }],
|
|
7314
7328
|
timestamp: Date.now()
|
|
7315
7329
|
});
|
|
7316
7330
|
});
|
|
7317
7331
|
hooks.on("kubb:success", ({ message, info }) => {
|
|
7318
7332
|
sendDataMessage({
|
|
7319
7333
|
type: "kubb:success",
|
|
7320
|
-
data: [message, info],
|
|
7334
|
+
data: [{ message, info }],
|
|
7321
7335
|
timestamp: Date.now()
|
|
7322
7336
|
});
|
|
7323
7337
|
});
|
|
7324
7338
|
hooks.on("kubb:warn", ({ message, info }) => {
|
|
7325
7339
|
sendDataMessage({
|
|
7326
7340
|
type: "kubb:warn",
|
|
7327
|
-
data: [message, info],
|
|
7341
|
+
data: [{ message, info }],
|
|
7328
7342
|
timestamp: Date.now()
|
|
7329
7343
|
});
|
|
7330
7344
|
});
|
|
@@ -7347,7 +7361,7 @@ function setupEventsStream(ws, hooks, getSource) {
|
|
|
7347
7361
|
});
|
|
7348
7362
|
sendDataMessage({
|
|
7349
7363
|
type: "kubb:generation:end",
|
|
7350
|
-
data: [config, files, sourcesRecord],
|
|
7364
|
+
data: [{ config, files, sources: sourcesRecord }],
|
|
7351
7365
|
timestamp: Date.now()
|
|
7352
7366
|
});
|
|
7353
7367
|
});
|
|
@@ -7470,6 +7484,7 @@ async function connectToStudio(options) {
|
|
|
7470
7484
|
const storedConfig = data.payload ? null : await getLatestStudioConfigFromStorage({ sessionId }).catch(() => null);
|
|
7471
7485
|
const patch = (_b = (_a2 = data.payload) != null ? _a2 : storedConfig) != null ? _b : void 0;
|
|
7472
7486
|
const plugins = await mergePlugins(config.plugins, patch == null ? void 0 : patch.plugins);
|
|
7487
|
+
const middleware = (patch == null ? void 0 : patch.middleware) ? await resolveMiddlewares(patch.middleware) : config.middleware;
|
|
7473
7488
|
const inputOverride = isSandbox ? { data: (_c = patch == null ? void 0 : patch.input) != null ? _c : "" } : void 0;
|
|
7474
7489
|
if (allowWrite && isSandbox) {
|
|
7475
7490
|
logger.warn(`[${maskedSessionId}] Agent is running in a sandbox environment, write will be disabled`);
|
|
@@ -7485,6 +7500,9 @@ async function connectToStudio(options) {
|
|
|
7485
7500
|
logger.warn(`[${maskedSessionId}] Failed to save studio config: ${err == null ? void 0 : err.message}`);
|
|
7486
7501
|
});
|
|
7487
7502
|
}
|
|
7503
|
+
const generationHooks = new AsyncEventEmitter();
|
|
7504
|
+
setupHookListener(generationHooks, root);
|
|
7505
|
+
setupEventsStream(ws, generationHooks, () => currentSource);
|
|
7488
7506
|
await generate({
|
|
7489
7507
|
config: {
|
|
7490
7508
|
...config,
|
|
@@ -7494,9 +7512,13 @@ async function connectToStudio(options) {
|
|
|
7494
7512
|
output: {
|
|
7495
7513
|
...config.output
|
|
7496
7514
|
},
|
|
7497
|
-
plugins
|
|
7515
|
+
plugins,
|
|
7516
|
+
middleware,
|
|
7517
|
+
// Studio may send an opaque adapter options blob; forward it unchanged to createKubb.
|
|
7518
|
+
// The adapter factory is responsible for validating and merging its own options.
|
|
7519
|
+
...(patch == null ? void 0 : patch.adapter) != null && { adapter: patch.adapter }
|
|
7498
7520
|
},
|
|
7499
|
-
hooks
|
|
7521
|
+
hooks: generationHooks
|
|
7500
7522
|
});
|
|
7501
7523
|
logger.success(`[${maskedSessionId}] Completed "${data.type}" from Studio`);
|
|
7502
7524
|
currentSource = void 0;
|
|
@@ -7598,6 +7620,7 @@ const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nit
|
|
|
7598
7620
|
}
|
|
7599
7621
|
const maskedToken = maskString(token);
|
|
7600
7622
|
try {
|
|
7623
|
+
await checkPeerDependencies();
|
|
7601
7624
|
await registerAgent({ token, studioUrl, poolSize });
|
|
7602
7625
|
const baseOptions = {
|
|
7603
7626
|
token,
|
|
@@ -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-rc.17/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-rc.17/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/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-rc.17/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/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-rc.17/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/node_modules/nitropack/dist/runtime/internal/route-rules-utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/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-rc.17/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-rc.17/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/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-rc.17/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/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-rc.17/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/node_modules/nitropack/dist/runtime/internal/route-rules-utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/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-BkTRD2H2.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-rc.17/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.0-rc.17/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","exports","_b","extname","__privateAdd","__privateMethod","__privateGet","__privateSet","__publicField","readFile","writeFile","build","walk","readdir","version","_c","_d","_e","files","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,31,57,58,59,60]}
|