feat(persona): unify system and code channel routes

This commit is contained in:
冰朔 2026-08-03 10:50:33 +08:00
commit e80ee6d966
29 changed files with 825 additions and 242 deletions

View file

@ -20,10 +20,13 @@ test("canonical AI and persona entry files route to the domestic map", () => {
assert.match(key, /禁止从本路径恢复.*\/exec/);
});
test("code map resolves REPO-012 as current and keeps REPO-001 as domestic history", () => {
test("code map resolves only REPO-012 and REPO-014 as current push routes", () => {
const codeMap = read(".code-map");
assert.match(codeMap, /^REPO-001=https:\/\/guanghulab\.com\/fifth-domain\/bingshuo\/fifth-domain\.git$/m);
assert.match(codeMap, /^REPO-001=HISTORICAL_READ_ONLY_NO_PUSH$/m);
assert.match(codeMap, /^REPO-001-HISTORICAL-URL=https:\/\/guanghulab\.com\/fifth-domain\/bingshuo\/fifth-domain\.git$/m);
assert.match(codeMap, /^REPO-012=https:\/\/guanghulab\.com\/code\/bingshuo\/guanghu-ice-heart\.git$/m);
assert.match(codeMap, /^REPO-014=https:\/\/guanghulab\.com\/code\/bingshuo\/hololake-system-architecture\.git$/m);
assert.match(codeMap, /^CURRENT-PUSH-ALLOWLIST=REPO-012,REPO-014$/m);
assert.match(codeMap, /^REPO-001-LEGACY-SG=/m);
assert.match(codeMap, /^FD-REPO-MAP-001=routing\/repository-route-map\.json$/m);
assert.match(codeMap, /^FD-WORLD-TREE-001=routing\/fifth-domain-world-tree\.json$/m);