@devness/useai 0.3.3 → 0.3.4
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/dist/index.js +28 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -481,14 +481,20 @@ async function installFlow(tools, autoYes, explicit) {
|
|
|
481
481
|
if (autoYes) {
|
|
482
482
|
toInstall = unconfigured;
|
|
483
483
|
} else {
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
484
|
+
let selected;
|
|
485
|
+
try {
|
|
486
|
+
selected = await checkbox({
|
|
487
|
+
message: "Select tools to configure:",
|
|
488
|
+
choices: unconfigured.map((t) => ({
|
|
489
|
+
name: t.name,
|
|
490
|
+
value: t.id,
|
|
491
|
+
checked: true
|
|
492
|
+
}))
|
|
493
|
+
});
|
|
494
|
+
} catch {
|
|
495
|
+
console.log("\n");
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
492
498
|
toInstall = unconfigured.filter((t) => selected.includes(t.id));
|
|
493
499
|
}
|
|
494
500
|
if (toInstall.length === 0) {
|
|
@@ -560,14 +566,20 @@ async function removeFlow(tools, autoYes, explicit) {
|
|
|
560
566
|
if (autoYes) {
|
|
561
567
|
toRemove = configured;
|
|
562
568
|
} else {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
569
|
+
let selected;
|
|
570
|
+
try {
|
|
571
|
+
selected = await checkbox({
|
|
572
|
+
message: "Select tools to remove UseAI from:",
|
|
573
|
+
choices: configured.map((t) => ({
|
|
574
|
+
name: t.name,
|
|
575
|
+
value: t.id,
|
|
576
|
+
checked: true
|
|
577
|
+
}))
|
|
578
|
+
});
|
|
579
|
+
} catch {
|
|
580
|
+
console.log("\n");
|
|
581
|
+
return;
|
|
582
|
+
}
|
|
571
583
|
toRemove = configured.filter((t) => selected.includes(t.id));
|
|
572
584
|
}
|
|
573
585
|
if (toRemove.length === 0) {
|