UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

11 lines • 484 B
const ACCOUNT_FAILOVER_REASONS = { auth_error: "its login expired or was refused", rate_limit: "it hit a rate or usage limit", billing: "its account is out of credit", overloaded: "it was overloaded", }; export function formatAccountFailoverNotice(event) { const why = ACCOUNT_FAILOVER_REASONS[event.reason] ?? "it failed"; return `Switched ${event.provider} account ${event.from} -> ${event.to}: ${why}.`; } //# sourceMappingURL=account-failover-notice.js.map