multi-agents-cli 1.0.40 → 1.0.42
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/init.js +28 -0
- package/package.json +1 -1
package/init.js
CHANGED
|
@@ -1486,6 +1486,34 @@ fi
|
|
|
1486
1486
|
fs.writeFileSync(path.join(RUNTIME_DIR, '.config.json'), JSON.stringify(cfg, null, 2), 'utf8');
|
|
1487
1487
|
} catch { /* best-effort */ }
|
|
1488
1488
|
|
|
1489
|
+
// ── Cloud deployment intent ──────────────────────────────────────────────────
|
|
1490
|
+
|
|
1491
|
+
separator();
|
|
1492
|
+
console.log(`\n ${bold('Do you plan to deploy this project to a cloud platform?')}\n`);
|
|
1493
|
+
|
|
1494
|
+
const cloudIdx = await arrowSelect('Cloud deployment?', [
|
|
1495
|
+
{ label: 'Yes - I plan to deploy to a cloud platform' },
|
|
1496
|
+
{ label: 'No - I will run it locally or decide later' },
|
|
1497
|
+
], rl);
|
|
1498
|
+
|
|
1499
|
+
try {
|
|
1500
|
+
const cfg = JSON.parse(fs.readFileSync(path.join(RUNTIME_DIR, '.config.json'), 'utf8'));
|
|
1501
|
+
cfg.cloudDeployment = cloudIdx === 0 ? 'yes' : 'no';
|
|
1502
|
+
fs.writeFileSync(path.join(RUNTIME_DIR, '.config.json'), JSON.stringify(cfg, null, 2), 'utf8');
|
|
1503
|
+
} catch { /* best-effort */ }
|
|
1504
|
+
|
|
1505
|
+
if (cloudIdx === 0) {
|
|
1506
|
+
console.log(`\n ${green('✓')} Cloud deployment noted.\n`);
|
|
1507
|
+
console.log(dim(' When ready, open a terminal inside your project folder and run:'));
|
|
1508
|
+
console.log(` ${cyan('npm run agent')} ${dim('- then select the CLOUD agent from the list.')}`);
|
|
1509
|
+
console.log(dim(' It will read your stack and suggest the best platform options.\n'));
|
|
1510
|
+
} else {
|
|
1511
|
+
console.log(`\n ${green('✓')} Noted - no cloud deployment for now.\n`);
|
|
1512
|
+
console.log(dim(' You can always add it later - open a terminal inside your project folder and run:'));
|
|
1513
|
+
console.log(` ${cyan('npm run agent')} ${dim('- then select the CLOUD agent from the list.')}`);
|
|
1514
|
+
console.log(dim(' No changes to your project are needed before that point.\n'));
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1489
1517
|
if (selected.next === 'launch') {
|
|
1490
1518
|
const launchConfirm = await arrowConfirm('Ready to launch your first task?', rl);
|
|
1491
1519
|
if (launchConfirm) {
|
package/package.json
CHANGED