mega-brain-ai 1.2.4 → 1.2.5
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.
Potentially problematic release.
This version of mega-brain-ai might be problematic. Click here for more details.
- package/bin/lib/installer.js +8 -5
- package/package.json +1 -1
package/bin/lib/installer.js
CHANGED
|
@@ -276,17 +276,20 @@ async function fetchPremiumContent(targetDir, token, spinner) {
|
|
|
276
276
|
const authUrl = `https://x-access-token:${token}@github.com/thiagofinch/mega-brain-premium.git`;
|
|
277
277
|
|
|
278
278
|
if (!existsSync(join(tempDir, '.git'))) {
|
|
279
|
-
spinner.
|
|
279
|
+
spinner.succeed(chalk.cyan('Iniciando download do conteúdo premium (~300 MB)...'));
|
|
280
|
+
console.log(chalk.dim(' Isso pode levar alguns minutos dependendo da sua conexão.\n'));
|
|
280
281
|
|
|
281
282
|
try {
|
|
282
283
|
execSync(`git clone --depth 1 "${authUrl}" "${tempDir}"`, {
|
|
283
|
-
stdio: '
|
|
284
|
-
|
|
285
|
-
timeout: 120000,
|
|
284
|
+
stdio: 'inherit',
|
|
285
|
+
timeout: 600000,
|
|
286
286
|
});
|
|
287
287
|
} catch (cloneErr) {
|
|
288
|
-
throw new Error(`Git clone falhou
|
|
288
|
+
throw new Error(`Git clone falhou. Verifique sua conexão e tente novamente.`);
|
|
289
289
|
}
|
|
290
|
+
|
|
291
|
+
console.log();
|
|
292
|
+
spinner.start('Verificando download...');
|
|
290
293
|
} else {
|
|
291
294
|
spinner.text = 'Download anterior encontrado, reutilizando...';
|
|
292
295
|
}
|