fleetbo-cockpit-cli 1.0.157 → 1.0.160
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/cli.js +8 -11
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -663,12 +663,12 @@ if (command === 'alex') {
|
|
|
663
663
|
rl.setPrompt("");
|
|
664
664
|
|
|
665
665
|
// 🟢 LE SECRET EST ICI : On réveille ton overlay React silencieusement
|
|
666
|
-
process.stdout.write('[START_LOAD]\n');
|
|
666
|
+
//process.stdout.write('[START_LOAD]\n');
|
|
667
667
|
|
|
668
668
|
await processAlexRequest(text);
|
|
669
669
|
|
|
670
670
|
// 🛑 FIN DU PROCESSUS : On éteint l'overlay
|
|
671
|
-
process.stdout.write('[END_LOAD]\n');
|
|
671
|
+
//process.stdout.write('[END_LOAD]\n');
|
|
672
672
|
|
|
673
673
|
isProcessing = false;
|
|
674
674
|
console.log('');
|
|
@@ -1052,7 +1052,9 @@ else {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
|
|
1054
1054
|
const npmCmd = process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
|
1055
|
-
|
|
1055
|
+
|
|
1056
|
+
// ✅ On passe la chaîne complète, SANS tableau d'arguments du tout !
|
|
1057
|
+
const devServer = spawn(`${npmCmd} run dev --silent`, {
|
|
1056
1058
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
1057
1059
|
shell: true,
|
|
1058
1060
|
env: {
|
|
@@ -1061,7 +1063,6 @@ else {
|
|
|
1061
1063
|
PORT: PORT.toString(),
|
|
1062
1064
|
}
|
|
1063
1065
|
});
|
|
1064
|
-
|
|
1065
1066
|
//devServer.stdout.pipe(process.stdout);
|
|
1066
1067
|
devServer.stderr.pipe(process.stderr);
|
|
1067
1068
|
|
|
@@ -1124,13 +1125,9 @@ else {
|
|
|
1124
1125
|
console.log(`\x1b[33m[Fleetbo] 🔄 Uplink reconnection ${attempt}/${MAX_UPLINK_RETRIES - 1}...\x1b[0m`);
|
|
1125
1126
|
}
|
|
1126
1127
|
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
'tunnel',
|
|
1131
|
-
'--url', `http://127.0.0.1:${PORT}`,
|
|
1132
|
-
'--http-host-header', `127.0.0.1:${PORT}`
|
|
1133
|
-
], { shell: true });
|
|
1128
|
+
// ✅ La commande complète, SANS tableau !
|
|
1129
|
+
const uplinkCommand = `${npxCmd} -y cloudflared tunnel --url http://127.0.0.1:${PORT} --http-host-header 127.0.0.1:${PORT}`;
|
|
1130
|
+
uplinkProcess = spawn(uplinkCommand, { shell: true });
|
|
1134
1131
|
|
|
1135
1132
|
const handleUplinkOutput = (chunk) => {
|
|
1136
1133
|
const text = chunk.toString();
|