@kubb/cli 5.0.0-beta.2 → 5.0.0-beta.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.
- package/dist/{agent-B_pirbeB.cjs → agent-B4cAAab2.cjs} +8 -2
- package/dist/agent-B4cAAab2.cjs.map +1 -0
- package/dist/{agent-DKeVuiUC.js → agent-CR6Z96og.js} +3 -3
- package/dist/{agent-DKeVuiUC.js.map → agent-CR6Z96og.js.map} +1 -1
- package/dist/{agent-0Nk--lcr.cjs → agent-Dmxzqg4d.cjs} +3 -3
- package/dist/{agent-0Nk--lcr.cjs.map → agent-Dmxzqg4d.cjs.map} +1 -1
- package/dist/{agent-Ev5hU5hH.js → agent-sdYBBgrd.js} +8 -2
- package/dist/agent-sdYBBgrd.js.map +1 -0
- package/dist/{generate-B3jl4ukb.cjs → generate-B1Pa2ho-.cjs} +3 -3
- package/dist/{generate-B3jl4ukb.cjs.map → generate-B1Pa2ho-.cjs.map} +1 -1
- package/dist/{generate-DL_7a7Wd.cjs → generate-BDGOOsBM.cjs} +2 -2
- package/dist/{generate-DL_7a7Wd.cjs.map → generate-BDGOOsBM.cjs.map} +1 -1
- package/dist/{generate-Dt_r0ELY.js → generate-CNrRLY4n.js} +3 -3
- package/dist/{generate-Dt_r0ELY.js.map → generate-CNrRLY4n.js.map} +1 -1
- package/dist/{generate-B3PZ6Dp-.js → generate-DuhxPLGr.js} +2 -2
- package/dist/{generate-B3PZ6Dp-.js.map → generate-DuhxPLGr.js.map} +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +6 -6
- package/dist/{init-Bj94Nvt8.js → init-CnZXHrbq.js} +2 -2
- package/dist/{init-Bj94Nvt8.js.map → init-CnZXHrbq.js.map} +1 -1
- package/dist/{init-CyN1oyTF.cjs → init-NYJSZJSb.cjs} +2 -2
- package/dist/{init-CyN1oyTF.cjs.map → init-NYJSZJSb.cjs.map} +1 -1
- package/dist/{mcp-CLcDV4Jm.cjs → mcp-CYOgxB82.cjs} +8 -2
- package/dist/mcp-CYOgxB82.cjs.map +1 -0
- package/dist/{mcp-ZY-ONTOp.cjs → mcp-CdFWyrwi.cjs} +3 -3
- package/dist/{mcp-ZY-ONTOp.cjs.map → mcp-CdFWyrwi.cjs.map} +1 -1
- package/dist/{mcp-BzW703d7.js → mcp-DhSxuDMD.js} +3 -3
- package/dist/{mcp-BzW703d7.js.map → mcp-DhSxuDMD.js.map} +1 -1
- package/dist/{mcp-D7EIR9fR.js → mcp-DmJm3TrU.js} +8 -2
- package/dist/mcp-DmJm3TrU.js.map +1 -0
- package/dist/{package-D8wlStAg.cjs → package-BapVyQ-w.cjs} +2 -2
- package/dist/package-BapVyQ-w.cjs.map +1 -0
- package/dist/package-DyJE-qNq.js +6 -0
- package/dist/package-DyJE-qNq.js.map +1 -0
- package/dist/{validate-_8mBa63G.cjs → validate-C6npXzel.cjs} +2 -2
- package/dist/{validate-_8mBa63G.cjs.map → validate-C6npXzel.cjs.map} +1 -1
- package/dist/{validate-Dplr99xO.js → validate-n38Rh-Y7.js} +2 -2
- package/dist/{validate-Dplr99xO.js.map → validate-n38Rh-Y7.js.map} +1 -1
- package/package.json +14 -6
- package/src/runners/agent.ts +7 -1
- package/src/runners/generate.ts +1 -1
- package/src/runners/mcp.ts +7 -1
- package/dist/agent-B_pirbeB.cjs.map +0 -1
- package/dist/agent-Ev5hU5hH.js.map +0 -1
- package/dist/mcp-CLcDV4Jm.cjs.map +0 -1
- package/dist/mcp-D7EIR9fR.js.map +0 -1
- package/dist/package-D8wlStAg.cjs.map +0 -1
- package/dist/package-Yo-9_m5C.js +0 -6
- package/dist/package-Yo-9_m5C.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-
|
|
1
|
+
{"version":3,"file":"generate-BDGOOsBM.cjs","names":["defineCommand"],"sources":["../src/commands/generate.ts"],"sourcesContent":["import { defineCommand } from '@internals/utils'\n\nexport const command = defineCommand({\n name: 'generate',\n description: \"[input] Generate files based on a 'kubb.config.ts' file\",\n arguments: ['[input]'],\n options: {\n config: {\n type: 'string',\n description: 'Path to the Kubb config',\n short: 'c',\n },\n logLevel: {\n type: 'string',\n description: 'Info, silent, verbose or debug',\n short: 'l',\n default: 'info',\n hint: 'silent|info|verbose|debug',\n enum: ['silent', 'info', 'verbose', 'debug'],\n },\n watch: {\n type: 'boolean',\n description: 'Watch mode based on the input file',\n short: 'w',\n default: false,\n },\n debug: {\n type: 'boolean',\n description: 'Override logLevel to debug',\n short: 'd',\n default: false,\n },\n verbose: {\n type: 'boolean',\n description: 'Override logLevel to verbose',\n short: 'v',\n default: false,\n },\n silent: {\n type: 'boolean',\n description: 'Override logLevel to silent',\n short: 's',\n default: false,\n },\n },\n async run({ values, positionals }) {\n const logLevel = values.debug ? 'debug' : values.verbose ? 'verbose' : values.silent ? 'silent' : values.logLevel\n const { runGenerateCommand } = await import('../runners/generate.ts')\n\n await runGenerateCommand({\n input: positionals[0],\n configPath: values.config,\n logLevel,\n watch: values.watch,\n })\n },\n})\n"],"mappings":";;AAEA,MAAa,0CAAUA,CAAAA,cAAc;CACnC,MAAM;CACN,aAAa;CACb,WAAW,CAAC,UAAU;CACtB,SAAS;EACP,QAAQ;GACN,MAAM;GACN,aAAa;GACb,OAAO;GACR;EACD,UAAU;GACR,MAAM;GACN,aAAa;GACb,OAAO;GACP,SAAS;GACT,MAAM;GACN,MAAM;IAAC;IAAU;IAAQ;IAAW;IAAQ;GAC7C;EACD,OAAO;GACL,MAAM;GACN,aAAa;GACb,OAAO;GACP,SAAS;GACV;EACD,OAAO;GACL,MAAM;GACN,aAAa;GACb,OAAO;GACP,SAAS;GACV;EACD,SAAS;GACP,MAAM;GACN,aAAa;GACb,OAAO;GACP,SAAS;GACV;EACD,QAAQ;GACN,MAAM;GACN,aAAa;GACb,OAAO;GACP,SAAS;GACV;EACF;CACD,MAAM,IAAI,EAAE,QAAQ,eAAe;EACjC,MAAM,WAAW,OAAO,QAAQ,UAAU,OAAO,UAAU,YAAY,OAAO,SAAS,WAAW,OAAO;EACzG,MAAM,EAAE,uBAAuB,MAAA,QAAA,SAAA,CAAA,WAAA,QAAM,0BAAA,CAAA;AAErC,QAAM,mBAAmB;GACvB,OAAO,YAAY;GACnB,YAAY,OAAO;GACnB;GACA,OAAO,OAAO;GACf,CAAC;;CAEL,CAAC"}
|
|
@@ -2,7 +2,7 @@ import "./chunk--u3MIqq1.js";
|
|
|
2
2
|
import { n as toCause, r as toError } from "./errors-CjPmyZHy.js";
|
|
3
3
|
import { a as canUseTTY, i as executeIfOnline, o as isGitHubActions, r as sendTelemetry, t as buildTelemetryEvent } from "./telemetry-LgT_sdPe.js";
|
|
4
4
|
import { n as tokenize } from "./shell-DLzN4fRo.js";
|
|
5
|
-
import { t as version } from "./package-
|
|
5
|
+
import { t as version } from "./package-DyJE-qNq.js";
|
|
6
6
|
import { a as SUMMARY_SEPARATOR, n as KUBB_NPM_PACKAGE_URL, o as WATCHER_IGNORED_PATHS } from "./constants-aL3CP_Wq.js";
|
|
7
7
|
import { styleText } from "node:util";
|
|
8
8
|
import { EventEmitter } from "node:events";
|
|
@@ -1581,7 +1581,7 @@ async function runToolPass({ toolValue, detect, toolMap, toolLabel, successPrefi
|
|
|
1581
1581
|
async function generate(options) {
|
|
1582
1582
|
const { input, hooks, logLevel: logLevel$2 } = options;
|
|
1583
1583
|
const hrStart = process$1.hrtime();
|
|
1584
|
-
const inputPath = input ?? ("path" in options.config.input ? options.config.input.path : void 0);
|
|
1584
|
+
const inputPath = input ?? (options.config.input && "path" in options.config.input ? options.config.input.path : void 0);
|
|
1585
1585
|
const config = {
|
|
1586
1586
|
...options.config,
|
|
1587
1587
|
input: inputPath ? {
|
|
@@ -1750,4 +1750,4 @@ async function runGenerateCommand({ input, configPath, logLevel: logLevelKey, wa
|
|
|
1750
1750
|
//#endregion
|
|
1751
1751
|
export { runGenerateCommand };
|
|
1752
1752
|
|
|
1753
|
-
//# sourceMappingURL=generate-
|
|
1753
|
+
//# sourceMappingURL=generate-CNrRLY4n.js.map
|