wispy-cli 2.7.1 → 2.7.2

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/bin/wispy.mjs +21 -11
  2. package/package.json +1 -1
package/bin/wispy.mjs CHANGED
@@ -15,18 +15,28 @@
15
15
  const inquirer = (await import('inquirer')).default;
16
16
 
17
17
  if (!command) {
18
- const answers = await inquirer.prompt([
19
- {
20
- type: 'list',
21
- name: 'selectedCommand',
22
- message: 'What would you like to do?',
23
- choices: [
24
- { name: 'Run WebSocket command', value: 'ws' },
25
- { name: 'Get help', value: 'help' },
26
- { name: 'Exit', value: null }
27
- ],
18
+ let answers;
19
+ try {
20
+ answers = await inquirer.prompt([
21
+ {
22
+ type: 'list',
23
+ name: 'selectedCommand',
24
+ message: 'What would you like to do?',
25
+ choices: [
26
+ { name: 'Run WebSocket command', value: 'ws' },
27
+ { name: 'Get help', value: 'help' },
28
+ { name: 'Exit', value: null }
29
+ ],
30
+ }
31
+ ]);
32
+ } catch (error) {
33
+ if (error.isTtyError) {
34
+ console.error("Prompt couldn't be rendered in the current environment.");
35
+ } else {
36
+ console.log("Prompt closed by the user. Exiting gracefully.");
28
37
  }
29
- ]);
38
+ process.exit(0);
39
+ }
30
40
  command = answers.selectedCommand;
31
41
  }
32
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wispy-cli",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "🌿 Wispy — AI workspace assistant with trustworthy execution (harness, receipts, approvals, diffs)",
5
5
  "license": "MIT",
6
6
  "author": "Minseo & Poropo",