create-fleetbo-project 1.2.48 → 1.2.50
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.
|
@@ -172,6 +172,7 @@ if (command === 'alex') {
|
|
|
172
172
|
output: process.stdout,
|
|
173
173
|
prompt: \`\\x1b[34m\${dynamicUsername} ❯ \\x1b[0m\`
|
|
174
174
|
});
|
|
175
|
+
process.stdout.write('\n\x1b[F');
|
|
175
176
|
rl.prompt();
|
|
176
177
|
rl.on('line', async (line) => {
|
|
177
178
|
if (['exit', 'quit'].includes(line.trim().toLowerCase())) {
|
|
@@ -183,6 +184,7 @@ if (command === 'alex') {
|
|
|
183
184
|
await processAlexRequest(line.trim());
|
|
184
185
|
console.log('');
|
|
185
186
|
}
|
|
187
|
+
process.stdout.write('\n\x1b[F');
|
|
186
188
|
rl.prompt();
|
|
187
189
|
}).on('close', () => {
|
|
188
190
|
process.exit(0);
|
|
@@ -404,8 +406,10 @@ async function setupProject() {
|
|
|
404
406
|
packageJson.name = projectName;
|
|
405
407
|
packageJson.scripts = { ...packageJson.scripts, "fleetbo": "node scripts/cli.js", "dev": "node scripts/cli.js" };
|
|
406
408
|
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf8');
|
|
407
|
-
console.log('\n [Fleetbo]
|
|
408
|
-
console.log(`\n
|
|
409
|
+
console.log('\n \x1b[32m [Fleetbo] Project successfully created!\x1b[0m');
|
|
410
|
+
console.log(`\n Run: cd ${projectName} && npm run fleetbo`);
|
|
411
|
+
console.log('\ x1b[32m [Fleetbo] To start architecting with Alex, run: npm run fleetbo alex!\x1b[0m');
|
|
412
|
+
console.log('');
|
|
409
413
|
} catch (error) {
|
|
410
414
|
console.error('\n❌ Setup failed:', error.message);
|
|
411
415
|
if (fs.existsSync(projectDir)) try { fs.rmSync(projectDir, { recursive: true, force: true }); } catch(e){}
|