multi-agents-cli 1.1.74 → 1.1.75
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/lib/ui.js +7 -3
- 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
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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