@modelstatus/cli 0.1.67 → 0.1.69

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/package.json +1 -1
  2. package/src/index.js +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelstatus/cli",
3
- "version": "0.1.67",
3
+ "version": "0.1.69",
4
4
  "description": "Track which AI models you use, where, and never get surprised by a retirement. Free offline model-health for any repo (mm status), browser sign-in for cloud inventory + alerts.",
5
5
  "keywords": [
6
6
  "llm",
package/src/index.js CHANGED
@@ -754,7 +754,7 @@ async function cmdStatus(positional, flags) {
754
754
  const HELP = `LLM Status CLI
755
755
 
756
756
  Usage:
757
- mm Launch the TUI (signs you in via in-TUI device flow if needed)
757
+ mm [dir] Launch the TUI on a folder (defaults to the current one) runs locally
758
758
  mm status [dir] Offline model-health check for a dir — no account needed
759
759
  mm login [api_key] Browser sign-in with polling (or paste a key)
760
760
  mm signup Create an account in the browser, then poll
@@ -883,6 +883,11 @@ async function main() {
883
883
  else if (cmd === "play") await cmdPlay(positional, flags);
884
884
  else if (cmd === "upgrade") await cmdUpgrade(positional, flags);
885
885
  else if (cmd === "tui" || !cmd) await launchTui(positional[1], flags);
886
+ else if (fs.existsSync(cmd) && fs.statSync(cmd).isDirectory()) {
887
+ // `mm ~/my/project` — what every new user tries first. Scope the TUI to it.
888
+ flags.dir = cmd;
889
+ await launchTui(positional[1], flags);
890
+ }
886
891
  else if (cmd === "help" || flags.help) console.log(HELP);
887
892
  else console.log(HELP);
888
893
  } catch (e) {