@kubb/cli 5.12.2 → 5.12.4

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 (65) hide show
  1. package/README.md +1 -0
  2. package/dist/{Telemetry-C7v3wFNp.cjs → Telemetry-BkicoE-Z.cjs} +2 -2
  3. package/dist/{Telemetry-C7v3wFNp.cjs.map → Telemetry-BkicoE-Z.cjs.map} +1 -1
  4. package/dist/{Telemetry-BhoWyCRu.js → Telemetry-CstxHeyx.js} +2 -2
  5. package/dist/{Telemetry-BhoWyCRu.js.map → Telemetry-CstxHeyx.js.map} +1 -1
  6. package/dist/{background-BCDVfX30.cjs → background-70s5rqtb.cjs} +2 -2
  7. package/dist/{background-BCDVfX30.cjs.map → background-70s5rqtb.cjs.map} +1 -1
  8. package/dist/{background-CUF-snCU.js → background-CPq1NAJT.js} +2 -2
  9. package/dist/{background-CUF-snCU.js.map → background-CPq1NAJT.js.map} +1 -1
  10. package/dist/{background-BLkaGx4A.js → background-Dwiy0N4c.js} +1 -1
  11. package/dist/credentials-CZK6zPLv.js.map +1 -1
  12. package/dist/credentials-DDaKqtJn.cjs.map +1 -1
  13. package/dist/index.cjs +24 -18
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.js +24 -18
  16. package/dist/index.js.map +1 -1
  17. package/dist/{registry-BUPuJlgX.js → registry-BRWRpTro.js} +3 -3
  18. package/dist/{registry-BUPuJlgX.js.map → registry-BRWRpTro.js.map} +1 -1
  19. package/dist/{registry-Cl-wgD7H.cjs → registry-C0e_AKBs.cjs} +3 -3
  20. package/dist/{registry-Cl-wgD7H.cjs.map → registry-C0e_AKBs.cjs.map} +1 -1
  21. package/dist/{reporters-DzAzRAlM.js → reporters-B4bdZbKM.js} +4 -4
  22. package/dist/{reporters-DzAzRAlM.js.map → reporters-B4bdZbKM.js.map} +1 -1
  23. package/dist/{reporters-DkBWh4sD.cjs → reporters-BCr1sLhx.cjs} +4 -4
  24. package/dist/{reporters-DkBWh4sD.cjs.map → reporters-BCr1sLhx.cjs.map} +1 -1
  25. package/dist/{run-BWT7PtHZ.js → run-BBbDMKQV.js} +4 -4
  26. package/dist/{run-BWT7PtHZ.js.map → run-BBbDMKQV.js.map} +1 -1
  27. package/dist/{run-BJXDoxOJ.js → run-BTCJEgx1.js} +6 -6
  28. package/dist/{run-BJXDoxOJ.js.map → run-BTCJEgx1.js.map} +1 -1
  29. package/dist/{run-DqFL5SMR.cjs → run-Bep5DR9M.cjs} +2 -2
  30. package/dist/{run-DqFL5SMR.cjs.map → run-Bep5DR9M.cjs.map} +1 -1
  31. package/dist/{run-CioQPR0t.js → run-D9ji3RFo.js} +2 -2
  32. package/dist/{run-CioQPR0t.js.map → run-D9ji3RFo.js.map} +1 -1
  33. package/dist/{run-BcTgwks6.js → run-DAiTuC3q.js} +13 -7
  34. package/dist/run-DAiTuC3q.js.map +1 -0
  35. package/dist/{run-T82Jef8b.cjs → run-DKY7q4MO.cjs} +13 -7
  36. package/dist/run-DKY7q4MO.cjs.map +1 -0
  37. package/dist/{run-CK19O5v2.cjs → run-DeCB4qsZ.cjs} +6 -6
  38. package/dist/{run-CK19O5v2.cjs.map → run-DeCB4qsZ.cjs.map} +1 -1
  39. package/dist/{run-DklXr_kO.js → run-n6CWcR7D.js} +1 -1
  40. package/dist/{run-9uoP-2Xh.cjs → run-ybmOzOWQ.cjs} +4 -4
  41. package/dist/{run-9uoP-2Xh.cjs.map → run-ybmOzOWQ.cjs.map} +1 -1
  42. package/dist/{snapshot-DLPs2buj.js → snapshot-C67BxRxn.js} +6 -6
  43. package/dist/{snapshot-DLPs2buj.js.map → snapshot-C67BxRxn.js.map} +1 -1
  44. package/dist/{snapshot-D5HiDktY.cjs → snapshot-CFFW4xh5.cjs} +6 -6
  45. package/dist/{snapshot-D5HiDktY.cjs.map → snapshot-CFFW4xh5.cjs.map} +1 -1
  46. package/dist/{status-DlLYGONt.js → status-C0SdSTAE.js} +3 -3
  47. package/dist/{status-DlLYGONt.js.map → status-C0SdSTAE.js.map} +1 -1
  48. package/dist/{status-BFMmzCfD.cjs → status-vo86HTqZ.cjs} +3 -3
  49. package/dist/{status-BFMmzCfD.cjs.map → status-vo86HTqZ.cjs.map} +1 -1
  50. package/dist/studioWorker.js +2 -2
  51. package/dist/{summary-BwbfP0Qj.cjs → summary-CCEwKLOi.cjs} +3 -3
  52. package/dist/{summary-BwbfP0Qj.cjs.map → summary-CCEwKLOi.cjs.map} +1 -1
  53. package/dist/{summary-DvLq6uim.js → summary-JL96aI9h.js} +3 -3
  54. package/dist/{summary-DvLq6uim.js.map → summary-JL96aI9h.js.map} +1 -1
  55. package/dist/{text-DfFJj91M.cjs → text-BFXVEEQp.cjs} +2 -2
  56. package/dist/{text-DfFJj91M.cjs.map → text-BFXVEEQp.cjs.map} +1 -1
  57. package/dist/{text-DG7CyUe7.js → text-ul0IR1pq.js} +2 -2
  58. package/dist/{text-DG7CyUe7.js.map → text-ul0IR1pq.js.map} +1 -1
  59. package/dist/{utils-Cb4fBZiX.cjs → utils-A-f-U1E7.cjs} +3 -3
  60. package/dist/{utils-Cb4fBZiX.cjs.map → utils-A-f-U1E7.cjs.map} +1 -1
  61. package/dist/{utils-BeOShrJ6.js → utils-BZYbuZTD.js} +3 -3
  62. package/dist/{utils-BeOShrJ6.js.map → utils-BZYbuZTD.js.map} +1 -1
  63. package/package.json +7 -7
  64. package/dist/run-BcTgwks6.js.map +0 -1
  65. package/dist/run-T82Jef8b.cjs.map +0 -1
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { t as __name } from "./rolldown-runtime-CRm0XQPb.js";
2
2
  import { t as getErrorMessage } from "./errors-DmC83ALX.js";
3
- import { a as getElapsedMs, i as formatMs, r as version, t as isDisabled } from "./Telemetry-BhoWyCRu.js";
4
- import { _ as write, a as readOutputFiles, c as createSpinner, g as read, l as withSpinner, m as exists, n as diffFiles } from "./utils-BeOShrJ6.js";
5
- import { _ as isRichOutput, a as logOutro, c as logBlock, d as logStep, f as logWarn, i as logIntro, l as logError, r as isInteractiveRun, t as pluralize } from "./text-DG7CyUe7.js";
6
- import { a as installSpec, c as toRegistryId, f as wantsMascot, i as incompatibility, l as toShortId, n as closestIds, o as isOutdated, r as fetchRegistryIndex, s as registryUrl, t as bumpOf, u as getBanner } from "./registry-BUPuJlgX.js";
3
+ import { a as getElapsedMs, i as formatMs, r as version, t as isDisabled } from "./Telemetry-CstxHeyx.js";
4
+ import { _ as write, a as readOutputFiles, c as createSpinner, g as read, l as withSpinner, m as exists, n as diffFiles } from "./utils-BZYbuZTD.js";
5
+ import { _ as isRichOutput, a as logOutro, c as logBlock, d as logStep, f as logWarn, i as logIntro, l as logError, r as isInteractiveRun, t as pluralize } from "./text-ul0IR1pq.js";
6
+ import { a as installSpec, c as toRegistryId, f as wantsMascot, i as incompatibility, l as toShortId, n as closestIds, o as isOutdated, r as fetchRegistryIndex, s as registryUrl, t as bumpOf, u as getBanner } from "./registry-BRWRpTro.js";
7
7
  import { a as initDefaults, i as KUBB_PACKAGE_NAME, n as findConfigFile, r as KUBB_CONFIG_FILENAME, t as getConfigs } from "./config-Bh00Hwpw.js";
8
- import { t as logCommandSummary } from "./summary-DvLq6uim.js";
8
+ import { t as logCommandSummary } from "./summary-JL96aI9h.js";
9
9
  import { styleText } from "node:util";
10
10
  import dryrun, { pluginId as dryRunId } from "@gunshi/plugin-dryrun";
11
11
  import { cli, define, defineWithTypes } from "gunshi";
@@ -86,6 +86,12 @@ const studioPermissionArgs = {
86
86
  default: false,
87
87
  toKebab: true
88
88
  },
89
+ allowSaveInput: {
90
+ type: "boolean",
91
+ description: "Let Studio save the spec it sends as the input in kubb.config.ts; needs --allow-config-edit too. Asked for once per project when omitted",
92
+ default: false,
93
+ toKebab: true
94
+ },
89
95
  allowExec: {
90
96
  type: "boolean",
91
97
  description: "Run the formatter, the linter, and output.postGenerate after a generation",
@@ -173,7 +179,7 @@ const command$13 = defineWithTypes()({
173
179
  async run(ctx) {
174
180
  const { values } = ctx;
175
181
  const logLevel = resolveLogLevel(values);
176
- const { run } = await import("./run-BJXDoxOJ.js");
182
+ const { run } = await import("./run-BTCJEgx1.js");
177
183
  await run({
178
184
  input: values.input,
179
185
  configPath: values.config,
@@ -197,7 +203,7 @@ const command$12 = define({
197
203
  ].join("\n"),
198
204
  rendering: { header: null },
199
205
  async run() {
200
- const { run } = await import("./run-CioQPR0t.js");
206
+ const { run } = await import("./run-D9ji3RFo.js");
201
207
  await run();
202
208
  }
203
209
  });
@@ -212,7 +218,7 @@ function studioCommand({ action, block, ...definition }) {
212
218
  ...definition,
213
219
  toKebab: true,
214
220
  async run({ values }) {
215
- const { runStudio } = await import("./run-DklXr_kO.js");
221
+ const { runStudio } = await import("./run-n6CWcR7D.js");
216
222
  await runStudio(values, action, { block });
217
223
  }
218
224
  });
@@ -242,7 +248,7 @@ const command$11 = studioCommand({
242
248
  },
243
249
  block: true,
244
250
  async action(options) {
245
- const { connect } = await import("./run-DklXr_kO.js");
251
+ const { connect } = await import("./run-n6CWcR7D.js");
246
252
  await connect(options);
247
253
  }
248
254
  });
@@ -254,7 +260,7 @@ const command$10 = studioCommand({
254
260
  examples: ["kubb studio login", "kubb studio login --url http://localhost:3000"].join("\n"),
255
261
  args: command$11.args,
256
262
  async action(options) {
257
- const { login } = await import("./run-DklXr_kO.js");
263
+ const { login } = await import("./run-n6CWcR7D.js");
258
264
  await login(options);
259
265
  }
260
266
  });
@@ -266,7 +272,7 @@ const command$9 = studioCommand({
266
272
  examples: "kubb studio logout",
267
273
  args: {},
268
274
  async action() {
269
- const { stopWorker } = await import("./background-BLkaGx4A.js");
275
+ const { stopWorker } = await import("./background-Dwiy0N4c.js");
270
276
  const { clearCredentials } = await import("./credentials-C8tjAhTo.js");
271
277
  await stopWorker();
272
278
  await clearCredentials();
@@ -309,7 +315,7 @@ const command$8 = define({
309
315
  ...logLevelArg
310
316
  },
311
317
  async run(ctx) {
312
- const { runner } = await import("./snapshot-DLPs2buj.js");
318
+ const { runner } = await import("./snapshot-C67BxRxn.js");
313
319
  await runner(ctx);
314
320
  }
315
321
  });
@@ -320,7 +326,7 @@ const command$7 = studioCommand({
320
326
  description: "Keep this project connected to Kubb Studio in the background.",
321
327
  args: command$11.args,
322
328
  async action(options) {
323
- const { startWorker } = await import("./background-BLkaGx4A.js");
329
+ const { startWorker } = await import("./background-Dwiy0N4c.js");
324
330
  await startWorker(options);
325
331
  }
326
332
  });
@@ -328,7 +334,7 @@ const stopCommand = define({
328
334
  name: "stop",
329
335
  description: "Stop this project's background connection and keep its pairing.",
330
336
  async run() {
331
- const { stopWorker } = await import("./background-BLkaGx4A.js");
337
+ const { stopWorker } = await import("./background-Dwiy0N4c.js");
332
338
  await stopWorker();
333
339
  console.log("Background connection stopped.");
334
340
  }
@@ -341,9 +347,9 @@ const command$6 = studioCommand({
341
347
  examples: "kubb studio status",
342
348
  args: { url: studioConnectionArgs.url },
343
349
  async action(options) {
344
- const { getWorkerLogPath, getWorkerStatus } = await import("./background-BLkaGx4A.js");
350
+ const { getWorkerLogPath, getWorkerStatus } = await import("./background-Dwiy0N4c.js");
345
351
  const { readCredentials } = await import("./credentials-C8tjAhTo.js");
346
- const { formatStatus } = await import("./status-DlLYGONt.js");
352
+ const { formatStatus } = await import("./status-C0SdSTAE.js");
347
353
  const [worker, credentials] = await Promise.all([getWorkerStatus(), readCredentials()]);
348
354
  console.log([
349
355
  "",
@@ -411,7 +417,7 @@ const command$4 = define({
411
417
  }
412
418
  },
413
419
  async run({ values }) {
414
- const { run } = await import("./run-BWT7PtHZ.js");
420
+ const { run } = await import("./run-BBbDMKQV.js");
415
421
  await run({
416
422
  input: values.input,
417
423
  configPath: values.config
@@ -1443,7 +1449,7 @@ async function regenerate({ cwd, configPath }) {
1443
1449
  const spinner = createSpinner();
1444
1450
  spinner.start("Generating with the new versions");
1445
1451
  try {
1446
- const [{ getConfigs }, { generate }] = await Promise.all([import("./config-iVdOcpro.js"), import("./run-BJXDoxOJ.js")]);
1452
+ const [{ getConfigs }, { generate }] = await Promise.all([import("./config-iVdOcpro.js"), import("./run-BTCJEgx1.js")]);
1447
1453
  const { configs } = await getConfigs({ configPath });
1448
1454
  const dirs = configs.map((config) => path.resolve(config.root ?? cwd, config.output.path));
1449
1455
  const before = new Map((await Promise.all(dirs.map(readOutputFiles))).flatMap((files) => [...files]));