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

@ -19,8 +19,14 @@ test("HTTPS, .git and repo forms resolve to one repository identity", () => {
assert.equal(publishLeaseResource(expected), `${expected}#main`);
});
test("only the two current repositories are allowed", () => {
assert.equal(currentCodeChannelRepositories.length, 2);
test("only the three current repositories are allowed", () => {
assert.equal(currentCodeChannelRepositories.length, 3);
assert.equal(
normalizeCodeChannelRepository(
"https://guanghulab.com/code/bingshuo/grok-build-upstream-mirror.git",
),
"repo://guanghulab.com/code/bingshuo/grok-build-upstream-mirror",
);
for (const invalid of [
"https://guanghulab.com/fifth-domain/bingshuo/fifth-domain.git",
"https://guanghubingshuo.com/code/bingshuo/guanghulab.git",
@ -39,4 +45,3 @@ test("credential-bearing remotes are rejected", () => {
/CREDENTIALS_FORBIDDEN/u,
);
});