@lunora/cli 1.0.0-alpha.47 → 1.0.0-alpha.49

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.
@@ -2406,8 +2406,13 @@ const scaffoldNewProject = async (options, cwd, recordTarget) => {
2406
2406
  return { code: 1, files: [], target: "" };
2407
2407
  }
2408
2408
  const suggestedName = generateProjectName();
2409
- const name = options.name ?? await tuiText(COPY.name, { badge: BADGES.dir, default: suggestedName, placeholder: suggestedName });
2409
+ const rawName = options.name ?? await tuiText(COPY.name, { badge: BADGES.dir, default: suggestedName, placeholder: suggestedName });
2410
2410
  const choice = await resolveScaffoldChoice(options);
2411
+ const name = rawName.trim();
2412
+ if (name.length === 0) {
2413
+ options.logger.error(`init: refusing an empty project name — pass a directory name (e.g. \`lunora init my-app\`).`);
2414
+ return { code: 1, files: [], target: "" };
2415
+ }
2411
2416
  if (name.includes("/") || name.includes("\\") || name === ".." || name === ".") {
2412
2417
  options.logger.error(`init: refusing project name "${name}" — must not contain path separators or be "." / "..".`);
2413
2418
  return { code: 1, files: [], target: "" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/cli",
3
- "version": "1.0.0-alpha.47",
3
+ "version": "1.0.0-alpha.49",
4
4
  "description": "The Lunora CLI: init, dev, deploy, codegen, run, reset, and migrate commands",
5
5
  "keywords": [
6
6
  "agent-skills",
@@ -52,11 +52,11 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@bomb.sh/tab": "0.0.17",
55
- "@lunora/codegen": "1.0.0-alpha.20",
56
- "@lunora/config": "1.0.0-alpha.35",
55
+ "@lunora/codegen": "1.0.0-alpha.22",
56
+ "@lunora/config": "1.0.0-alpha.37",
57
57
  "@lunora/container": "1.0.0-alpha.5",
58
- "@lunora/d1": "1.0.0-alpha.14",
59
- "@lunora/seed": "1.0.0-alpha.8",
58
+ "@lunora/d1": "1.0.0-alpha.16",
59
+ "@lunora/seed": "1.0.0-alpha.10",
60
60
  "@visulima/cerebro": "3.0.0-alpha.32",
61
61
  "@visulima/error": "6.0.0-alpha.34",
62
62
  "@visulima/fs": "5.0.0-alpha.32",