Archive an app
An owner archives an app from its settings (Settings → Archive) or the app page's Archive link. The button opens the confirm page first, which says what will happen; nothing changes until its second button is pressed (a same-origin POST to /:owner/:name/archive).
Receipt: the next page says the app is stopped, hidden from home and /apps, and still opens by its address.
- Stops: production and every preview spin down (
moveArchive,src/actions/repos.ts). - Hidden: home and
/appsleave it out;/apps?archived=1lists it, and/appssays how many are archived. - Reachable: its URL, clone and push keep working. The page carries an "Archived on <date>" banner (
archivedLine,src/web/pages/following.ts), with Restore for an admin. - Bring back: the archived list (
/apps?archived=1) has a Bring back button under each app you administer: one same-origin post to/:owner/:name/restore, no confirm page, and the receipt lands on the list. - Restore: every web door but one is a link to the confirm page, which previews it and posts to
/:owner/:name/restore; the receipt lands where the door was. Settings and the banner come back to settings; the standing bar's "Turn it back on" (/apps?off=<id>) carrynext=and come back to their list. The app is listed again and wakes on its next visit./:owner/:name/settings/archivewitharchived=0|1still answers, but no page posts to it any more.
MCP apps with { action: "restore", repo } (admin token) does the same as Restore.
Terminal: the Archived repositories screen (src/tui/screens/archived.ts); MCP: the archive tool. Test: test/app-archive.test.ts.