multi-agents-cli 1.1.11 → 1.1.12
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/core/workflow/agent.js +43 -7
- package/package.json +1 -1
package/core/workflow/agent.js
CHANGED
|
@@ -1184,11 +1184,10 @@ const main = async () => {
|
|
|
1184
1184
|
type: 'text',
|
|
1185
1185
|
name: 'value',
|
|
1186
1186
|
message: '* What are you building?',
|
|
1187
|
-
|
|
1187
|
+
hint: '(e.g. A stock market prediction app with AI insights)',
|
|
1188
1188
|
}, { onCancel: () => process.exit(0) });
|
|
1189
1189
|
const rawCtx = (ctxRes.value || '').trim();
|
|
1190
|
-
|
|
1191
|
-
projectContext = isPlaceholderCtx ? '' : rawCtx;
|
|
1190
|
+
projectContext = rawCtx;
|
|
1192
1191
|
} else {
|
|
1193
1192
|
console.log(dim(' (optional — helps the agent make better decisions)'));
|
|
1194
1193
|
const input = await ask(`\n${bold('* What are you building?')}: `);
|
|
@@ -1207,12 +1206,13 @@ const main = async () => {
|
|
|
1207
1206
|
type: 'text',
|
|
1208
1207
|
name: 'value',
|
|
1209
1208
|
message: `* Task description (${agent} agent)`,
|
|
1210
|
-
initial: defaultTask
|
|
1209
|
+
initial: defaultTask || '',
|
|
1210
|
+
hint: defaultTask ? '(Enter to use default, or type your own)' : '(describe what this agent should build or fix)',
|
|
1211
1211
|
}, { onCancel: () => process.exit(0) });
|
|
1212
1212
|
|
|
1213
1213
|
if (res.value === undefined) continue flowLoop; // Esc = back
|
|
1214
1214
|
const rawValue = (res.value || '').trim();
|
|
1215
|
-
const isPlaceholder = rawValue
|
|
1215
|
+
const isPlaceholder = rawValue === defaultTask || rawValue === '';
|
|
1216
1216
|
task = isPlaceholder ? defaultTask : (rawValue || defaultTask);
|
|
1217
1217
|
if (!task) task = defaultTask;
|
|
1218
1218
|
} else {
|
|
@@ -1721,6 +1721,19 @@ ${excludedUrls}
|
|
|
1721
1721
|
], rl);
|
|
1722
1722
|
|
|
1723
1723
|
if (sessionIdx === 0) {
|
|
1724
|
+
separator();
|
|
1725
|
+
console.log(`\n ${bold('What happens next:')}
|
|
1726
|
+
`);
|
|
1727
|
+
console.log(` ${dim('→')} ${bold(config.ide.name || 'Your IDE')} will open at your agent workspace`);
|
|
1728
|
+
console.log(` ${dim('→')} A new terminal window will open with Claude Code\n`);
|
|
1729
|
+
console.log(` ${bold('Once open:')}
|
|
1730
|
+
`);
|
|
1731
|
+
console.log(` ${bold('1.')} Approve the workspace trust prompt in Claude Code`);
|
|
1732
|
+
console.log(` ${bold('2.')} Type anything to start ${dim("(e.g. 'go', 'start', 'begin')")}`);
|
|
1733
|
+
console.log(` ${bold('3.')} Let the agent run autonomously — don't interrupt mid-task`);
|
|
1734
|
+
console.log(` ${bold('4.')} When done, run: ${cyan('npm run complete')}\n`);
|
|
1735
|
+
const goIdx = await arrowSelect('Ready?', [{ label: `${green('✓')} Open workspace` }, { label: `${dim('←')} Back` }], rl);
|
|
1736
|
+
if (goIdx === 1) { continue sessionLoop; }
|
|
1724
1737
|
const openedIDE = openIDE(worktreePath);
|
|
1725
1738
|
if (openedIDE) console.log(` ${green('✓')} ${openedIDE} opened`);
|
|
1726
1739
|
else console.log(` ${yellow('!')} Could not open IDE - open manually at: ${dim(worktreePath)}`);
|
|
@@ -1732,15 +1745,38 @@ ${excludedUrls}
|
|
|
1732
1745
|
process.exit(0);
|
|
1733
1746
|
|
|
1734
1747
|
} else if (sessionIdx === 1) {
|
|
1748
|
+
separator();
|
|
1749
|
+
console.log(`\n ${bold('What happens next:')}
|
|
1750
|
+
`);
|
|
1751
|
+
console.log(` ${dim('→')} ${bold(config.ide.name || 'Your IDE')} will open at your agent workspace\n`);
|
|
1752
|
+
console.log(` ${bold('Once open:')}
|
|
1753
|
+
`);
|
|
1754
|
+
console.log(` ${bold('1.')} Open a new Claude Code session inside the IDE`);
|
|
1755
|
+
console.log(` ${bold('2.')} Approve the workspace trust prompt`);
|
|
1756
|
+
console.log(` ${bold('3.')} Type anything to start ${dim("(e.g. 'go', 'start', 'begin')")}`);
|
|
1757
|
+
console.log(` ${bold('4.')} Let the agent run autonomously — don't interrupt mid-task`);
|
|
1758
|
+
console.log(` ${bold('5.')} When done, run: ${cyan('npm run complete')}\n`);
|
|
1759
|
+
const goIdx = await arrowSelect('Ready?', [{ label: `${green('✓')} Open workspace` }, { label: `${dim('←')} Back` }], rl);
|
|
1760
|
+
if (goIdx === 1) { continue sessionLoop; }
|
|
1735
1761
|
const openedIDE = openIDE(worktreePath);
|
|
1736
1762
|
if (openedIDE) console.log(` ${green("✓")} ${openedIDE} opened`);
|
|
1737
1763
|
else console.log(` ${yellow("!")} Could not open IDE - open manually at: ${dim(worktreePath)}`);
|
|
1738
|
-
console.log(`\n ${dim('Open a NEW Claude Code session and type')} ${cyan('go')} ${dim('to start.')}\n`);
|
|
1739
|
-
console.log(` ${dim('When done, run:')} ${cyan('npm run complete')}\n`);
|
|
1740
1764
|
rl.close();
|
|
1741
1765
|
process.exit(0);
|
|
1742
1766
|
|
|
1743
1767
|
} else if (sessionIdx === 2) {
|
|
1768
|
+
separator();
|
|
1769
|
+
console.log(`\n ${bold('What happens next:')}
|
|
1770
|
+
`);
|
|
1771
|
+
console.log(` ${dim('→')} A new terminal window will open with Claude Code\n`);
|
|
1772
|
+
console.log(` ${bold('Once open:')}
|
|
1773
|
+
`);
|
|
1774
|
+
console.log(` ${bold('1.')} Approve the workspace trust prompt in Claude Code`);
|
|
1775
|
+
console.log(` ${bold('2.')} Type anything to start ${dim("(e.g. 'go', 'start', 'begin')")}`);
|
|
1776
|
+
console.log(` ${bold('3.')} Let the agent run autonomously — don't interrupt mid-task`);
|
|
1777
|
+
console.log(` ${bold('4.')} When done, run: ${cyan('npm run complete')}\n`);
|
|
1778
|
+
const goIdx = await arrowSelect('Ready?', [{ label: `${green('✓')} Open workspace` }, { label: `${dim('←')} Back` }], rl);
|
|
1779
|
+
if (goIdx === 1) { continue sessionLoop; }
|
|
1744
1780
|
const termOpened = openTerminal(worktreePath, skipPermissions);
|
|
1745
1781
|
if (termOpened) console.log(` ${green('✓')} New terminal opened with Claude Code CLI`);
|
|
1746
1782
|
console.log(`\n ${dim("This window can be closed.")}`);
|
package/package.json
CHANGED