wispy-cli 2.7.22 → 2.7.23
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/bin/wispy.mjs +4 -2
- package/package.json +1 -1
package/bin/wispy.mjs
CHANGED
|
@@ -1474,13 +1474,15 @@ if (!command || command === "server" || command === "overview") {
|
|
|
1474
1474
|
// No args → TUI
|
|
1475
1475
|
if (!command) {
|
|
1476
1476
|
try {
|
|
1477
|
-
await import(join(rootDir, "
|
|
1477
|
+
await import(join(rootDir, "lib/wispy-tui.mjs"));
|
|
1478
|
+
// TUI handles its own lifecycle via waitUntilExit() — do NOT process.exit() here
|
|
1478
1479
|
} catch (err) {
|
|
1479
1480
|
console.error("TUI failed to start:", err.message);
|
|
1480
1481
|
console.log("Falling back to REPL...");
|
|
1481
1482
|
await import(join(rootDir, "lib/wispy-repl.mjs"));
|
|
1482
1483
|
}
|
|
1483
|
-
process
|
|
1484
|
+
// Keep process alive — TUI/REPL manages exit
|
|
1485
|
+
await new Promise(() => {}); // block forever, TUI calls process.exit() when done
|
|
1484
1486
|
}
|
|
1485
1487
|
}
|
|
1486
1488
|
|
package/package.json
CHANGED