افزودن ارائه‌دهندهٔ agy (Google Antigravity) با لاگین headless و پول چرخشی اکانت

- Adapter اکانت‌محور با چرخش round-robin و بنچ‌شدن خودکار روی ۴۲۹/۴۰۱
- ورود ادمین از طریق URL بازگشتی گوگل (PKCE) و ذخیرهٔ رمزنگاری‌شدهٔ refresh token
- صفحهٔ مدیریت اکانت‌های agy در پنل ادمین به همراه تست و فعال/غیرفعال‌سازی
- مهاجرت Alembic b1c2d3e4f5a6 برای ستون‌های اکانت agy
- seed همیشه کاتالوگ agy را می‌سازد و فقط با AI_DEFAULT_PROVIDER=agy مسیریابی می‌شود
This commit is contained in:
mjalmoudy94
2026-10-13 08:20:27 +03:30
parent 54074f10c3
commit 3d1e98f4fb
25 changed files with 3073 additions and 10 deletions
+23 -1
View File
@@ -16,7 +16,29 @@ export type ProviderType =
| "openai_compatible"
| "anthropic"
| "gemini"
| "openrouter";
| "openrouter"
| "agy";
/** Rotation-pool lifecycle of one agy account. */
export type AgyAccountStatus = "active" | "cooldown" | "error";
/**
* One agy account (Google identity). Deliberately credential-free: the console
* manages accounts, never tokens.
*/
export interface AgyAccount {
id: string;
provider_id: string;
name: string;
email: string;
project_id: string;
status: AgyAccountStatus;
cooldown_until: string | null;
is_active: boolean;
last_error: string;
last_used_at: string | null;
created_at: string;
}
/** What a model can do. Routing picks models by required capability. */
export type Capability = "text" | "vision" | "tools" | "reasoning" | "long_context" | "code";