v0.10.0 — shorten
One new command, and the first tagged release since v0.3.0.
shorten
shorten https://pit.moshcode.sh/n/blue.eggs/the-post-i-wrote-on-tuesday
# → https://pit.moshcode.sh/f/k7mq2xdMints a short link on the Moshpit registry and prints it. /f/<code> answers a 302 to wherever it points, from anywhere — no resolver, no extension, nothing installed on the other end. shorten list shows yours with hit counts, shorten rm <code> takes one down, and --name blue.eggs files a link under a Moshpit name you hold.
Nothing to configure on a machine where the pit works. The token moshcode login already wrote is read from ~/.moshcode/credentials.json. A new moshcode key in the credential store (cli-tools config set moshcode) and MOSHCODE_API_KEY cover a box that has the key but not moshcode.
It is a client, not a second shortener. The registry owns the codes and the rules about what may be redirected to — http(s) only, and a short link may not point at itself — and its refusals are passed through verbatim rather than reimplemented here, where the two copies would drift apart the first time one of them was tightened. Minting is authenticated for the same reason it is on the other side: an anonymous shortener is an open redirector with a database attached. It is idempotent per account, so the same url twice returns the same code and a retry cannot split one destination's hits in half.
The short url is the only thing on stdout, so shorten … --bare | pbcopy gets a url and nothing else.
The pit has the same thing as /shorten, shipped in moshcode v0.69.0.
What else has landed since v0.3.0
Tagging stopped for a while — the install is a curl … | sh one-liner that pulls master, so a release was never the distribution channel here and nothing waited on one. Six versions went by in the meantime:
porkbun— read and change DNS at Porkbun, and un-park a domain (0.9.0)favicon— every icon a site links, rendered from one SVG (0.8.0)root-ubuntu.sh— provision an Ubuntu/Debian server from one filecodeburn— where your AI spend goes, by task, tool, model and project (0.6.0)imgandvid— sharp/ImageMagick and ffmpeg, wrapped (0.5.0)genrewatch— what is coming out, and whether it exists at all (0.4.0)ask-webandtts— Perplexity and ElevenLabsaffiliate— a cursor over a list of signup pagescli-tools config— a 0600 credential store, andconfig pullfrom the team vaultcli-tools autoupdate— a user systemd timer that keeps the checkout current
Installing
curl -fsSL https://raw.githubusercontent.com/profullstack/cli-tools/master/install.sh | shUnchanged: the installer adopts an existing checkout rather than cloning a second copy, and cli-tools update pulls and relinks. This tag is a marker in the history, not a separate artifact to download.
Suite is 420 tests.