multi-agents-cli 1.0.40 → 1.0.41
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 +26 -0
- package/package.json +1 -1
package/init.js
CHANGED
|
@@ -1486,6 +1486,32 @@ 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, run ') + cyan('npm run agent') + dim(' and select the CLOUD agent.'));
|
|
1508
|
+
console.log(dim(' It will read your stack and suggest the best platform options for your project.\n'));
|
|
1509
|
+
} else {
|
|
1510
|
+
console.log(`\n ${green('✓')} Noted - no cloud deployment for now.\n`);
|
|
1511
|
+
console.log(dim(' You can always add it later by running ') + cyan('npm run agent') + dim(' and selecting the CLOUD agent.'));
|
|
1512
|
+
console.log(dim(' No changes to your project are needed before that point.\n'));
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1489
1515
|
if (selected.next === 'launch') {
|
|
1490
1516
|
const launchConfirm = await arrowConfirm('Ready to launch your first task?', rl);
|
|
1491
1517
|
if (launchConfirm) {
|
package/package.json
CHANGED