feat: global failover + dashboard model config section

- Failover is now global (account-level, not per-channel)
- Dashboard shows role model config (Owner/Reviewer/Arbiter + MoA refs)
- Dashboard shows failover status when active
- Auto-clear failover on successful Claude rotation
- Remove per-channel lease writes from failover path
This commit is contained in:
Eyejoker
2026-03-31 00:38:29 +09:00
parent f98dd27712
commit 68901e5da9
7 changed files with 152 additions and 77 deletions

View File

@@ -191,8 +191,7 @@ function parseMoaReferenceModels(): MoaModelConfig[] {
export function getMoaConfig(): MoaConfig {
const referenceModels = parseMoaReferenceModels();
return {
enabled:
getEnv('MOA_ENABLED') === 'true' && referenceModels.length > 0,
enabled: getEnv('MOA_ENABLED') === 'true' && referenceModels.length > 0,
referenceModels,
};
}