create-fleetbo-project 1.2.65 → 1.2.66
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.
|
@@ -132,20 +132,20 @@ if (command === 'alex') {
|
|
|
132
132
|
const aiData = result.data;
|
|
133
133
|
process.stdout.write('\\r' + ' '.repeat(50) + '\\r');
|
|
134
134
|
if (aiData.status === 'quota_exceeded') {
|
|
135
|
-
console.log(\`\\n\\x1b[31m⛔
|
|
135
|
+
console.log(\`\\n\\x1b[31m⛔ ARCHITECT QUOTA REACHED:\\x1b[0m \${aiData.message}\`);
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
138
|
if (aiData.status === 'success' || aiData.status === 'message' || aiData.status === 'complex_refusal') {
|
|
139
139
|
console.log('');
|
|
140
140
|
const rawMsg = aiData.message || "I'm ready.";
|
|
141
141
|
const formattedMsg = wrapText(rawMsg, 85);
|
|
142
|
-
if (aiData.
|
|
143
|
-
const remaining = aiData.
|
|
144
|
-
const limit = aiData.
|
|
145
|
-
const tierLabel = aiData.tier === '
|
|
142
|
+
if (aiData.remainingConsultations !== undefined) {
|
|
143
|
+
const remaining = aiData.remainingConsultations;
|
|
144
|
+
const limit = aiData.consultationLimit || 50;
|
|
145
|
+
const tierLabel = aiData.tier === 'pro' ? 'SENIOR' : 'DISCOVERY';
|
|
146
146
|
const percent = Math.round((remaining / limit) * 100);
|
|
147
|
-
const energyColor = percent > 20 ? '
|
|
148
|
-
console.log(\`\\x1b[36m
|
|
147
|
+
const energyColor = percent > 20 ? '\x1b[32m' : '\x1b[31m';
|
|
148
|
+
console.log(\`\\x1b[36m⚡ Architect Fuel:\\x1b[0m \${energyColor}\${percent}%\x1b[0m (\${remaining}/\${limit} consultations left) [\${tierLabel}]\`);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
if (aiData.status === 'success' && aiData.moduleData) {
|