@kubb/agent 5.0.0-beta.27 → 5.0.0-beta.28
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
|
@@ -4975,6 +4975,14 @@ function combineImports(imports, exports, source) {
|
|
|
4975
4975
|
if (!importNameMemo.has(key)) importNameMemo.set(key, n);
|
|
4976
4976
|
return importNameMemo.get(key);
|
|
4977
4977
|
};
|
|
4978
|
+
const pathsWithUsedNamedImport = /* @__PURE__ */ new Set();
|
|
4979
|
+
for (const node of imports) {
|
|
4980
|
+
if (!Array.isArray(node.name)) continue;
|
|
4981
|
+
if (node.name.some((item) => {
|
|
4982
|
+
var _a;
|
|
4983
|
+
return typeof item === "string" ? isUsed(item) : isUsed((_a = item.name) != null ? _a : item.propertyName);
|
|
4984
|
+
})) pathsWithUsedNamedImport.add(node.path);
|
|
4985
|
+
}
|
|
4978
4986
|
const result = [];
|
|
4979
4987
|
const namedByPath = /* @__PURE__ */ new Map();
|
|
4980
4988
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -5008,7 +5016,7 @@ function combineImports(imports, exports, source) {
|
|
|
5008
5016
|
namedByPath.set(key, newItem);
|
|
5009
5017
|
}
|
|
5010
5018
|
} else {
|
|
5011
|
-
if (name && !isUsed(name)) continue;
|
|
5019
|
+
if (name && !isUsed(name) && !pathsWithUsedNamedImport.has(path2)) continue;
|
|
5012
5020
|
const key = importKey(path2, name, isTypeOnly);
|
|
5013
5021
|
if (!seen.has(key)) {
|
|
5014
5022
|
result.push(curr);
|
|
@@ -5567,6 +5575,21 @@ function getMode(fileOrFolder) {
|
|
|
5567
5575
|
if (!fileOrFolder) return "split";
|
|
5568
5576
|
return extname(fileOrFolder) ? "single" : "split";
|
|
5569
5577
|
}
|
|
5578
|
+
function buildBannerMeta({ meta, file }) {
|
|
5579
|
+
var _a2, _b2, _c2, _d2, _e, _f;
|
|
5580
|
+
return {
|
|
5581
|
+
title: meta == null ? void 0 : meta.title,
|
|
5582
|
+
description: meta == null ? void 0 : meta.description,
|
|
5583
|
+
version: meta == null ? void 0 : meta.version,
|
|
5584
|
+
baseURL: meta == null ? void 0 : meta.baseURL,
|
|
5585
|
+
circularNames: (_a2 = meta == null ? void 0 : meta.circularNames) != null ? _a2 : [],
|
|
5586
|
+
enumNames: (_b2 = meta == null ? void 0 : meta.enumNames) != null ? _b2 : [],
|
|
5587
|
+
filePath: (_c2 = file == null ? void 0 : file.path) != null ? _c2 : "",
|
|
5588
|
+
baseName: (_d2 = file == null ? void 0 : file.baseName) != null ? _d2 : "",
|
|
5589
|
+
isBarrel: (_e = file == null ? void 0 : file.isBarrel) != null ? _e : false,
|
|
5590
|
+
isAggregation: (_f = file == null ? void 0 : file.isAggregation) != null ? _f : false
|
|
5591
|
+
};
|
|
5592
|
+
}
|
|
5570
5593
|
const stringPatternCache = /* @__PURE__ */ new Map();
|
|
5571
5594
|
function testPattern(value, pattern) {
|
|
5572
5595
|
if (typeof pattern === "string") {
|
|
@@ -5708,8 +5731,11 @@ function buildDefaultBanner({ title, description, version, config }) {
|
|
|
5708
5731
|
return "/**\n* Generated by Kubb (https://kubb.dev/).\n* Do not edit manually.\n*/";
|
|
5709
5732
|
}
|
|
5710
5733
|
}
|
|
5711
|
-
function defaultResolveBanner(meta, { output, config }) {
|
|
5712
|
-
if (typeof (output == null ? void 0 : output.banner) === "function") return output.banner(
|
|
5734
|
+
function defaultResolveBanner(meta, { output, config, file }) {
|
|
5735
|
+
if (typeof (output == null ? void 0 : output.banner) === "function") return output.banner(buildBannerMeta({
|
|
5736
|
+
meta,
|
|
5737
|
+
file
|
|
5738
|
+
}));
|
|
5713
5739
|
if (typeof (output == null ? void 0 : output.banner) === "string") return output.banner;
|
|
5714
5740
|
if (config.output.defaultBanner === false) return null;
|
|
5715
5741
|
return buildDefaultBanner({
|
|
@@ -5718,8 +5744,11 @@ function defaultResolveBanner(meta, { output, config }) {
|
|
|
5718
5744
|
config
|
|
5719
5745
|
});
|
|
5720
5746
|
}
|
|
5721
|
-
function defaultResolveFooter(meta, { output }) {
|
|
5722
|
-
if (typeof (output == null ? void 0 : output.footer) === "function") return output.footer(
|
|
5747
|
+
function defaultResolveFooter(meta, { output, file }) {
|
|
5748
|
+
if (typeof (output == null ? void 0 : output.footer) === "function") return output.footer(buildBannerMeta({
|
|
5749
|
+
meta,
|
|
5750
|
+
file
|
|
5751
|
+
}));
|
|
5723
5752
|
if (typeof (output == null ? void 0 : output.footer) === "string") return output.footer;
|
|
5724
5753
|
return null;
|
|
5725
5754
|
}
|
|
@@ -6819,7 +6848,7 @@ async function clean(path) {
|
|
|
6819
6848
|
force: true
|
|
6820
6849
|
});
|
|
6821
6850
|
}
|
|
6822
|
-
var version$1 = "5.0.0-beta.
|
|
6851
|
+
var version$1 = "5.0.0-beta.28";
|
|
6823
6852
|
function createStorage(build) {
|
|
6824
6853
|
return (options) => build(options != null ? options : {});
|
|
6825
6854
|
}
|
|
@@ -7088,7 +7117,7 @@ const memoryStorage = createStorage(() => {
|
|
|
7088
7117
|
};
|
|
7089
7118
|
});
|
|
7090
7119
|
|
|
7091
|
-
var version = "5.0.0-beta.
|
|
7120
|
+
var version = "5.0.0-beta.28";
|
|
7092
7121
|
|
|
7093
7122
|
function isCommandMessage(msg) {
|
|
7094
7123
|
return msg.type === "command";
|
|
@@ -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.1/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.1/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/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.1/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/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.1/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/route-rules-utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/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","../../../../../ast/dist/index.js","../../../../../core/dist/KubbDriver-
|
|
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.1/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.1/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/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.1/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/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.1/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/route-rules-utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/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","../../../../../ast/dist/index.js","../../../../../core/dist/KubbDriver-x86YM1Ia.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/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.1/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/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","memoize","path","__publicField","__privateAdd","__privateGet","__privateMethod","batch","__privateSet","_b","_c","_d","extname","r","e","n","o","files","duration","readFile","writeFile","readdir","version","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,55,56,57,58]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.28",
|
|
4
4
|
"description": "HTTP agent server for Kubb. Exposes code generation via REST API and WebSocket with real-time Kubb Studio integration, machine binding, and Docker support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"tinyexec": "^1.1.2",
|
|
44
44
|
"unstorage": "^1.17.5",
|
|
45
45
|
"ws": "^8.20.1",
|
|
46
|
-
"@kubb/ast": "5.0.0-beta.
|
|
47
|
-
"@kubb/core": "5.0.0-beta.
|
|
46
|
+
"@kubb/ast": "5.0.0-beta.28",
|
|
47
|
+
"@kubb/core": "5.0.0-beta.28"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/ws": "^8.18.1",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"nitropack": "^2.13.4",
|
|
53
53
|
"vite": "^8.0.13",
|
|
54
54
|
"@internals/utils": "0.0.0",
|
|
55
|
-
"@kubb/adapter-oas": "5.0.0-beta.
|
|
56
|
-
"@kubb/parser-ts": "5.0.0-beta.
|
|
57
|
-
"@kubb/renderer-jsx": "5.0.0-beta.
|
|
55
|
+
"@kubb/adapter-oas": "5.0.0-beta.28",
|
|
56
|
+
"@kubb/parser-ts": "5.0.0-beta.28",
|
|
57
|
+
"@kubb/renderer-jsx": "5.0.0-beta.28"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=22"
|