wispy-cli 2.7.21 → 2.7.22
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 +16 -1
- package/package.json +1 -1
package/bin/wispy.mjs
CHANGED
|
@@ -1468,7 +1468,22 @@ if (command === "server" || command === "overview") {
|
|
|
1468
1468
|
// Already set up env flags above, fall through to REPL
|
|
1469
1469
|
}
|
|
1470
1470
|
|
|
1471
|
-
// If we get here
|
|
1471
|
+
// If we get here with no args → launch TUI (like OpenClaw)
|
|
1472
|
+
// Chat is only available through TUI. Use `wispy exec` for non-interactive one-shot.
|
|
1473
|
+
if (!command || command === "server" || command === "overview") {
|
|
1474
|
+
// No args → TUI
|
|
1475
|
+
if (!command) {
|
|
1476
|
+
try {
|
|
1477
|
+
await import(join(rootDir, "bin/wispy-tui.mjs"));
|
|
1478
|
+
} catch (err) {
|
|
1479
|
+
console.error("TUI failed to start:", err.message);
|
|
1480
|
+
console.log("Falling back to REPL...");
|
|
1481
|
+
await import(join(rootDir, "lib/wispy-repl.mjs"));
|
|
1482
|
+
}
|
|
1483
|
+
process.exit(0);
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1472
1487
|
try {
|
|
1473
1488
|
await import(join(rootDir, "lib/wispy-repl.mjs"));
|
|
1474
1489
|
} catch (err) {
|
package/package.json
CHANGED