export class ProviderHealthRegistry {
    kimi = {
        provider: "kimi",
        available: true,
        checkedAt: Date.now(),
        disableForRun: false,
    };
    deepseek;
    getKimi() {
        return this.kimi;
    }
    isKimiAvailable() {
        return this.kimi.available !== false && this.kimi.disableForRun !== true;
    }
    markKimiUnavailable(reason) {
        this.kimi = {
            provider: "kimi",
            available: false,
            checkedAt: Date.now(),
            reason,
            disableForRun: true,
        };
    }
    markKimiAvailable() {
        this.kimi = {
            provider: "kimi",
            available: true,
            checkedAt: Date.now(),
            disableForRun: false,
        };
    }
    getDeepSeek() {
        return this.deepseek;
    }
    isDeepSeekAvailable() {
        return this.deepseek?.available !== false && this.deepseek?.disableForRun !== true;
    }
    markDeepSeekUnavailable(reason) {
        this.deepseek = {
            provider: "deepseek",
            available: false,
            checkedAt: Date.now(),
            reason,
            disableForRun: true,
        };
    }
    markDeepSeekAvailable() {
        this.deepseek = {
            provider: "deepseek",
            available: true,
            checkedAt: Date.now(),
            disableForRun: false,
        };
    }
}
