multi-agents-cli 1.1.66 → 1.1.67
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 +6 -2
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -135,7 +135,9 @@ const selectRequired = async (prompt, items, stepMachine, stepIndex, context = {
|
|
|
135
135
|
|
|
136
136
|
// None of these - free text input
|
|
137
137
|
if (idx === items.length) {
|
|
138
|
-
const
|
|
138
|
+
const _res = await prompts({ type: 'text', name: 'value', message: 'Type your own value:' }, { onCancel: () => process.exit(0) });
|
|
139
|
+
const typed = (_res.value || '').trim();
|
|
140
|
+
if (!typed) return null;
|
|
139
141
|
const check = validateCombination(typed, context);
|
|
140
142
|
if (!check.valid) {
|
|
141
143
|
console.log(`
|
|
@@ -179,7 +181,9 @@ const selectOptional = async (prompt, items, stepMachine, stepIndex, context = {
|
|
|
179
181
|
|
|
180
182
|
// None of these - free text input
|
|
181
183
|
if (idx === items.length + 1) {
|
|
182
|
-
const
|
|
184
|
+
const _res = await prompts({ type: 'text', name: 'value', message: 'Type your own value:' }, { onCancel: () => process.exit(0) });
|
|
185
|
+
const typed = (_res.value || '').trim();
|
|
186
|
+
if (!typed) return null;
|
|
183
187
|
const check = validateCombination(typed, context);
|
|
184
188
|
if (!check.valid) {
|
|
185
189
|
console.log(`
|
package/package.json
CHANGED