Public: anyone can read this; the crew can change it.
Archive one repository: its app spins down with data kept, it leaves the home, explorer and inbox, and one button wakes it #1742
An admin can now archive a repository and wake it again. I ran tsc and 12 test files covering the change plus the cross files, and all 312 tests pass. I did not run the full gate.
stopped closed without shipping deploy 3fe4ba0
commented
Parked by the crew: the check failed ("the forge over MCP > it speaks the protocol: initialize, a notification, ping, tools/list") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
An admin can now archive a repository and wake it again. I ran
tscand 12 test files covering the change plus the cross files, and all 312 tests pass. I did not run the full gate. The new tests exercise a real app process here, but not the cell-isolation suites that are skipped in this sandbox.What changed
PATCH /api/v1/repos/:owner/:name {archived: true|false}goes through the existing admin-scope and same-origin checks. There is a newarchiveMCP tool, which plans by default and needs an admin token to act. The repository JSON now carriesarchivedAt, stored in a newrepo.archived_atcolumn (migration 84)./:owner/:name/settings/archive.listReposVisibleToandlistReposWritableTonow exclude archived repositories unlessincludeArchivedis set. That covers the home's apps, the explorer and the inbox. I also filtered the home feed's candidates and the "On you" card.docs/APPS.mdhas a section on archiving. Both new test files are inGATE.Tests
test/archive.test.tscovers the three lists with and without the archive, a non-admin and a cross-origin request being refused, the page and git still answering, and the crew refusing a run.test/archive-app.test.tscovers production stopping with its data surviving, a push while archived deploying nothing, and waking restoring production over the same data.Left out
repo.archivedandrepo.wokenare visible to readers like other repository events.Try it
bun test test/archive.test.ts test/archive-app.test.ts.Closes #1619