@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.
Files changed (2) hide show
  1. package/dist/index.js +28 -16
  2. 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
- const selected = await checkbox({
485
- message: "Select tools to configure:",
486
- choices: unconfigured.map((t) => ({
487
- name: t.name,
488
- value: t.id,
489
- checked: true
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
- const selected = await checkbox({
564
- message: "Select tools to remove UseAI from:",
565
- choices: configured.map((t) => ({
566
- name: t.name,
567
- value: t.id,
568
- checked: true
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devness/useai",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Track your AI-assisted development workflow. MCP server that records usage metrics across all your AI tools.",
5
5
  "keywords": [
6
6
  "mcp",