wispy-cli 2.5.0 → 2.5.1

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 +5 -1
  2. package/package.json +1 -1
package/bin/wispy.mjs CHANGED
@@ -1815,7 +1815,11 @@ if (_firstArg && _firstArg[0] !== "-" && !_KNOWN_COMMANDS.has(_firstArg)) {
1815
1815
  // Not a known command — but could be a one-shot message (no quotes needed)
1816
1816
  // Heuristic: if it looks like a real command word (no spaces, short), warn.
1817
1817
  // If it looks like a natural language sentence, fall through to REPL one-shot mode.
1818
- const looksLikeCommand = /^[a-z][a-z0-9_-]{0,20}$/.test(_firstArg);
1818
+ // Only show "unknown command" if it looks very much like a mistyped subcommand.
1819
+ // Common typos/misspellings of real commands (2-char levenshtein distance).
1820
+ // Everything else falls through to one-shot message mode.
1821
+ const CLOSE_COMMANDS = ["seutp", "set", "stat", "statu", "doc", "wss", "trus", "depliy", "sycn", "cran"];
1822
+ const looksLikeCommand = CLOSE_COMMANDS.includes(_firstArg) || (_firstArg.length <= 3 && /^[a-z]+$/.test(_firstArg) && !["hi", "hey", "yo", "sup", "thx", "ty", "ok", "no", "yes", "ya", "hmm"].includes(_firstArg));
1819
1823
  if (looksLikeCommand) {
1820
1824
  // Show unknown command error
1821
1825
  const suggestions = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wispy-cli",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "🌿 Wispy — AI workspace assistant with trustworthy execution (harness, receipts, approvals, diffs)",
5
5
  "license": "MIT",
6
6
  "author": "Minseo & Poropo",