create-fleetbo-project 1.2.78 → 1.2.81
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.
|
@@ -121,8 +121,8 @@ if (command === 'alex') {
|
|
|
121
121
|
checkGitSecurity();
|
|
122
122
|
const initialPrompt = args.slice(1).join(' ');
|
|
123
123
|
const processAlexRequest = async (prompt) => {
|
|
124
|
-
if (prompt.length >
|
|
125
|
-
console.log('\\n\\x1b[31m⛔ [Alex Safety] Request too long (' + prompt.length + '/
|
|
124
|
+
if (prompt.length > 300) {
|
|
125
|
+
console.log('\\n\\x1b[31m⛔ [Alex Safety] Request too long (' + prompt.length + '/300 chars).\\x1b[0m');
|
|
126
126
|
console.log('\\x1b[90mAlex prefers concise instructions. Please summarize.\\x1b[0m');
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
@@ -150,6 +150,7 @@ if (command === 'alex') {
|
|
|
150
150
|
const percent = Math.round((remaining / limit) * 100);
|
|
151
151
|
const energyColor = percent > 20 ? '\\x1b[32m' : '\\x1b[31m';
|
|
152
152
|
console.log(\`\\x1b[36m⚡ Architect Fuel:\\x1b[0m \${energyColor}\${percent}%\x1b[0m (\${remaining}/\${limit} instructions left) [\${tierLabel}]\`);
|
|
153
|
+
console.log('');
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
if (aiData.status === 'success' && aiData.moduleData) {
|
|
@@ -160,7 +161,7 @@ if (command === 'alex') {
|
|
|
160
161
|
const filePath = path.join(fullPath, name);
|
|
161
162
|
if (!fs.existsSync(fullPath)) fs.mkdirSync(fullPath, { recursive: true });
|
|
162
163
|
fs.writeFileSync(filePath, content);
|
|
163
|
-
console.log(\`
|
|
164
|
+
console.log(\` \x1b[32m[Written]\x1b[0m \${dir}\${name}\`);
|
|
164
165
|
};
|
|
165
166
|
if (code && fileName) {
|
|
166
167
|
const folder = fileName.endsWith('.kt') ? 'public/native/android/' : 'src/app/';
|
|
@@ -176,7 +177,7 @@ if (command === 'alex') {
|
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
179
|
if (config_offload && (config_offload.dependencies?.length > 0 || config_offload.permissions?.length > 0)) {
|
|
179
|
-
process.stdout.write(\`
|
|
180
|
+
process.stdout.write(\` \\x1b[33m[Cloud Inject]\x1b[0m Syncing \${config_offload.dependencies.length} libs to Factory...\`);
|
|
180
181
|
try {
|
|
181
182
|
await axios.post(INJECT_DEPS_URL, {
|
|
182
183
|
projectId: projectId,
|
|
@@ -188,7 +189,7 @@ if (command === 'alex') {
|
|
|
188
189
|
process.stdout.write(\` \\x1b[32mOK\x1b[0m\n\`);
|
|
189
190
|
} catch (err) {
|
|
190
191
|
process.stdout.write(\` \\x1b[31mFAILED\x1b[0m\n\`);
|
|
191
|
-
console.error(\`
|
|
192
|
+
console.error(\` ⚠️ Config sync failed: \${err.message}\`);
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
if (instructions && Array.isArray(instructions) && instructions.length > 0) {
|
|
@@ -294,7 +295,6 @@ if (command === 'android' || command === 'ios') {
|
|
|
294
295
|
archive.finalize();
|
|
295
296
|
});
|
|
296
297
|
|
|
297
|
-
// Correction du saut de ligne ici aussi
|
|
298
298
|
console.log(\`\\n\\x1b[33mSyncing \${platform} logic bundle...\\x1b[0m\`);
|
|
299
299
|
await showEnergyTransfer();
|
|
300
300
|
|
|
@@ -339,7 +339,6 @@ const killNetworkService = () => {
|
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
341
|
|
|
342
|
-
|
|
343
342
|
let isExiting = false;
|
|
344
343
|
async function cleanupAndExit(code = 0) {
|
|
345
344
|
if (isExiting) return;
|
|
@@ -488,7 +487,7 @@ async function setupProject() {
|
|
|
488
487
|
|
|
489
488
|
process.chdir(projectDir);
|
|
490
489
|
|
|
491
|
-
console.log('
|
|
490
|
+
console.log(' [2.5/7] Standardizing Architecture (src/app)...');
|
|
492
491
|
const oldPath = path.join(projectDir, 'src/pages');
|
|
493
492
|
const newPath = path.join(projectDir, 'src/app');
|
|
494
493
|
|
|
@@ -537,7 +536,7 @@ async function setupProject() {
|
|
|
537
536
|
packageJson.scripts = { ...packageJson.scripts, "fleetbo": "node scripts/cli.js", "dev": "node scripts/cli.js" };
|
|
538
537
|
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf8');
|
|
539
538
|
console.log('\n \x1b[32m [Fleetbo] Project successfully created!\x1b[0m');
|
|
540
|
-
console.log(`\n Run: cd ${projectName}
|
|
539
|
+
console.log(`\n Run: cd ${projectName}`);
|
|
541
540
|
console.log('\n \x1b[32m [Fleetbo] To start architecting with Alex, run: npm run fleetbo alex!\x1b[0m');
|
|
542
541
|
console.log('');
|
|
543
542
|
} catch (error) {
|