@kubb/cli 4.37.12 → 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.
Files changed (73) hide show
  1. package/LICENSE +17 -10
  2. package/dist/{constants-CM3dJzjK.js → constants-CR-BDIf6.js} +2 -11
  3. package/dist/constants-CR-BDIf6.js.map +1 -0
  4. package/dist/{constants-BTUap0zs.cjs → constants-DYL5YQqt.cjs} +1 -16
  5. package/dist/constants-DYL5YQqt.cjs.map +1 -0
  6. package/dist/{generate-BV2cctNa.cjs → generate-BKFQErdj.cjs} +4 -4
  7. package/dist/{generate-BV2cctNa.cjs.map → generate-BKFQErdj.cjs.map} +1 -1
  8. package/dist/{generate-ukGpmX5d.js → generate-CzGZWR26.js} +2 -2
  9. package/dist/{generate-ukGpmX5d.js.map → generate-CzGZWR26.js.map} +1 -1
  10. package/dist/{generate-BWIckh_f.js → generate-D9WGRoua.js} +4 -4
  11. package/dist/{generate-BWIckh_f.js.map → generate-D9WGRoua.js.map} +1 -1
  12. package/dist/{generate-DRyl1ngg.cjs → generate-Dk-uEljm.cjs} +2 -2
  13. package/dist/{generate-DRyl1ngg.cjs.map → generate-Dk-uEljm.cjs.map} +1 -1
  14. package/dist/index.cjs +7 -9
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.js +7 -9
  17. package/dist/index.js.map +1 -1
  18. package/dist/{init-hmolV6B4.cjs → init-BaM_F3d_.cjs} +2 -3
  19. package/dist/{init-hmolV6B4.cjs.map → init-BaM_F3d_.cjs.map} +1 -1
  20. package/dist/{init-BS6XuccC.cjs → init-BppS7lGq.cjs} +3 -3
  21. package/dist/{init-BS6XuccC.cjs.map → init-BppS7lGq.cjs.map} +1 -1
  22. package/dist/{init-C-InrmSY.js → init-Cf6fA41K.js} +2 -3
  23. package/dist/{init-C-InrmSY.js.map → init-Cf6fA41K.js.map} +1 -1
  24. package/dist/{init-CR-_WPUY.js → init-DrFtOgvZ.js} +3 -3
  25. package/dist/{init-CR-_WPUY.js.map → init-DrFtOgvZ.js.map} +1 -1
  26. package/dist/{jiti-e08mD2Ph.js → jiti-D5qMw1UC.js} +1 -1
  27. package/dist/{jiti-e08mD2Ph.js.map → jiti-D5qMw1UC.js.map} +1 -1
  28. package/dist/{jiti-Cd3S0xwr.cjs → jiti-EgzFa-0e.cjs} +1 -1
  29. package/dist/{jiti-Cd3S0xwr.cjs.map → jiti-EgzFa-0e.cjs.map} +1 -1
  30. package/dist/{mcp-Decr7Ndy.cjs → mcp-34XslSuW.cjs} +3 -3
  31. package/dist/{mcp-Decr7Ndy.cjs.map → mcp-34XslSuW.cjs.map} +1 -1
  32. package/dist/{mcp-X8kKSlov.cjs → mcp-CFaF2OMK.cjs} +3 -3
  33. package/dist/{mcp-X8kKSlov.cjs.map → mcp-CFaF2OMK.cjs.map} +1 -1
  34. package/dist/{mcp-Cwbv3dfC.js → mcp-Cc7G7a6r.js} +3 -3
  35. package/dist/{mcp-Cwbv3dfC.js.map → mcp-Cc7G7a6r.js.map} +1 -1
  36. package/dist/{mcp-C2LVu0IJ.js → mcp-DaK3ey7W.js} +3 -3
  37. package/dist/{mcp-C2LVu0IJ.js.map → mcp-DaK3ey7W.js.map} +1 -1
  38. package/dist/{package-Vn5neIqs.cjs → package-Bri2J9tx.cjs} +2 -2
  39. package/dist/package-Bri2J9tx.cjs.map +1 -0
  40. package/dist/package-CKHXivYd.js +6 -0
  41. package/dist/package-CKHXivYd.js.map +1 -0
  42. package/dist/{telemetry-CEm85k_X.cjs → telemetry-Cj4VP-SC.cjs} +2 -2
  43. package/dist/{telemetry-CEm85k_X.cjs.map → telemetry-Cj4VP-SC.cjs.map} +1 -1
  44. package/dist/{telemetry-CHWsjyeK.js → telemetry-DTy9TjCN.js} +2 -2
  45. package/dist/{telemetry-CHWsjyeK.js.map → telemetry-DTy9TjCN.js.map} +1 -1
  46. package/dist/{validate-DYVo8-Fj.cjs → validate-CBVnOSEe.cjs} +3 -3
  47. package/dist/{validate-DYVo8-Fj.cjs.map → validate-CBVnOSEe.cjs.map} +1 -1
  48. package/dist/{validate-Ccyz_eeH.js → validate-Cc7mwoms.js} +3 -3
  49. package/dist/{validate-Ccyz_eeH.js.map → validate-Cc7mwoms.js.map} +1 -1
  50. package/dist/{validate-BGyxLev8.js → validate-Cn4KXS03.js} +3 -3
  51. package/dist/{validate-BGyxLev8.js.map → validate-Cn4KXS03.js.map} +1 -1
  52. package/dist/{validate-DeCglMLZ.cjs → validate-VSgcmd7F.cjs} +3 -3
  53. package/dist/{validate-DeCglMLZ.cjs.map → validate-VSgcmd7F.cjs.map} +1 -1
  54. package/package.json +4 -5
  55. package/src/constants.ts +0 -11
  56. package/src/index.ts +7 -9
  57. package/src/runners/init.ts +1 -1
  58. package/dist/agent-Y6OHPv5y.js +0 -56
  59. package/dist/agent-Y6OHPv5y.js.map +0 -1
  60. package/dist/agent-bJ5FNFnA.cjs +0 -92
  61. package/dist/agent-bJ5FNFnA.cjs.map +0 -1
  62. package/dist/agent-fcClds-t.js +0 -88
  63. package/dist/agent-fcClds-t.js.map +0 -1
  64. package/dist/agent-nAi13AeU.cjs +0 -58
  65. package/dist/agent-nAi13AeU.cjs.map +0 -1
  66. package/dist/constants-BTUap0zs.cjs.map +0 -1
  67. package/dist/constants-CM3dJzjK.js.map +0 -1
  68. package/dist/package--04z8AtK.js +0 -6
  69. package/dist/package--04z8AtK.js.map +0 -1
  70. package/dist/package-Vn5neIqs.cjs.map +0 -1
  71. package/src/commands/agent/start.ts +0 -31
  72. package/src/commands/agent.ts +0 -8
  73. package/src/runners/agent.ts +0 -102
package/LICENSE CHANGED
@@ -1,14 +1,21 @@
1
- Copyright (c) 2026 Stijn Van Hulle
2
-
3
- This repository contains software under two licenses:
1
+ MIT License
4
2
 
5
- 1. Most of the code in this repository is licensed under the
6
- MIT License — see licenses/LICENSE-MIT for the full license text.
3
+ Copyright (c) 2026 Stijn Van Hulle
7
4
 
8
- 2. The following components are licensed under the
9
- GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later)
10
- see licenses/LICENSE-AGPL-3.0 for the full license text:
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
- - packages/agent (published as @kubb/agent)
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
- Each package's own LICENSE file or package.json specifies its applicable license.
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 { agentDefaults as a, WATCHER_IGNORED_PATHS as i, OTLP_ENDPOINT as n, initDefaults as o, SUMMARY_SEPARATOR as r, pluginDefaultConfigs as s, KUBB_NPM_PACKAGE_URL as t };
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-CM3dJzjK.js.map
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-BTUap0zs.cjs.map
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-CEm85k_X.cjs");
3
+ const require_telemetry = require("./telemetry-Cj4VP-SC.cjs");
4
4
  const require_shell = require("./shell-7HPrTCJ5.cjs");
5
- const require_package = require("./package-Vn5neIqs.cjs");
6
- const require_constants = require("./constants-BTUap0zs.cjs");
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-BV2cctNa.cjs.map
1488
+ //# sourceMappingURL=generate-BKFQErdj.cjs.map