multi-agents-cli 1.1.74 → 1.1.76

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.
Files changed (2) hide show
  1. package/lib/ui.js +7 -3
  2. package/package.json +1 -1
package/lib/ui.js CHANGED
@@ -129,9 +129,13 @@ const NONE_LABEL = '→ None of these - I\'ll specify my own';
129
129
  // ── Free-text handler (shared by selectRequired + selectOptional) ────────────
130
130
 
131
131
  const handleFreeText = async (prompt, items, stepMachine, stepIndex, context, isOptional, block = null) => {
132
- const _res = await prompts({ type: 'text', name: 'value', message: 'Type your own value:' }, { onCancel: () => process.exit(0) });
133
- const typed = (_res.value || '').trim();
134
- if (!typed) return isOptional ? null : handleFreeText(prompt, items, stepMachine, stepIndex, context, isOptional, block);
132
+ let typed = '';
133
+ while (!typed) {
134
+ const _res = await prompts({ type: 'text', name: 'value', message: block ? `Type a ${block} framework:` : 'Type your own value:' }, { onCancel: () => process.exit(0) });
135
+ typed = (_res.value || '').trim();
136
+ if (!typed && isOptional) return null;
137
+ if (!typed) console.log(dim(' Please enter a value.'));
138
+ }
135
139
 
136
140
  console.log(dim(' Verifying...'));
137
141
  const resolved = await resolveFramework(typed, block);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-agents-cli",
3
- "version": "1.1.74",
3
+ "version": "1.1.76",
4
4
  "description": "Multi-agent workflow orchestration for Claude Code — isolated git worktrees, structured state tracking, autonomous task chaining",
5
5
  "keywords": [
6
6
  "claude-code",