| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…face The vocabulary had drifted behind the CLI: 43 verbs against 54 commands, with no way for a script to authenticate, reach the pit's aliases, or read a tool's output as anything but exit codes. Account (login/whoami/requireLogin/logout). Local rather than cliVerbs for the same reason the herd is: `moshcode whoami` prints, and a script needs to branch on the answer. src/auth.mjs grows identity() — the verified account as a value — and whoami() renders it, so the CLI and a script can never disagree about what "logged in" means. requireLogin() is the gate and the one verb here that throws: everything downstream would fail one call at a time and much less legibly. login() is idempotent so a re-run never throws a browser tab at someone already signed in, and returns its failure rather than throwing (R8). Aliases (alias/unalias/runAlias) read and write the pit's own store, so the operator's vocabulary and moshcode's stay one thing. Expansion is the pit's rule — leading `/` is a moshcode command, else a shell line, arguments appended. Read verbs (stocksRead/cryptoRead/newsRead) call the same advis0r/feed layer the printed commands render from and return parsed data, so a script can rank and threshold instead of scraping stdout. Plus 15 CLI verbs for surfaces added since: stocks, crypto, advisor, news, rss, plugin, engines, tools, dns, doh, site, serve, template, save, load. 43 → 68. Three worked examples, all safe under --dry-run. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
ThreatCrush Security Scan53 finding(s) HIGH/CRITICAL: 5 | MEDIUM: 42 | LOW: 6
…and 3 more. Full results in the Security tab. Snippets are redacted; ThreatCrush never prints matched credential material. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The moshscript vocabulary had drifted behind the CLI — 43 verbs against 54 commands — with no way for a script to authenticate, reach the pit's aliases, or read a tool's output as anything but an exit code.
Account
login(), whoami(), requireLogin(), logout(). Local verbs rather than cliVerbs for the same reason the herd is: moshcode whoami prints, and a script needs to branch on the answer.
src/auth.mjs grows identity() — the verified account as a value — and whoami() now renders it. One verified-identity implementation, two callers, so the CLI and a script can never disagree about what "logged in" means.
Aliases
alias(), unalias(), runAlias() read and write the pit's own store, so the operator's vocabulary and moshcode's stay one thing rather than two. Expansion follows the pit's rule — leading / is a moshcode command, anything else a shell line, arguments appended rather than substituted.
Read verbs
stocksRead(), cryptoRead(), newsRead() call the same advis0r/feed layer the printed commands render from and hand back parsed data, so a script can rank and threshold instead of scraping stdout. A failed lookup returns null, not a throw.
Plus the surfaces added since
15 CLI verbs: stocks, crypto, advisor, news, rss, plugin, engines, tools, dns, doh, site, serve, template, save, load. 43 → 68 verbs.
Examples
account.mosh, aliases.mosh, research-desk.mosh — all safe under --dry-run, all verified to run.
Testing
🤖 Generated with Claude Code