@kimesh/cli 0.2.7 → 0.2.8-nightly.20260126032211

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.
@@ -49,6 +49,12 @@ const devArgs = {
49
49
  type: "string",
50
50
  alias: "x",
51
51
  description: "Comma-separated list of layers to exclude"
52
+ },
53
+ verbose: {
54
+ type: "boolean",
55
+ alias: "v",
56
+ description: "Enable verbose/debug logging",
57
+ default: false
52
58
  }
53
59
  };
54
60
  /**
@@ -1,5 +1,5 @@
1
1
  import { loadKit } from "./kit-BcEYldTS.js";
2
- import { buildArgs } from "./_shared-CEwpPT2B.js";
2
+ import { buildArgs } from "./_shared-D3uN5SoF.js";
3
3
  import { defineCommand } from "citty";
4
4
  import consola from "consola";
5
5
  import { resolve } from "node:path";
@@ -55,9 +55,7 @@ var init_default = defineCommand({
55
55
  consola.log(` ${pc.green("+")} ${dir}/`);
56
56
  } else consola.log(` ${pc.dim("○")} ${dir}/ (exists)`);
57
57
  }
58
- const configContent = `import { defineKmConfig } from '@kimesh/kit'
59
-
60
- export default defineKmConfig({
58
+ const configContent = `export default defineKmConfig({
61
59
  // Application name
62
60
  name: '${getProjectName(root)}',
63
61
 
@@ -1,5 +1,5 @@
1
1
  import { loadKit } from "./kit-BcEYldTS.js";
2
- import { devArgs } from "./_shared-CEwpPT2B.js";
2
+ import { devArgs } from "./_shared-D3uN5SoF.js";
3
3
  import { defineCommand } from "citty";
4
4
  import consola from "consola";
5
5
  import pc from "picocolors";
@@ -14,6 +14,8 @@ var dev_default = defineCommand({
14
14
  args: devArgs,
15
15
  async run({ args }) {
16
16
  const root = resolve(args.root || process.cwd());
17
+ const verbose = args.verbose ?? false;
18
+ if (verbose) consola.level = 4;
17
19
  const kit = await loadKit(root);
18
20
  const { loadConfig, kimeshPlugin } = kit;
19
21
  const kmConfig = await loadConfig({
@@ -23,8 +25,7 @@ var dev_default = defineCommand({
23
25
  const enabledLayers = parseLayersArg(args.layers);
24
26
  const excludedLayers = args["exclude-layers"] ? args["exclude-layers"].split(",").map((l) => l.trim()) : [];
25
27
  consola.info(`Starting ${pc.cyan(kmConfig.name || "Kimesh")} dev server...`);
26
- if (enabledLayers === "all") consola.info(`Layers: ${pc.green("all")}`);
27
- else if (enabledLayers === "none") consola.info(`Layers: ${pc.yellow("none (host only)")}`);
28
+ if (enabledLayers === "none") consola.info(`Layers: ${pc.yellow("none (host only)")}`);
28
29
  else if (Array.isArray(enabledLayers)) consola.info(`Layers: ${pc.cyan(enabledLayers.join(", "))}`);
29
30
  if (excludedLayers.length > 0) consola.info(`Excluded: ${pc.yellow(excludedLayers.join(", "))}`);
30
31
  const { createServer } = await import("vite");
@@ -36,6 +37,7 @@ var dev_default = defineCommand({
36
37
  configFile: false,
37
38
  plugins: [kimeshPlugin({
38
39
  config: kmConfig,
40
+ debug: verbose,
39
41
  layers: {
40
42
  enabled: enabledLayers,
41
43
  excluded: excludedLayers
@@ -1,4 +1,4 @@
1
- import { sharedArgs } from "./_shared-CEwpPT2B.js";
1
+ import { sharedArgs } from "./_shared-D3uN5SoF.js";
2
2
  import { defineCommand } from "citty";
3
3
  import consola from "consola";
4
4
  import pc from "picocolors";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { main$1 as main, version$1 as version } from "./main-CCPXvZyj.js";
1
+ import { main$1 as main, version$1 as version } from "./main-CnFffgxE.js";
2
2
  import { run$1 as run } from "./run-DiuH8yNF.js";
3
3
  import * as citty2 from "citty";
4
4
  import * as consola0 from "consola";
@@ -38,6 +38,12 @@ declare const commands: {
38
38
  alias: string;
39
39
  description: string;
40
40
  };
41
+ verbose: {
42
+ type: "boolean";
43
+ alias: string;
44
+ description: string;
45
+ default: false;
46
+ };
41
47
  root: {
42
48
  type: "string";
43
49
  alias: string;
@@ -165,6 +171,12 @@ declare const commands: {
165
171
  alias: string;
166
172
  description: string;
167
173
  };
174
+ verbose: {
175
+ type: "boolean";
176
+ alias: string;
177
+ description: string;
178
+ default: false;
179
+ };
168
180
  root: {
169
181
  type: "string";
170
182
  alias: string;
@@ -289,6 +301,12 @@ declare const devArgs: {
289
301
  alias: string;
290
302
  description: string;
291
303
  };
304
+ verbose: {
305
+ type: "boolean";
306
+ alias: string;
307
+ description: string;
308
+ default: false;
309
+ };
292
310
  root: {
293
311
  type: "string";
294
312
  alias: string;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { commands, main, version } from "./main-DncTPs_e.js";
2
- import { run } from "./run-DCL2u7IK.js";
1
+ import { commands, main, version } from "./main-Di3LTdeu.js";
2
+ import { run } from "./run-CQnvUWbU.js";
3
3
  import { clearKitCache, getKit, loadKit } from "./kit-BcEYldTS.js";
4
- import { buildArgs, devArgs, prepareArgs, sharedArgs } from "./_shared-CEwpPT2B.js";
4
+ import { buildArgs, devArgs, prepareArgs, sharedArgs } from "./_shared-D3uN5SoF.js";
5
5
  import consola from "consola";
6
6
  import pc from "picocolors";
7
7
  import { fileURLToPath } from "node:url";
@@ -1,5 +1,5 @@
1
1
  import { loadKit } from "./kit-BcEYldTS.js";
2
- import { sharedArgs } from "./_shared-CEwpPT2B.js";
2
+ import { sharedArgs } from "./_shared-D3uN5SoF.js";
3
3
  import { defineCommand } from "citty";
4
4
  import consola from "consola";
5
5
  import pc from "picocolors";
@@ -145,9 +145,7 @@ var layer_default = defineCommand({
145
145
  fs.mkdirSync(dirPath, { recursive: true });
146
146
  consola.log(` ${pc.green("+")} ${dir || layerName}/`);
147
147
  }
148
- const configContent = `import { defineKmConfig } from '@kimesh/kit'
149
-
150
- export default defineKmConfig({
148
+ const configContent = `export default defineKmConfig({
151
149
  name: '${layerName}',
152
150
 
153
151
  // Base path for all routes in this layer
@@ -1,7 +1,7 @@
1
1
  import * as citty0 from "citty";
2
2
 
3
3
  //#region src/main.d.ts
4
- declare const version = "0.1.0";
4
+ declare const version: string;
5
5
  /**
6
6
  * Main CLI command definition
7
7
  */
@@ -1,3 +1,4 @@
1
+ import { createRequire } from "node:module";
1
2
  import { defineCommand } from "citty";
2
3
  import consola from "consola";
3
4
  import pc from "picocolors";
@@ -8,18 +9,20 @@ import pc from "picocolors";
8
9
  * Commands are only imported when actually used
9
10
  */
10
11
  const commands = {
11
- dev: () => import("./dev-o5sR0-kW.js").then((m) => m.default),
12
- build: () => import("./build-Ce4Dm8mI.js").then((m) => m.default),
13
- generate: () => import("./generate-Dx64ract.js").then((m) => m.default),
14
- prepare: () => import("./prepare-DScUWnaY.js").then((m) => m.default),
15
- layer: () => import("./layer-D829AuwM.js").then((m) => m.default),
12
+ dev: () => import("./dev-GvlWAVQg.js").then((m) => m.default),
13
+ build: () => import("./build-DeoCfEWa.js").then((m) => m.default),
14
+ generate: () => import("./generate-wsf4mquZ.js").then((m) => m.default),
15
+ prepare: () => import("./prepare-VztJSQF3.js").then((m) => m.default),
16
+ layer: () => import("./layer-CMtAhoLY.js").then((m) => m.default),
16
17
  init: () => import("./commands/init.js").then((m) => m.default),
17
- start: () => import("./dev-o5sR0-kW.js").then((m) => m.default)
18
+ start: () => import("./dev-GvlWAVQg.js").then((m) => m.default)
18
19
  };
19
20
 
20
21
  //#endregion
21
22
  //#region src/main.ts
22
- const version = "0.1.0";
23
+ const require = createRequire(import.meta.url);
24
+ const pkg = require("../package.json");
25
+ const version = pkg.version;
23
26
  /**
24
27
  * Main CLI command definition
25
28
  */
package/dist/main.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { main$1 as main, version$1 as version } from "./main-CCPXvZyj.js";
1
+ import { main$1 as main, version$1 as version } from "./main-CnFffgxE.js";
2
2
  export { main, version };
package/dist/main.js CHANGED
@@ -1,3 +1,3 @@
1
- import { main, version } from "./main-DncTPs_e.js";
1
+ import { main, version } from "./main-Di3LTdeu.js";
2
2
 
3
3
  export { main, version };
@@ -1,5 +1,5 @@
1
1
  import { loadKit } from "./kit-BcEYldTS.js";
2
- import { prepareArgs } from "./_shared-CEwpPT2B.js";
2
+ import { prepareArgs } from "./_shared-D3uN5SoF.js";
3
3
  import { defineCommand } from "citty";
4
4
  import consola from "consola";
5
5
  import pc from "picocolors";
@@ -1,4 +1,4 @@
1
- import { main } from "./main-DncTPs_e.js";
1
+ import { main } from "./main-Di3LTdeu.js";
2
2
  import { runMain } from "citty";
3
3
 
4
4
  //#region src/run.ts
package/dist/run.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./main-DncTPs_e.js";
2
- import { run } from "./run-DCL2u7IK.js";
1
+ import "./main-Di3LTdeu.js";
2
+ import { run } from "./run-CQnvUWbU.js";
3
3
 
4
4
  export { run };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimesh/cli",
3
- "version": "0.2.7",
3
+ "version": "0.2.8-nightly.20260126032211",
4
4
  "description": "Kimesh Framework CLI",
5
5
  "type": "module",
6
6
  "repository": {
@@ -37,7 +37,7 @@
37
37
  "typecheck": "tsc --noEmit"
38
38
  },
39
39
  "dependencies": {
40
- "@kimesh/kit": "0.2.7",
40
+ "@kimesh/kit": "workspace:*",
41
41
  "citty": "^0.1.6",
42
42
  "consola": "^3.4.2",
43
43
  "exsolve": "^1.0.8",
@@ -49,7 +49,7 @@
49
49
  "typescript": "^5.8.2"
50
50
  },
51
51
  "peerDependencies": {
52
- "vite": "^6.0.0"
52
+ "vite": "^8.0.0-beta.8"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "vite": {