@kubb/agent 5.0.0-beta.3 → 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 +85 -61
- 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();
|
|
@@ -5362,8 +5365,8 @@ function buildDefaultBanner({ title, description, version, config }) {
|
|
|
5362
5365
|
if (Array.isArray(config.input)) {
|
|
5363
5366
|
const first = config.input[0];
|
|
5364
5367
|
if (first && "path" in first) source = path$1.basename(first.path);
|
|
5365
|
-
} else if ("path" in config.input) source = path$1.basename(config.input.path);
|
|
5366
|
-
else if ("data" in config.input) source = "text content";
|
|
5368
|
+
} else if (config.input && "path" in config.input) source = path$1.basename(config.input.path);
|
|
5369
|
+
else if (config.input && "data" in config.input) source = "text content";
|
|
5367
5370
|
let banner = "/**\n* Generated by Kubb (https://kubb.dev/).\n* Do not edit manually.\n";
|
|
5368
5371
|
if (config.output.defaultBanner === "simple") {
|
|
5369
5372
|
banner += "*/\n";
|
|
@@ -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();
|
|
@@ -6513,7 +6517,6 @@ async function setup(userConfig, options = {}) {
|
|
|
6513
6517
|
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 });
|
|
6514
6518
|
}
|
|
6515
6519
|
}
|
|
6516
|
-
if (!userConfig.adapter) throw new Error("Adapter should be defined");
|
|
6517
6520
|
const config = {
|
|
6518
6521
|
...userConfig,
|
|
6519
6522
|
root: userConfig.root || process.cwd(),
|
|
@@ -6531,9 +6534,9 @@ async function setup(userConfig, options = {}) {
|
|
|
6531
6534
|
studioUrl: DEFAULT_STUDIO_URL,
|
|
6532
6535
|
...typeof userConfig.devtools === "boolean" ? {} : userConfig.devtools
|
|
6533
6536
|
} : void 0,
|
|
6534
|
-
plugins: userConfig.plugins
|
|
6537
|
+
plugins: (_h = userConfig.plugins) != null ? _h : []
|
|
6535
6538
|
};
|
|
6536
|
-
const storage = config.output.write === false ? null : (
|
|
6539
|
+
const storage = config.output.write === false ? null : (_i = config.storage) != null ? _i : fsStorage();
|
|
6537
6540
|
if (config.output.clean) {
|
|
6538
6541
|
await hooks.emit("kubb:debug", {
|
|
6539
6542
|
date: /* @__PURE__ */ new Date(),
|
|
@@ -6546,24 +6549,24 @@ async function setup(userConfig, options = {}) {
|
|
|
6546
6549
|
const handler = middlewareHooks[event];
|
|
6547
6550
|
if (handler) hooks.on(event, handler);
|
|
6548
6551
|
}
|
|
6549
|
-
for (const middleware of (
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
}
|
|
6552
|
+
for (const middleware of (_j = config.middleware) != null ? _j : []) for (const event of Object.keys(middleware.hooks)) registerMiddlewareHook(event, middleware.hooks);
|
|
6553
|
+
if (config.adapter) {
|
|
6554
|
+
const source = inputToAdapterSource(config);
|
|
6555
|
+
await hooks.emit("kubb:debug", {
|
|
6556
|
+
date: /* @__PURE__ */ new Date(),
|
|
6557
|
+
logs: [`Running adapter: ${config.adapter.name}`]
|
|
6558
|
+
});
|
|
6559
|
+
driver.adapter = config.adapter;
|
|
6560
|
+
driver.inputNode = await config.adapter.parse(source);
|
|
6561
|
+
await hooks.emit("kubb:debug", {
|
|
6562
|
+
date: /* @__PURE__ */ new Date(),
|
|
6563
|
+
logs: [
|
|
6564
|
+
`\u2713 Adapter '${config.adapter.name}' resolved InputNode`,
|
|
6565
|
+
` \u2022 Schemas: ${driver.inputNode.schemas.length}`,
|
|
6566
|
+
` \u2022 Operations: ${driver.inputNode.operations.length}`
|
|
6567
|
+
]
|
|
6568
|
+
});
|
|
6569
|
+
}
|
|
6567
6570
|
return {
|
|
6568
6571
|
config,
|
|
6569
6572
|
hooks,
|
|
@@ -6820,21 +6823,23 @@ async function build(setupResult) {
|
|
|
6820
6823
|
};
|
|
6821
6824
|
}
|
|
6822
6825
|
function inputToAdapterSource(config) {
|
|
6823
|
-
|
|
6826
|
+
const input = config.input;
|
|
6827
|
+
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 {
|
|
6824
6829
|
type: "paths",
|
|
6825
|
-
paths:
|
|
6830
|
+
paths: input.map((i) => new URLPath(i.path).isURL ? i.path : resolve(config.root, i.path))
|
|
6826
6831
|
};
|
|
6827
|
-
if ("data" in
|
|
6832
|
+
if ("data" in input) return {
|
|
6828
6833
|
type: "data",
|
|
6829
|
-
data:
|
|
6834
|
+
data: input.data
|
|
6830
6835
|
};
|
|
6831
|
-
if (new URLPath(
|
|
6836
|
+
if (new URLPath(input.path).isURL) return {
|
|
6832
6837
|
type: "path",
|
|
6833
|
-
path:
|
|
6838
|
+
path: input.path
|
|
6834
6839
|
};
|
|
6835
6840
|
return {
|
|
6836
6841
|
type: "path",
|
|
6837
|
-
path: resolve(config.root,
|
|
6842
|
+
path: resolve(config.root, input.path)
|
|
6838
6843
|
};
|
|
6839
6844
|
}
|
|
6840
6845
|
function createKubb(userConfig, options = {}) {
|
|
@@ -6900,7 +6905,7 @@ const memoryStorage = createStorage(() => {
|
|
|
6900
6905
|
};
|
|
6901
6906
|
});
|
|
6902
6907
|
|
|
6903
|
-
var version = "5.0.0-beta.
|
|
6908
|
+
var version = "5.0.0-beta.5";
|
|
6904
6909
|
|
|
6905
6910
|
function isCommandMessage(msg) {
|
|
6906
6911
|
return msg.type === "command";
|
|
@@ -7047,20 +7052,15 @@ async function generate({ config, hooks }) {
|
|
|
7047
7052
|
}
|
|
7048
7053
|
}
|
|
7049
7054
|
|
|
7050
|
-
const
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
};
|
|
7055
|
+
const jiti = createJiti(globalThis._importMeta_.url, {
|
|
7056
|
+
jsx: {
|
|
7057
|
+
runtime: "automatic",
|
|
7058
|
+
importSource: "@kubb/renderer-jsx"
|
|
7059
|
+
},
|
|
7060
|
+
moduleCache: false
|
|
7061
|
+
});
|
|
7058
7062
|
const tsLoader = async (configFile) => {
|
|
7059
|
-
|
|
7060
|
-
path: configFile,
|
|
7061
|
-
inputOptions: unrunInputOptions
|
|
7062
|
-
});
|
|
7063
|
-
return module;
|
|
7063
|
+
return jiti.import(configFile, { default: true });
|
|
7064
7064
|
};
|
|
7065
7065
|
async function getCosmiConfig(configPath) {
|
|
7066
7066
|
var _a;
|
|
@@ -7121,6 +7121,21 @@ async function resolvePlugins(plugins) {
|
|
|
7121
7121
|
})
|
|
7122
7122
|
);
|
|
7123
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
|
+
}
|
|
7124
7139
|
|
|
7125
7140
|
async function mergePlugins(diskPlugins, studioPlugins) {
|
|
7126
7141
|
if (!diskPlugins && !studioPlugins) return void 0;
|
|
@@ -7222,7 +7237,7 @@ function setupHookListener(hooks, root) {
|
|
|
7222
7237
|
}
|
|
7223
7238
|
|
|
7224
7239
|
const agentDefaults = {
|
|
7225
|
-
studioUrl: "https://
|
|
7240
|
+
studioUrl: "https://kubb.studio",
|
|
7226
7241
|
configPath: "kubb.config.ts",
|
|
7227
7242
|
retryIntervalMs: 3e4,
|
|
7228
7243
|
heartbeatIntervalMs: 3e4,
|
|
@@ -7267,14 +7282,14 @@ function setupEventsStream(ws, hooks, getSource) {
|
|
|
7267
7282
|
hooks.on("kubb:plugin:start", (ctx) => {
|
|
7268
7283
|
sendDataMessage({
|
|
7269
7284
|
type: "kubb:plugin:start",
|
|
7270
|
-
data: [ctx.plugin],
|
|
7285
|
+
data: [{ plugin: ctx.plugin }],
|
|
7271
7286
|
timestamp: Date.now()
|
|
7272
7287
|
});
|
|
7273
7288
|
});
|
|
7274
7289
|
hooks.on("kubb:plugin:end", (ctx) => {
|
|
7275
7290
|
sendDataMessage({
|
|
7276
7291
|
type: "kubb:plugin:end",
|
|
7277
|
-
data: [ctx.plugin,
|
|
7292
|
+
data: [{ plugin: ctx.plugin, duration: ctx.duration, success: ctx.success }],
|
|
7278
7293
|
timestamp: Date.now()
|
|
7279
7294
|
});
|
|
7280
7295
|
});
|
|
@@ -7309,21 +7324,21 @@ function setupEventsStream(ws, hooks, getSource) {
|
|
|
7309
7324
|
hooks.on("kubb:info", ({ message, info }) => {
|
|
7310
7325
|
sendDataMessage({
|
|
7311
7326
|
type: "kubb:info",
|
|
7312
|
-
data: [message, info],
|
|
7327
|
+
data: [{ message, info }],
|
|
7313
7328
|
timestamp: Date.now()
|
|
7314
7329
|
});
|
|
7315
7330
|
});
|
|
7316
7331
|
hooks.on("kubb:success", ({ message, info }) => {
|
|
7317
7332
|
sendDataMessage({
|
|
7318
7333
|
type: "kubb:success",
|
|
7319
|
-
data: [message, info],
|
|
7334
|
+
data: [{ message, info }],
|
|
7320
7335
|
timestamp: Date.now()
|
|
7321
7336
|
});
|
|
7322
7337
|
});
|
|
7323
7338
|
hooks.on("kubb:warn", ({ message, info }) => {
|
|
7324
7339
|
sendDataMessage({
|
|
7325
7340
|
type: "kubb:warn",
|
|
7326
|
-
data: [message, info],
|
|
7341
|
+
data: [{ message, info }],
|
|
7327
7342
|
timestamp: Date.now()
|
|
7328
7343
|
});
|
|
7329
7344
|
});
|
|
@@ -7346,7 +7361,7 @@ function setupEventsStream(ws, hooks, getSource) {
|
|
|
7346
7361
|
});
|
|
7347
7362
|
sendDataMessage({
|
|
7348
7363
|
type: "kubb:generation:end",
|
|
7349
|
-
data: [config, files, sourcesRecord],
|
|
7364
|
+
data: [{ config, files, sources: sourcesRecord }],
|
|
7350
7365
|
timestamp: Date.now()
|
|
7351
7366
|
});
|
|
7352
7367
|
});
|
|
@@ -7469,6 +7484,7 @@ async function connectToStudio(options) {
|
|
|
7469
7484
|
const storedConfig = data.payload ? null : await getLatestStudioConfigFromStorage({ sessionId }).catch(() => null);
|
|
7470
7485
|
const patch = (_b = (_a2 = data.payload) != null ? _a2 : storedConfig) != null ? _b : void 0;
|
|
7471
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;
|
|
7472
7488
|
const inputOverride = isSandbox ? { data: (_c = patch == null ? void 0 : patch.input) != null ? _c : "" } : void 0;
|
|
7473
7489
|
if (allowWrite && isSandbox) {
|
|
7474
7490
|
logger.warn(`[${maskedSessionId}] Agent is running in a sandbox environment, write will be disabled`);
|
|
@@ -7484,6 +7500,9 @@ async function connectToStudio(options) {
|
|
|
7484
7500
|
logger.warn(`[${maskedSessionId}] Failed to save studio config: ${err == null ? void 0 : err.message}`);
|
|
7485
7501
|
});
|
|
7486
7502
|
}
|
|
7503
|
+
const generationHooks = new AsyncEventEmitter();
|
|
7504
|
+
setupHookListener(generationHooks, root);
|
|
7505
|
+
setupEventsStream(ws, generationHooks, () => currentSource);
|
|
7487
7506
|
await generate({
|
|
7488
7507
|
config: {
|
|
7489
7508
|
...config,
|
|
@@ -7493,9 +7512,13 @@ async function connectToStudio(options) {
|
|
|
7493
7512
|
output: {
|
|
7494
7513
|
...config.output
|
|
7495
7514
|
},
|
|
7496
|
-
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 }
|
|
7497
7520
|
},
|
|
7498
|
-
hooks
|
|
7521
|
+
hooks: generationHooks
|
|
7499
7522
|
});
|
|
7500
7523
|
logger.success(`[${maskedSessionId}] Completed "${data.type}" from Studio`);
|
|
7501
7524
|
currentSource = void 0;
|
|
@@ -7597,6 +7620,7 @@ const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nit
|
|
|
7597
7620
|
}
|
|
7598
7621
|
const maskedToken = maskString(token);
|
|
7599
7622
|
try {
|
|
7623
|
+
await checkPeerDependencies();
|
|
7600
7624
|
await registerAgent({ token, studioUrl, poolSize });
|
|
7601
7625
|
const baseOptions = {
|
|
7602
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]}
|