multi-agents-cli 1.1.72 → 1.1.73
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 -9
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -149,15 +149,12 @@ const handleFreeText = async (prompt, items, stepMachine, stepIndex, context, is
|
|
|
149
149
|
if (resolved.status === 'valid') return resolved.match;
|
|
150
150
|
|
|
151
151
|
if (resolved.status === 'partial_cross') {
|
|
152
|
-
console.log(`
|
|
153
|
-
|
|
154
|
-
`
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
];
|
|
159
|
-
const choice = await arrowSelect('What would you like to do?', opts.map(o => ({ label: o })));
|
|
160
|
-
if (choice < resolved.matches.length) return resolved.matches[choice];
|
|
152
|
+
console.log(`\n ${yellow('⚠')} ${resolved.message}\n`);
|
|
153
|
+
const choice = await arrowSelect(`"${typed}" couldn't be verified.`, [
|
|
154
|
+
{ label: `→ Type a different value` },
|
|
155
|
+
{ label: `→ Choose from the ${block} list` },
|
|
156
|
+
]);
|
|
157
|
+
if (choice === 1) return null;
|
|
161
158
|
return handleFreeText(prompt, items, stepMachine, stepIndex, context, isOptional, block);
|
|
162
159
|
}
|
|
163
160
|
|
package/package.json
CHANGED