name: "lore-ship"
description: "Ship lore (the pi extension @waow.tech/lore and lore.waow.tech) from pi-extensions main: checks, the live two-PDS suite, site deploy, npm publish, each verified. Nate's only step is approving npm in the browser, which the script opens for him."
createdAt: "2026-10-24T06:47:10.137897+00:00"
repoUrl: "https://skillz.supply/skills/did:plc:xbtmt2zjwlrfegqvch7fboei/skills.lore-ship/SKILL.md"
# lore ship lore lives in `~/tangled.org/zzstoatzz.io/pi-extensions/extensions/lore`. a release is three things that must agree: `main` pushed to tangled, `lore.waow.tech` built from it, and `@waow.tech/lore` on npm at the version in `extensions/lore/package.json`. `ship.sh` beside this file does all of it in order and stops at the first failure. ## before running 1. the change is committed on `main` and pushed. `ship.sh` refuses a dirty tree or a `main` that differs from `origin/main`. 2. the version in `extensions/lore/package.json` is bumped and `CHANGELOG.md` has a `## <version> — <date>` entry written for the person who hit the bug. the script refuses a version npm already has. ## run it ```bash ~/tangled.org/zzstoatzz.io/skills/lore-ship/ship.sh ``` run it from Bash with a ten-minute timeout, or in a terminal tab nate can watch; it needs no tty. it takes several minutes, most of it the live suite. npm authenticates both login and publish with a browser approval, not a typed code. the script runs npm without a tty, so npm prints the approval url and polls for the answer; the script opens that url in nate's default browser the moment it appears. nate's only step is clicking approve, once for login when the session has lapsed and once for publish. tell nate before starting that a browser page will appear and needs his approval right away: the link expires within a few minutes, and an expired login attempt has invalidated the existing npm session, forcing a second login. never ask nate to press Enter in a terminal or paste a code, and never ask for a token. ## what the script does - preflight: clean tree, on `main`, equal to `origin/main`, version not yet on npm, changelog entry present; logs in to npm through the browser if `npm whoami` fails. - `npm run check`: typecheck, lint, unit tests. - `source live/env.sh && npm run test:live`: two throwaway accounts on pds.zat.dev and the alpha host create, share, cross-host write, read, and delete a space; the website client reads 102 entries on both authorities. credentials come from the sops store and are never printed. - site: `vite build`, `wrangler deploy`, then confirms lore.waow.tech serves the bundle it just built and the OAuth client metadata resolves. - `npm publish -w @waow.tech/lore`, then polls `npm view` for up to four minutes until it reports the new version; npm says a fresh publish may take minutes to appear. ## when it stops fix the cause on `main`, push, rerun. when everything through the site passed and only the publish failed (an expired approval, a lapsed npm session), rerun with `--publish-only` instead of repeating the live suite. a published version cannot be republished, so a failure after `+ @waow.tech/lore@<version>` means only the verify step is left (`npm view @waow.tech/lore version`). a live-suite failure is a real contract break between lore and a PDS, not flakiness; read the XRPC error code before touching anything. the live suite needs both hosts up.