v0.25.0 — an answer a script can read
Account status as JSON
moshcode whoami --jsonprints the current session as machine-readable JSON instead of prose.- The
statusfield 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 whoamidocuments it.
$ moshcode whoami --json
{
"status": "not_logged_in",
"verified": false,
"api": "https://app.moshcode.sh",
"user": null
}Packaging
binpaths 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.