Skip to content

v0.25.0 — an answer a script can read

Choose a tag to compare

@ralyodio ralyodio released this 06 Aug 09:27
· 26 commits to main since this release
df83275

Account status as JSON

  • moshcode whoami --json prints the current session as machine-readable JSON instead of prose.
  • The status field distinguishes the cases that matter to a script — logged in, not_logged_in, expired, unverified — rather than making one parse a sentence to find out which it is.
  • Shell completion offers the flag, and moshcode help whoami documents it.
$ moshcode whoami --json
{
  "status": "not_logged_in",
  "verified": false,
  "api": "https://app.moshcode.sh",
  "user": null
}

Packaging

  • bin paths are written the way npm normalizes them, so publishing no longer warns that the entry points were "invalid and removed". They never were — npm was rewriting them and shipping working binaries — but the warning read like a broken package.

Install is unchanged: curl -fsSL https://moshcoding.com/install.sh | sh, or npm i -g moshcode.