@kubb/cli 4.37.11 → 4.38.0
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/LICENSE +17 -10
- package/dist/{constants-CM3dJzjK.js → constants-CR-BDIf6.js} +2 -11
- package/dist/constants-CR-BDIf6.js.map +1 -0
- package/dist/{constants-BTUap0zs.cjs → constants-DYL5YQqt.cjs} +1 -16
- package/dist/constants-DYL5YQqt.cjs.map +1 -0
- package/dist/{generate-CBD-ZbZu.cjs → generate-BKFQErdj.cjs} +4 -4
- package/dist/{generate-CBD-ZbZu.cjs.map → generate-BKFQErdj.cjs.map} +1 -1
- package/dist/{generate-BjksloS3.js → generate-CzGZWR26.js} +2 -2
- package/dist/{generate-BjksloS3.js.map → generate-CzGZWR26.js.map} +1 -1
- package/dist/{generate-CD19XWmg.js → generate-D9WGRoua.js} +4 -4
- package/dist/{generate-CD19XWmg.js.map → generate-D9WGRoua.js.map} +1 -1
- package/dist/{generate-CxI7VjlX.cjs → generate-Dk-uEljm.cjs} +2 -2
- package/dist/{generate-CxI7VjlX.cjs.map → generate-Dk-uEljm.cjs.map} +1 -1
- package/dist/index.cjs +7 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -9
- package/dist/index.js.map +1 -1
- package/dist/{init-hmolV6B4.cjs → init-BaM_F3d_.cjs} +2 -3
- package/dist/{init-hmolV6B4.cjs.map → init-BaM_F3d_.cjs.map} +1 -1
- package/dist/{init-CwBkr0OO.cjs → init-BppS7lGq.cjs} +3 -3
- package/dist/{init-CwBkr0OO.cjs.map → init-BppS7lGq.cjs.map} +1 -1
- package/dist/{init-C-InrmSY.js → init-Cf6fA41K.js} +2 -3
- package/dist/{init-C-InrmSY.js.map → init-Cf6fA41K.js.map} +1 -1
- package/dist/{init-BhDyPP6M.js → init-DrFtOgvZ.js} +3 -3
- package/dist/{init-BhDyPP6M.js.map → init-DrFtOgvZ.js.map} +1 -1
- package/dist/{jiti-e08mD2Ph.js → jiti-D5qMw1UC.js} +1 -1
- package/dist/{jiti-e08mD2Ph.js.map → jiti-D5qMw1UC.js.map} +1 -1
- package/dist/{jiti-Cd3S0xwr.cjs → jiti-EgzFa-0e.cjs} +1 -1
- package/dist/{jiti-Cd3S0xwr.cjs.map → jiti-EgzFa-0e.cjs.map} +1 -1
- package/dist/{mcp-BKLBwnwB.cjs → mcp-34XslSuW.cjs} +3 -3
- package/dist/{mcp-BKLBwnwB.cjs.map → mcp-34XslSuW.cjs.map} +1 -1
- package/dist/{mcp-X8kKSlov.cjs → mcp-CFaF2OMK.cjs} +3 -3
- package/dist/{mcp-X8kKSlov.cjs.map → mcp-CFaF2OMK.cjs.map} +1 -1
- package/dist/{mcp-Cwbv3dfC.js → mcp-Cc7G7a6r.js} +3 -3
- package/dist/{mcp-Cwbv3dfC.js.map → mcp-Cc7G7a6r.js.map} +1 -1
- package/dist/{mcp-rCGsuaWb.js → mcp-DaK3ey7W.js} +3 -3
- package/dist/{mcp-rCGsuaWb.js.map → mcp-DaK3ey7W.js.map} +1 -1
- package/dist/{package-CXinXKRX.cjs → package-Bri2J9tx.cjs} +2 -2
- package/dist/package-Bri2J9tx.cjs.map +1 -0
- package/dist/package-CKHXivYd.js +6 -0
- package/dist/package-CKHXivYd.js.map +1 -0
- package/dist/{telemetry-CEm85k_X.cjs → telemetry-Cj4VP-SC.cjs} +2 -2
- package/dist/{telemetry-CEm85k_X.cjs.map → telemetry-Cj4VP-SC.cjs.map} +1 -1
- package/dist/{telemetry-CHWsjyeK.js → telemetry-DTy9TjCN.js} +2 -2
- package/dist/{telemetry-CHWsjyeK.js.map → telemetry-DTy9TjCN.js.map} +1 -1
- package/dist/{validate-DYVo8-Fj.cjs → validate-CBVnOSEe.cjs} +3 -3
- package/dist/{validate-DYVo8-Fj.cjs.map → validate-CBVnOSEe.cjs.map} +1 -1
- package/dist/{validate-DDEzYbDZ.js → validate-Cc7mwoms.js} +3 -3
- package/dist/{validate-DDEzYbDZ.js.map → validate-Cc7mwoms.js.map} +1 -1
- package/dist/{validate-BGyxLev8.js → validate-Cn4KXS03.js} +3 -3
- package/dist/{validate-BGyxLev8.js.map → validate-Cn4KXS03.js.map} +1 -1
- package/dist/{validate-CtZ5uwEZ.cjs → validate-VSgcmd7F.cjs} +3 -3
- package/dist/{validate-CtZ5uwEZ.cjs.map → validate-VSgcmd7F.cjs.map} +1 -1
- package/package.json +4 -5
- package/src/constants.ts +0 -11
- package/src/index.ts +7 -9
- package/src/runners/init.ts +1 -1
- package/dist/agent-BaRFyk6N.cjs +0 -58
- package/dist/agent-BaRFyk6N.cjs.map +0 -1
- package/dist/agent-D_JDFk_t.js +0 -56
- package/dist/agent-D_JDFk_t.js.map +0 -1
- package/dist/agent-bJ5FNFnA.cjs +0 -92
- package/dist/agent-bJ5FNFnA.cjs.map +0 -1
- package/dist/agent-fcClds-t.js +0 -88
- package/dist/agent-fcClds-t.js.map +0 -1
- package/dist/constants-BTUap0zs.cjs.map +0 -1
- package/dist/constants-CM3dJzjK.js.map +0 -1
- package/dist/package-CXinXKRX.cjs.map +0 -1
- package/dist/package-DOoCSchC.js +0 -6
- package/dist/package-DOoCSchC.js.map +0 -1
- package/src/commands/agent/start.ts +0 -31
- package/src/commands/agent.ts +0 -8
- package/src/runners/agent.ts +0 -102
package/LICENSE
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
This repository contains software under two licenses:
|
|
1
|
+
MIT License
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
MIT License — see licenses/LICENSE-MIT for the full license text.
|
|
3
|
+
Copyright (c) 2026 Stijn Van Hulle
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -7,15 +7,6 @@ const OTLP_ENDPOINT = "https://otlp.kubb.dev";
|
|
|
7
7
|
const SUMMARY_SEPARATOR = "─".repeat(27);
|
|
8
8
|
/** Glob pattern for paths the file watcher ignores. */
|
|
9
9
|
const WATCHER_IGNORED_PATHS = "**/{.git,node_modules}/**";
|
|
10
|
-
/** Default runtime values for the `agent start` command. */
|
|
11
|
-
const agentDefaults = {
|
|
12
|
-
port: "3000",
|
|
13
|
-
host: "localhost",
|
|
14
|
-
configFile: "kubb.config.ts",
|
|
15
|
-
retryTimeout: "30000",
|
|
16
|
-
studioUrl: "https://studio.kubb.dev",
|
|
17
|
-
serverEntryPath: ".output/server/index.mjs"
|
|
18
|
-
};
|
|
19
10
|
/** Default values used during interactive `init` scaffolding. */
|
|
20
11
|
const initDefaults = {
|
|
21
12
|
inputPath: "./openapi.yaml",
|
|
@@ -62,6 +53,6 @@ const pluginDefaultConfigs = {
|
|
|
62
53
|
};
|
|
63
54
|
/** Color palette used by randomCliColor() for deterministic plugin name coloring. */
|
|
64
55
|
//#endregion
|
|
65
|
-
export {
|
|
56
|
+
export { initDefaults as a, WATCHER_IGNORED_PATHS as i, OTLP_ENDPOINT as n, pluginDefaultConfigs as o, SUMMARY_SEPARATOR as r, KUBB_NPM_PACKAGE_URL as t };
|
|
66
57
|
|
|
67
|
-
//# sourceMappingURL=constants-
|
|
58
|
+
//# sourceMappingURL=constants-CR-BDIf6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-CR-BDIf6.js","names":[],"sources":["../src/constants.ts"],"sourcesContent":["/** NPM registry endpoint used to check for @kubb/cli updates. */\nexport const KUBB_NPM_PACKAGE_URL = 'https://registry.npmjs.org/@kubb/cli/latest' as const\n\n/** OpenTelemetry ingestion endpoint for anonymous usage telemetry. */\nexport const OTLP_ENDPOINT = 'https://otlp.kubb.dev' as const\n\n/** Horizontal rule rendered above/below the plain-logger generation summary. */\nexport const SUMMARY_SEPARATOR = '─'.repeat(27)\n\n/** Maximum number of █ characters in a plugin timing bar. */\nexport const SUMMARY_MAX_BAR_LENGTH = 10 as const\n\n/** Divides elapsed milliseconds into bar-length units (1 block per 100 ms). */\nexport const SUMMARY_TIME_SCALE_DIVISOR = 100 as const\n\n/** Glob pattern for paths the file watcher ignores. */\nexport const WATCHER_IGNORED_PATHS = '**/{.git,node_modules}/**' as const\n\n/** Default values used during interactive `init` scaffolding. */\nexport const initDefaults = {\n inputPath: './openapi.yaml',\n outputPath: './src/gen',\n plugins: ['plugin-oas', 'plugin-ts'],\n} as const\n\n/**\n * Maps each plugin value to the default config snippet inserted by `init`.\n * The `satisfies` constraint ensures all values remain plain strings while\n * `as const` keeps the object deeply immutable.\n */\nexport const pluginDefaultConfigs = {\n 'plugin-oas': 'pluginOas()',\n 'plugin-ts': `pluginTs({\n output: { path: 'models' },\n })`,\n 'plugin-client': `pluginClient({\n output: { path: 'clients' },\n })`,\n 'plugin-react-query': `pluginReactQuery({\n output: { path: 'hooks' },\n })`,\n 'plugin-solid-query': `pluginSolidQuery({\n output: { path: 'hooks' },\n })`,\n 'plugin-svelte-query': `pluginSvelteQuery({\n output: { path: 'hooks' },\n })`,\n 'plugin-vue-query': `pluginVueQuery({\n output: { path: 'hooks' },\n })`,\n 'plugin-swr': `pluginSwr({\n output: { path: 'hooks' },\n })`,\n 'plugin-zod': `pluginZod({\n output: { path: 'zod' },\n })`,\n 'plugin-faker': `pluginFaker({\n output: { path: 'mocks' },\n })`,\n 'plugin-msw': `pluginMsw({\n output: { path: 'msw' },\n })`,\n} as const satisfies Record<string, string>\n\n/** Color palette used by randomCliColor() for deterministic plugin name coloring. */\n"],"mappings":";;AACA,MAAa,uBAAuB;;AAGpC,MAAa,gBAAgB;;AAG7B,MAAa,oBAAoB,IAAI,OAAO,GAAG;;AAS/C,MAAa,wBAAwB;;AAGrC,MAAa,eAAe;CAC1B,WAAW;CACX,YAAY;CACZ,SAAS,CAAC,cAAc,YAAY;CACrC;;;;;;AAOD,MAAa,uBAAuB;CAClC,cAAc;CACd,aAAa;;;CAGb,iBAAiB;;;CAGjB,sBAAsB;;;CAGtB,sBAAsB;;;CAGtB,uBAAuB;;;CAGvB,oBAAoB;;;CAGpB,cAAc;;;CAGd,cAAc;;;CAGd,gBAAgB;;;CAGhB,cAAc;;;CAGf"}
|
|
@@ -7,15 +7,6 @@ const OTLP_ENDPOINT = "https://otlp.kubb.dev";
|
|
|
7
7
|
const SUMMARY_SEPARATOR = "─".repeat(27);
|
|
8
8
|
/** Glob pattern for paths the file watcher ignores. */
|
|
9
9
|
const WATCHER_IGNORED_PATHS = "**/{.git,node_modules}/**";
|
|
10
|
-
/** Default runtime values for the `agent start` command. */
|
|
11
|
-
const agentDefaults = {
|
|
12
|
-
port: "3000",
|
|
13
|
-
host: "localhost",
|
|
14
|
-
configFile: "kubb.config.ts",
|
|
15
|
-
retryTimeout: "30000",
|
|
16
|
-
studioUrl: "https://studio.kubb.dev",
|
|
17
|
-
serverEntryPath: ".output/server/index.mjs"
|
|
18
|
-
};
|
|
19
10
|
/** Default values used during interactive `init` scaffolding. */
|
|
20
11
|
const initDefaults = {
|
|
21
12
|
inputPath: "./openapi.yaml",
|
|
@@ -86,12 +77,6 @@ Object.defineProperty(exports, "WATCHER_IGNORED_PATHS", {
|
|
|
86
77
|
return WATCHER_IGNORED_PATHS;
|
|
87
78
|
}
|
|
88
79
|
});
|
|
89
|
-
Object.defineProperty(exports, "agentDefaults", {
|
|
90
|
-
enumerable: true,
|
|
91
|
-
get: function() {
|
|
92
|
-
return agentDefaults;
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
80
|
Object.defineProperty(exports, "initDefaults", {
|
|
96
81
|
enumerable: true,
|
|
97
82
|
get: function() {
|
|
@@ -105,4 +90,4 @@ Object.defineProperty(exports, "pluginDefaultConfigs", {
|
|
|
105
90
|
}
|
|
106
91
|
});
|
|
107
92
|
|
|
108
|
-
//# sourceMappingURL=constants-
|
|
93
|
+
//# sourceMappingURL=constants-DYL5YQqt.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-DYL5YQqt.cjs","names":[],"sources":["../src/constants.ts"],"sourcesContent":["/** NPM registry endpoint used to check for @kubb/cli updates. */\nexport const KUBB_NPM_PACKAGE_URL = 'https://registry.npmjs.org/@kubb/cli/latest' as const\n\n/** OpenTelemetry ingestion endpoint for anonymous usage telemetry. */\nexport const OTLP_ENDPOINT = 'https://otlp.kubb.dev' as const\n\n/** Horizontal rule rendered above/below the plain-logger generation summary. */\nexport const SUMMARY_SEPARATOR = '─'.repeat(27)\n\n/** Maximum number of █ characters in a plugin timing bar. */\nexport const SUMMARY_MAX_BAR_LENGTH = 10 as const\n\n/** Divides elapsed milliseconds into bar-length units (1 block per 100 ms). */\nexport const SUMMARY_TIME_SCALE_DIVISOR = 100 as const\n\n/** Glob pattern for paths the file watcher ignores. */\nexport const WATCHER_IGNORED_PATHS = '**/{.git,node_modules}/**' as const\n\n/** Default values used during interactive `init` scaffolding. */\nexport const initDefaults = {\n inputPath: './openapi.yaml',\n outputPath: './src/gen',\n plugins: ['plugin-oas', 'plugin-ts'],\n} as const\n\n/**\n * Maps each plugin value to the default config snippet inserted by `init`.\n * The `satisfies` constraint ensures all values remain plain strings while\n * `as const` keeps the object deeply immutable.\n */\nexport const pluginDefaultConfigs = {\n 'plugin-oas': 'pluginOas()',\n 'plugin-ts': `pluginTs({\n output: { path: 'models' },\n })`,\n 'plugin-client': `pluginClient({\n output: { path: 'clients' },\n })`,\n 'plugin-react-query': `pluginReactQuery({\n output: { path: 'hooks' },\n })`,\n 'plugin-solid-query': `pluginSolidQuery({\n output: { path: 'hooks' },\n })`,\n 'plugin-svelte-query': `pluginSvelteQuery({\n output: { path: 'hooks' },\n })`,\n 'plugin-vue-query': `pluginVueQuery({\n output: { path: 'hooks' },\n })`,\n 'plugin-swr': `pluginSwr({\n output: { path: 'hooks' },\n })`,\n 'plugin-zod': `pluginZod({\n output: { path: 'zod' },\n })`,\n 'plugin-faker': `pluginFaker({\n output: { path: 'mocks' },\n })`,\n 'plugin-msw': `pluginMsw({\n output: { path: 'msw' },\n })`,\n} as const satisfies Record<string, string>\n\n/** Color palette used by randomCliColor() for deterministic plugin name coloring. */\n"],"mappings":";;AACA,MAAa,uBAAuB;;AAGpC,MAAa,gBAAgB;;AAG7B,MAAa,oBAAoB,IAAI,OAAO,GAAG;;AAS/C,MAAa,wBAAwB;;AAGrC,MAAa,eAAe;CAC1B,WAAW;CACX,YAAY;CACZ,SAAS,CAAC,cAAc,YAAY;CACrC;;;;;;AAOD,MAAa,uBAAuB;CAClC,cAAc;CACd,aAAa;;;CAGb,iBAAiB;;;CAGjB,sBAAsB;;;CAGtB,sBAAsB;;;CAGtB,uBAAuB;;;CAGvB,oBAAoB;;;CAGpB,cAAc;;;CAGd,cAAc;;;CAGd,gBAAgB;;;CAGhB,cAAc;;;CAGf"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-ByKO4r7w.cjs");
|
|
2
2
|
const require_errors = require("./errors-DBW0N9w4.cjs");
|
|
3
|
-
const require_telemetry = require("./telemetry-
|
|
3
|
+
const require_telemetry = require("./telemetry-Cj4VP-SC.cjs");
|
|
4
4
|
const require_shell = require("./shell-7HPrTCJ5.cjs");
|
|
5
|
-
const require_package = require("./package-
|
|
6
|
-
const require_constants = require("./constants-
|
|
5
|
+
const require_package = require("./package-Bri2J9tx.cjs");
|
|
6
|
+
const require_constants = require("./constants-DYL5YQqt.cjs");
|
|
7
7
|
let node_util = require("node:util");
|
|
8
8
|
let node_events = require("node:events");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1485,4 +1485,4 @@ async function runGenerateCommand({ input, configPath, logLevel: logLevelKey, wa
|
|
|
1485
1485
|
//#endregion
|
|
1486
1486
|
exports.runGenerateCommand = runGenerateCommand;
|
|
1487
1487
|
|
|
1488
|
-
//# sourceMappingURL=generate-
|
|
1488
|
+
//# sourceMappingURL=generate-BKFQErdj.cjs.map
|