multi-agents-cli 1.0.42 → 1.0.44
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 +2 -29
- package/package.json +1 -1
package/init.js
CHANGED
|
@@ -1081,6 +1081,7 @@ const main = async () => {
|
|
|
1081
1081
|
fs.copyFileSync(path.join(TEMPLATES, 'CLAUDE.md'), path.join(ROOT, 'CLAUDE.md'));
|
|
1082
1082
|
fs.copyFileSync(path.join(TEMPLATES, 'CONTRACTS.md'), path.join(ROOT, 'CONTRACTS.md'));
|
|
1083
1083
|
fs.copyFileSync(path.join(TEMPLATES, 'TASKS_HISTORY.md'), path.join(ROOT, 'TASKS_HISTORY.md'));
|
|
1084
|
+
fs.copyFileSync(path.join(TEMPLATES, 'CLOUD_STATE.md'), path.join(ROOT, 'CLOUD_STATE.md'));
|
|
1084
1085
|
console.log(` ${green('✓')} Templates copied`);
|
|
1085
1086
|
|
|
1086
1087
|
// ── Copy workflow scripts ────────────────────────────────────────────────────
|
|
@@ -1134,7 +1135,7 @@ const main = async () => {
|
|
|
1134
1135
|
// Remove template-specific gitignore entries so generated files can be committed
|
|
1135
1136
|
const gitignorePath = path.join(ROOT, '.gitignore');
|
|
1136
1137
|
let gitignoreContent = fs.readFileSync(gitignorePath, 'utf8');
|
|
1137
|
-
['client/', 'backend/', 'shared/', 'CLAUDE.md', 'CONTRACTS.md', 'BUILD_STATE.md', 'TASKS_HISTORY.md'].forEach(entry => {
|
|
1138
|
+
['client/', 'backend/', 'shared/', 'CLAUDE.md', 'CONTRACTS.md', 'BUILD_STATE.md', 'TASKS_HISTORY.md', 'CLOUD_STATE.md'].forEach(entry => {
|
|
1138
1139
|
gitignoreContent = gitignoreContent.replace(`\n${entry}`, '');
|
|
1139
1140
|
gitignoreContent = gitignoreContent.replace(`${entry}\n`, '');
|
|
1140
1141
|
gitignoreContent = gitignoreContent.replace(entry, '');
|
|
@@ -1486,34 +1487,6 @@ fi
|
|
|
1486
1487
|
fs.writeFileSync(path.join(RUNTIME_DIR, '.config.json'), JSON.stringify(cfg, null, 2), 'utf8');
|
|
1487
1488
|
} catch { /* best-effort */ }
|
|
1488
1489
|
|
|
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
|
-
|
|
1517
1490
|
if (selected.next === 'launch') {
|
|
1518
1491
|
const launchConfirm = await arrowConfirm('Ready to launch your first task?', rl);
|
|
1519
1492
|
if (launchConfirm) {
|
package/package.json
CHANGED