create-fleetbo-project 1.2.77 → 1.2.79
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/install-react-template.js +10 -9
- package/package.json +1 -1
|
@@ -18,11 +18,11 @@ const dotenv = require('dotenv');
|
|
|
18
18
|
const os = require('os');
|
|
19
19
|
const archiver = require('archiver');
|
|
20
20
|
const readline = require('readline');
|
|
21
|
-
const ANDROID_BUILD_URL = "https://
|
|
22
|
-
const IOS_BUILD_URL = "https://
|
|
23
|
-
const UPDATE_NETWORK_URL = 'https://
|
|
24
|
-
const ALEX_ENGINE_URL = "https://
|
|
25
|
-
const INJECT_DEPS_URL = "https://
|
|
21
|
+
const ANDROID_BUILD_URL = "https://fandroidbuild-jqycakhlxa-uc.a.run.app";
|
|
22
|
+
const IOS_BUILD_URL = "https://fiosbuild-jqycakhlxa-uc.a.run.app";
|
|
23
|
+
const UPDATE_NETWORK_URL = 'https://updatedevelopernetwork-jqycakhlxa-uc.a.run.app';
|
|
24
|
+
const ALEX_ENGINE_URL = "https://generatenativemodule-jqycakhlxa-uc.a.run.app";
|
|
25
|
+
const INJECT_DEPS_URL = "https://savegeneratedfile-jqycakhlxa-uc.a.run.app";
|
|
26
26
|
const APP_JS_PATH = path.join(process.cwd(), 'src/App.js');
|
|
27
27
|
const PORT = 3000;
|
|
28
28
|
let uplinkProcess = null;
|
|
@@ -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,
|