chore(routes): close Shanghai mission and unify code channel

This commit is contained in:
冰朔 2026-08-03 23:51:32 +08:00
commit 2bf4b63cff
24 changed files with 246 additions and 129 deletions

View file

@ -3,6 +3,7 @@ const PREFIX = "/code/bingshuo/";
const REPOSITORIES = new Set([
"guanghu-ice-heart",
"hololake-system-architecture",
"grok-build-upstream-mirror",
]);
export function normalizeCodeChannelRepository(value) {
@ -23,7 +24,7 @@ export function normalizeCodeChannelRepository(value) {
: "";
if (url.hostname !== HOST || !REPOSITORIES.has(slug)) {
throw new Error(
"NON_CANONICAL_CODE_CHANNEL_REPOSITORY: only the two registered /code/ repositories are current",
"NON_CANONICAL_CODE_CHANNEL_REPOSITORY: only the three registered /code/ repositories are current",
);
}
return `repo://${HOST}${PREFIX}${slug}`;
@ -50,5 +51,5 @@ export function publishLeaseResource(repository, target = "main") {
export const currentCodeChannelRepositories = Object.freeze([
"repo://guanghulab.com/code/bingshuo/guanghu-ice-heart",
"repo://guanghulab.com/code/bingshuo/hololake-system-architecture",
"repo://guanghulab.com/code/bingshuo/grok-build-upstream-mirror",
]);