@kubb/agent 5.0.0-alpha.42 → 5.0.0-alpha.43
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 +33 -35
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/node_modules/jiti/dist/jiti.cjs +1 -1
- package/.output/server/node_modules/jiti/lib/jiti.mjs +9 -2
- package/.output/server/node_modules/jiti/package.json +29 -30
- package/.output/server/package.json +2 -2
- package/package.json +6 -6
- package/.output/server/node_modules/jiti/dist/babel.cjs +0 -246
package/.output/nitro.json
CHANGED
|
@@ -4438,6 +4438,36 @@ const logger = {
|
|
|
4438
4438
|
const _KZ9YuROWp70nNn4X1C4BxF_W0D7H9EWgBo03XvMd7w0 = defineNitroPlugin(() => {
|
|
4439
4439
|
});
|
|
4440
4440
|
|
|
4441
|
+
function formatMs$1(ms) {
|
|
4442
|
+
if (ms >= 6e4) return `${Math.floor(ms / 6e4)}m ${(ms % 6e4 / 1e3).toFixed(1)}s`;
|
|
4443
|
+
if (ms >= 1e3) return `${(ms / 1e3).toFixed(2)}s`;
|
|
4444
|
+
return `${Math.round(ms)}ms`;
|
|
4445
|
+
}
|
|
4446
|
+
function parseHex(color) {
|
|
4447
|
+
const int = Number.parseInt(color.replace("#", ""), 16);
|
|
4448
|
+
return Number.isNaN(int) ? {
|
|
4449
|
+
r: 255,
|
|
4450
|
+
g: 255,
|
|
4451
|
+
b: 255
|
|
4452
|
+
} : {
|
|
4453
|
+
r: int >> 16 & 255,
|
|
4454
|
+
g: int >> 8 & 255,
|
|
4455
|
+
b: int & 255
|
|
4456
|
+
};
|
|
4457
|
+
}
|
|
4458
|
+
function hex(color) {
|
|
4459
|
+
const { r, g, b } = parseHex(color);
|
|
4460
|
+
return (text) => `\x1B[38;2;${r};${g};${b}m${text}\x1B[0m`;
|
|
4461
|
+
}
|
|
4462
|
+
({
|
|
4463
|
+
lid: hex("#F55A17"),
|
|
4464
|
+
woodTop: hex("#F5A217"),
|
|
4465
|
+
woodMid: hex("#F58517"),
|
|
4466
|
+
woodBase: hex("#B45309"),
|
|
4467
|
+
eye: hex("#FFFFFF"),
|
|
4468
|
+
highlight: hex("#adadc6"),
|
|
4469
|
+
blush: hex("#FDA4AF")
|
|
4470
|
+
});
|
|
4441
4471
|
const formatters = {
|
|
4442
4472
|
prettier: {
|
|
4443
4473
|
command: "prettier",
|
|
@@ -4516,36 +4546,6 @@ async function detectLinter() {
|
|
|
4516
4546
|
for (const linter of linterNames) if (await isLinterAvailable(linter)) return linter;
|
|
4517
4547
|
return null;
|
|
4518
4548
|
}
|
|
4519
|
-
function formatMs$1(ms) {
|
|
4520
|
-
if (ms >= 6e4) return `${Math.floor(ms / 6e4)}m ${(ms % 6e4 / 1e3).toFixed(1)}s`;
|
|
4521
|
-
if (ms >= 1e3) return `${(ms / 1e3).toFixed(2)}s`;
|
|
4522
|
-
return `${Math.round(ms)}ms`;
|
|
4523
|
-
}
|
|
4524
|
-
function parseHex(color) {
|
|
4525
|
-
const int = Number.parseInt(color.replace("#", ""), 16);
|
|
4526
|
-
return Number.isNaN(int) ? {
|
|
4527
|
-
r: 255,
|
|
4528
|
-
g: 255,
|
|
4529
|
-
b: 255
|
|
4530
|
-
} : {
|
|
4531
|
-
r: int >> 16 & 255,
|
|
4532
|
-
g: int >> 8 & 255,
|
|
4533
|
-
b: int & 255
|
|
4534
|
-
};
|
|
4535
|
-
}
|
|
4536
|
-
function hex(color) {
|
|
4537
|
-
const { r, g, b } = parseHex(color);
|
|
4538
|
-
return (text) => `\x1B[38;2;${r};${g};${b}m${text}\x1B[0m`;
|
|
4539
|
-
}
|
|
4540
|
-
({
|
|
4541
|
-
lid: hex("#F55A17"),
|
|
4542
|
-
woodTop: hex("#F5A217"),
|
|
4543
|
-
woodMid: hex("#F58517"),
|
|
4544
|
-
woodBase: hex("#B45309"),
|
|
4545
|
-
eye: hex("#FFFFFF"),
|
|
4546
|
-
highlight: hex("#adadc6"),
|
|
4547
|
-
blush: hex("#FDA4AF")
|
|
4548
|
-
});
|
|
4549
4549
|
function serializePluginOptions(options) {
|
|
4550
4550
|
if (options === null || options === void 0) return {};
|
|
4551
4551
|
if (typeof options !== "object") return options;
|
|
@@ -6702,7 +6702,7 @@ const fsStorage = createStorage(() => ({
|
|
|
6702
6702
|
await clean(resolve(base));
|
|
6703
6703
|
}
|
|
6704
6704
|
}));
|
|
6705
|
-
var version$1 = "5.0.0-alpha.
|
|
6705
|
+
var version$1 = "5.0.0-alpha.43";
|
|
6706
6706
|
function getDiagnosticInfo() {
|
|
6707
6707
|
return {
|
|
6708
6708
|
nodeVersion: version$2,
|
|
@@ -7390,7 +7390,7 @@ const memoryStorage = createStorage(() => {
|
|
|
7390
7390
|
};
|
|
7391
7391
|
});
|
|
7392
7392
|
|
|
7393
|
-
var version = "5.0.0-alpha.
|
|
7393
|
+
var version = "5.0.0-alpha.43";
|
|
7394
7394
|
|
|
7395
7395
|
function isCommandMessage(msg) {
|
|
7396
7396
|
return msg.type === "command";
|
|
@@ -7598,9 +7598,7 @@ async function loadPluginFactory(packageName) {
|
|
|
7598
7598
|
if (typeof mod["default"] === "function") return mod["default"];
|
|
7599
7599
|
const firstFn = Object.values(mod).find((v) => typeof v === "function");
|
|
7600
7600
|
if (firstFn) return firstFn;
|
|
7601
|
-
throw new Error(
|
|
7602
|
-
`Plugin "${packageName}" does not export a callable factory. Tried: named export "${exportName}", "default", and any exported function.`
|
|
7603
|
-
);
|
|
7601
|
+
throw new Error(`Plugin "${packageName}" does not export a callable factory. Tried: named export "${exportName}", "default", and any exported function.`);
|
|
7604
7602
|
}
|
|
7605
7603
|
async function resolvePlugins(plugins) {
|
|
7606
7604
|
return Promise.all(
|
|
@@ -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-CgXFtmNP.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","
|
|
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-CgXFtmNP.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","_c","_d","__publicField","__privateAdd","__privateGet","__privateSet","extname","__privateMethod","readFile","writeFile","build","walk","readdir","version","item","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]}
|