multi-agents-cli 1.1.80 → 1.1.81
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/init.js +1 -1
- package/lib/ui.js +2 -2
- package/package.json +1 -1
package/init.js
CHANGED
|
@@ -317,7 +317,7 @@ const main = async () => {
|
|
|
317
317
|
console.log(dim(' To restart an agent: ') + cyan('npm run restart'));
|
|
318
318
|
console.log(dim(' To wipe everything: ') + cyan('npm run reset') + '\n');
|
|
319
319
|
|
|
320
|
-
if (prompts && process.
|
|
320
|
+
if (prompts && process.stdout.isTTY) {
|
|
321
321
|
const res = await prompts({
|
|
322
322
|
type: 'select',
|
|
323
323
|
name: 'value',
|
package/lib/ui.js
CHANGED
|
@@ -59,7 +59,7 @@ const arrowSelect = async (message, choices, showBack = false, backLabel = '←
|
|
|
59
59
|
? [...choices, { label: dim(backLabel) }]
|
|
60
60
|
: choices;
|
|
61
61
|
|
|
62
|
-
if (prompts && process.
|
|
62
|
+
if (prompts && process.stdout.isTTY) {
|
|
63
63
|
const res = await prompts({
|
|
64
64
|
type: 'select',
|
|
65
65
|
name: 'value',
|
|
@@ -79,7 +79,7 @@ const arrowSelect = async (message, choices, showBack = false, backLabel = '←
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
const arrowConfirm = async (message, initial = true) => {
|
|
82
|
-
if (prompts && process.
|
|
82
|
+
if (prompts && process.stdout.isTTY) {
|
|
83
83
|
const res = await prompts({
|
|
84
84
|
type: 'select',
|
|
85
85
|
name: 'value',
|
package/package.json
CHANGED