fleetbo-cockpit-cli 1.0.13 → 1.0.15

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.
Files changed (2) hide show
  1. package/cli.js +9 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -162,7 +162,15 @@ if (command === 'alex') {
162
162
  const result = await axios.post(ALEX_ENGINE_URL, { prompt, projectType: 'android' }, {
163
163
  headers: { 'x-project-id': projectId }
164
164
  });
165
- const aiData = result.data;
165
+ let aiData = result.data;
166
+ if (typeof aiData === 'string') {
167
+ try { aiData = JSON.parse(aiData); } catch (_) {}
168
+ }
169
+ // --- DEBUG TEMPORAIRE (à supprimer après) ---
170
+ console.log('[DEBUG] typeof aiData:', typeof aiData);
171
+ console.log('[DEBUG] typeof message:', typeof aiData?.message);
172
+ console.log('[DEBUG] message preview:', String(aiData?.message || aiData).substring(0, 100));
173
+ // --- FIN DEBUG ---
166
174
  process.stdout.write('\r' + ' '.repeat(50) + '\r');
167
175
 
168
176
  if (aiData.status === 'quota_exceeded') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbo-cockpit-cli",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Fleetbo CLI - Build native mobile apps with React",
5
5
  "author": "Fleetbo",
6
6
  "license": "MIT",