@l4yercak3/cli 1.2.6 → 1.2.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@l4yercak3/cli",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Icing on the L4yercak3 - The sweet finishing touch for your Layer Cake integration",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -135,6 +135,21 @@ async function handleSpread() {
135
135
 
136
136
  console.log('');
137
137
 
138
+ // Step 1.5: Project name
139
+ const folderName = path.basename(detection.projectPath);
140
+ const defaultProjectName = detection.github.repo || folderName;
141
+
142
+ const { projectName } = await inquirer.prompt([
143
+ {
144
+ type: 'input',
145
+ name: 'projectName',
146
+ message: 'Project name:',
147
+ default: defaultProjectName,
148
+ validate: (input) => input.trim().length > 0 || 'Project name is required',
149
+ },
150
+ ]);
151
+ console.log(chalk.green(` ✅ Project: ${projectName}\n`));
152
+
138
153
  // Step 2: Organization selection
139
154
  console.log(chalk.cyan(' 📦 Organization Setup\n'));
140
155
  let organizationId;
@@ -438,7 +453,7 @@ async function handleSpread() {
438
453
  features,
439
454
  oauthProviders,
440
455
  productionDomain,
441
- appName: detection.github.repo || organizationName,
456
+ appName: projectName,
442
457
  isTypeScript,
443
458
  routerType,
444
459
  frameworkType: detection.framework.type || 'unknown',
@@ -532,7 +547,7 @@ async function handleSpread() {
532
547
 
533
548
  const registrationData = {
534
549
  organizationId,
535
- name: detection.github.repo || organizationName || 'My Application',
550
+ name: projectName,
536
551
  description: `Connected via CLI from ${detection.framework.type || 'unknown'} project`,
537
552
  source: sourceData,
538
553
  connection: {