-
-
- {t('xai_quota.product_usage', { product: item.product })}
-
-
-
- {t('xai_quota.used_percent', {
- percent: formatXaiPercent(used),
- })}
-
-
+ {billing.productUsage.length > 0 && (
+
+
{t('xai_quota.usage_breakdown')}
+ {billing.productUsage.map((item) => (
+
+ {t('xai_quota.product_usage', { product: item.product })}
+ {': '}
+ {item.usagePercent === null
+ ? t('xai_quota.usage_unavailable')
+ : formatXaiPercent(Math.max(0, Math.min(100, item.usagePercent)))}
-
-
- );
- })}
+ ))}
+
+ )}
{onDemandCap > 0 ? (
@@ -254,7 +246,7 @@ export function XaiQuotaBody({ quota, classes }: QuotaBodyProps)
) : (
@@ -278,7 +270,7 @@ export function XaiQuotaBody({ quota, classes }: QuotaBodyProps
)
)}
diff --git a/web/src/features/quota/quotaTimelineModel.ts b/web/src/features/quota/quotaTimelineModel.ts
index 726aba23fb1..39f61133f01 100644
--- a/web/src/features/quota/quotaTimelineModel.ts
+++ b/web/src/features/quota/quotaTimelineModel.ts
@@ -465,19 +465,12 @@ export function buildTimelineLane(input: TimelineLaneInput): TimelineLane {
// length; weekly is what `periodType` already told us.
periodHours: billing.periodHours ?? 24 * 7,
remaining,
- // Per-product usage is the closest analogue to the other providers'
- // per-window breakdown.
- limits: (billing.productUsage ?? [])
- .map((entry) => ({
- label: entry.product ?? '',
- remaining:
- typeof entry.usagePercent === 'number' ? clampPercent(100 - entry.usagePercent) : null,
- }))
- .filter((limit): limit is TimelineLimit => limit.remaining !== null),
+ // Products contribute to the shared weekly usage, not independent limits.
+ limits: [],
};
}
- if (provider === 'antigravity') {
+ if (provider === 'antigravity' || provider === 'plugin') {
// Buckets live one level down, inside groups, and the groups are a display
// concern the chart doesn't care about — flatten them.
const buckets = ((quota as { groups?: { buckets?: AntigravityBucketLike[] }[] }).groups ?? [])
diff --git a/web/src/features/quota/resetSchedule.ts b/web/src/features/quota/resetSchedule.ts
index 884468eb008..147509a8f67 100644
--- a/web/src/features/quota/resetSchedule.ts
+++ b/web/src/features/quota/resetSchedule.ts
@@ -117,7 +117,7 @@ export function collectQuotaRowInstants(
return [{ rowId: XAI_WEEKLY_ROW_ID, atMs: billing.resetAtMs, kind: 'window' }];
}
- if (provider === 'antigravity') {
+ if (provider === 'antigravity' || provider === 'plugin') {
// Buckets live inside groups; the grouping is a display concern here.
const buckets = ((quota as { groups?: { buckets?: WindowLike[] }[] }).groups ?? []).flatMap(
(group) => group.buckets ?? []
diff --git a/web/src/hooks/useVisualConfig.ts b/web/src/hooks/useVisualConfig.ts
index 2f859e3b4f6..9ef3cf723bd 100644
--- a/web/src/hooks/useVisualConfig.ts
+++ b/web/src/hooks/useVisualConfig.ts
@@ -1250,8 +1250,6 @@ function getNextDirtyFields(
'maxRetryCredentials',
'maxRetryInterval',
'wsAuth',
- 'quotaSwitchProject',
- 'quotaSwitchPreviewModel',
'quotaAntigravityCredits',
'routingStrategy',
'routingSessionAffinity',
@@ -1417,7 +1415,8 @@ function parseVisualValuesFromYaml(yamlContent: string): VisualConfigValues {
const v8OauthProviders = asRecord(v8Oauth?.['providers']);
const v8OauthProvidersAistudio = asRecord(v8OauthProviders?.['aistudio']);
const v8OauthProvidersCodex = asRecord(v8OauthProviders?.['codex']);
- const v8OauthProvidersClaude = asRecord(v8OauthProviders?.['claude']);
+ const v8Upstream = asRecord(parsed?.['upstream']);
+ const v8UpstreamClaude = asRecord(v8Upstream?.['claude']);
const v8OauthProvidersAntigravity = asRecord(v8OauthProviders?.['antigravity']);
const v8Multimedia = asRecord(parsed?.['multimedia']);
const v8Observability = asRecord(parsed?.['observability']);
@@ -1425,14 +1424,13 @@ function parseVisualValuesFromYaml(yamlContent: string): VisualConfigValues {
const v8ObservabilityUsage = asRecord(v8Observability?.['usage']);
const tls = asRecord(v8Server?.['tls']);
const remoteManagement = asRecord(parsed['management']);
- const quotaExceeded = asRecord(parsed['quota-exceeded']);
const routing = asRecord(parsed.routing);
const payload = asRecord(v8Requests?.['payload']);
const streaming = asRecord(v8Requests?.['streaming']);
const plugins = asRecord(parsed.plugins);
const antigravity = asRecord(v8OauthProviders?.['antigravity']);
const devin = asRecord(v8OauthProviders?.['devin']);
- const claudeHeaderDefaults = asRecord(v8OauthProvidersClaude?.['header-defaults']);
+ const claudeHeaderDefaults = asRecord(v8UpstreamClaude?.['header-defaults']);
const codexHeaderDefaults = asRecord(v8OauthProvidersCodex?.['header-defaults']);
const newValues: VisualConfigValues = {
@@ -1523,12 +1521,6 @@ function parseVisualValuesFromYaml(yamlContent: string): VisualConfigValues {
? codexHeaderDefaults['beta-features']
: '',
- quotaSwitchProject: Boolean(
- quotaExceeded?.['switch-project'] ?? DEFAULT_VISUAL_VALUES.quotaSwitchProject
- ),
- quotaSwitchPreviewModel: Boolean(
- quotaExceeded?.['switch-preview-model'] ?? DEFAULT_VISUAL_VALUES.quotaSwitchPreviewModel
- ),
quotaAntigravityCredits: Boolean(antigravity?.['antigravity-credits'] ?? false),
routingStrategy: parseRoutingStrategy(routing?.strategy),
@@ -1904,57 +1896,57 @@ export function useVisualConfig() {
dirtyFields.has('claudeHeaderTimeout') ||
dirtyFields.has('claudeHeaderStabilizeDeviceProfile');
if (claudeHeadersDirty) {
- ensureMapInDoc(doc, ['oauth', 'providers', 'claude', 'header-defaults']);
+ ensureMapInDoc(doc, ['upstream', 'claude', 'header-defaults']);
if (dirtyFields.has('claudeHeaderUserAgent')) {
setStringInDoc(
doc,
- ['oauth', 'providers', 'claude', 'header-defaults', 'user-agent'],
+ ['upstream', 'claude', 'header-defaults', 'user-agent'],
values.claudeHeaderUserAgent
);
}
if (dirtyFields.has('claudeHeaderPackageVersion')) {
setStringInDoc(
doc,
- ['oauth', 'providers', 'claude', 'header-defaults', 'package-version'],
+ ['upstream', 'claude', 'header-defaults', 'package-version'],
values.claudeHeaderPackageVersion
);
}
if (dirtyFields.has('claudeHeaderRuntimeVersion')) {
setStringInDoc(
doc,
- ['oauth', 'providers', 'claude', 'header-defaults', 'runtime-version'],
+ ['upstream', 'claude', 'header-defaults', 'runtime-version'],
values.claudeHeaderRuntimeVersion
);
}
if (dirtyFields.has('claudeHeaderOs')) {
setStringInDoc(
doc,
- ['oauth', 'providers', 'claude', 'header-defaults', 'os'],
+ ['upstream', 'claude', 'header-defaults', 'os'],
values.claudeHeaderOs
);
}
if (dirtyFields.has('claudeHeaderArch')) {
setStringInDoc(
doc,
- ['oauth', 'providers', 'claude', 'header-defaults', 'arch'],
+ ['upstream', 'claude', 'header-defaults', 'arch'],
values.claudeHeaderArch
);
}
if (dirtyFields.has('claudeHeaderTimeout')) {
setStringInDoc(
doc,
- ['oauth', 'providers', 'claude', 'header-defaults', 'timeout'],
+ ['upstream', 'claude', 'header-defaults', 'timeout'],
values.claudeHeaderTimeout
);
}
if (dirtyFields.has('claudeHeaderStabilizeDeviceProfile')) {
setBooleanInDoc(
doc,
- ['oauth', 'providers', 'claude', 'header-defaults', 'stabilize-device-profile'],
+ ['upstream', 'claude', 'header-defaults', 'stabilize-device-profile'],
values.claudeHeaderStabilizeDeviceProfile
);
}
- deleteIfMapEmpty(doc, ['oauth', 'providers', 'claude', 'header-defaults']);
+ deleteIfMapEmpty(doc, ['upstream', 'claude', 'header-defaults']);
}
const codexHeadersDirty =
@@ -1978,25 +1970,12 @@ export function useVisualConfig() {
deleteIfMapEmpty(doc, ['oauth', 'providers', 'codex', 'header-defaults']);
}
- const quotaDirty =
- dirtyFields.has('quotaSwitchProject') ||
- dirtyFields.has('quotaSwitchPreviewModel') ||
- dirtyFields.has('quotaAntigravityCredits');
- if (quotaDirty) {
- ensureMapInDoc(doc, ['quota-exceeded']);
- if (dirtyFields.has('quotaSwitchProject')) {
- doc.setIn(['quota-exceeded', 'switch-project'], values.quotaSwitchProject);
- }
- if (dirtyFields.has('quotaSwitchPreviewModel')) {
- doc.setIn(['quota-exceeded', 'switch-preview-model'], values.quotaSwitchPreviewModel);
- }
- if (dirtyFields.has('quotaAntigravityCredits')) {
- doc.setIn(
- ['oauth', 'providers', 'antigravity', 'antigravity-credits'],
- values.quotaAntigravityCredits
- );
- }
- deleteIfMapEmpty(doc, ['quota-exceeded']);
+ if (dirtyFields.has('quotaAntigravityCredits')) {
+ ensureMapInDoc(doc, ['oauth', 'providers', 'antigravity']);
+ doc.setIn(
+ ['oauth', 'providers', 'antigravity', 'antigravity-credits'],
+ values.quotaAntigravityCredits
+ );
}
const routingDirty =
diff --git a/web/src/i18n/index.ts b/web/src/i18n/index.ts
index 9da45107954..c62835383c7 100644
--- a/web/src/i18n/index.ts
+++ b/web/src/i18n/index.ts
@@ -8,6 +8,8 @@ import zhCN from './locales/zh-CN.json';
import zhTW from './locales/zh-TW.json';
import en from './locales/en.json';
import ru from './locales/ru.json';
+import vi from './locales/vi.json';
+import ko from './locales/ko.json';
import { getInitialLanguage } from '@/utils/language';
i18n.use(initReactI18next).init({
@@ -16,6 +18,8 @@ i18n.use(initReactI18next).init({
'zh-TW': { translation: zhTW },
en: { translation: en },
ru: { translation: ru },
+ vi: { translation: vi },
+ ko: { translation: ko },
},
lng: getInitialLanguage(),
fallbackLng: 'zh-CN',
diff --git a/web/src/i18n/locales/en.json b/web/src/i18n/locales/en.json
index a0c490853af..15186a6dcad 100644
--- a/web/src/i18n/locales/en.json
+++ b/web/src/i18n/locales/en.json
@@ -456,7 +456,8 @@
"plan_max": "Max",
"plan_max5": "Max 5x",
"plan_max20": "Max 20x",
- "plan_team": "Team"
+ "plan_team": "Team",
+ "cloud_session_credits": "Cloud session credits"
},
"codex_quota": {
"title": "Codex Quota",
@@ -498,9 +499,11 @@
"plan_plus": "Plus",
"plan_team": "Team",
"plan_free": "Free",
- "plan_pro": "Pro 20x",
- "plan_prolite": "Pro 5x",
- "plan_business_premium": "Business Premium"
+ "plan_pro": "Pro 200",
+ "plan_prolite": "Pro 100",
+ "plan_business_premium": "Business Premium",
+ "reset_not_confirmed": "Quota reset was not confirmed. Refresh the quota before trying again.",
+ "reset_cooldown_failed": "Quota was reset, but the gateway cooldown could not be cleared. On the original connection, use Clear cooldown on the credential page; do not redeem another reset."
},
"devin_quota": {
"daily": "Daily remaining",
@@ -590,7 +593,8 @@
"paid_health": "Paid API chat is available. xAI does not expose quota totals for this OAuth credential.",
"pay_as_you_go_label": "Pay as you go",
"pay_as_you_go_enabled": "Enabled, cap {{cap}}",
- "pay_as_you_go_disabled": "Disabled"
+ "pay_as_you_go_disabled": "Disabled",
+ "usage_breakdown": "Usage breakdown (shared quota)"
},
"vertex_import": {
"title": "Vertex",
@@ -600,7 +604,6 @@
"location_hint": "Leave empty to use the default region us-central1.",
"file_label": "Service account key JSON",
"file_hint": "Only Google Cloud service account key JSON files are accepted.",
- "file_placeholder": "No file selected",
"choose_file": "Choose File",
"import_button": "Import",
"file_required": "Select a .json credential file first",
@@ -609,7 +612,9 @@
"result_project": "Project ID",
"result_email": "Service account",
"result_location": "Region",
- "result_file": "Persisted file"
+ "result_file": "Persisted file",
+ "drop_hint": "Choose or drop a JSON file",
+ "import_another": "Import another"
},
"oauth_excluded": {
"editor_description": "Choose which models a provider exposes using individual selections or wildcard rules.",
@@ -745,7 +750,6 @@
"devin_oauth_title": "Devin",
"devin_oauth_button": "Connect",
"devin_oauth_hint": "Devin account via browser sign-in. Finish within 5 minutes.",
- "devin_oauth_url_label": "Authorization URL:",
"devin_copy_link": "Copy Link",
"devin_open_link": "Open Link",
"devin_oauth_status_waiting": "Waiting for Devin authentication...",
@@ -763,7 +767,6 @@
"codex_oauth_title": "Codex",
"codex_oauth_button": "Connect",
"codex_oauth_hint": "ChatGPT account via browser sign-in.",
- "codex_oauth_url_label": "Authorization URL:",
"codex_open_link": "Open Link",
"codex_copy_link": "Copy Link",
"codex_oauth_status_waiting": "Waiting for authentication...",
@@ -774,7 +777,6 @@
"anthropic_oauth_title": "Anthropic",
"anthropic_oauth_button": "Connect",
"anthropic_oauth_hint": "Claude Pro or Max via browser sign-in.",
- "anthropic_oauth_url_label": "Authorization URL:",
"anthropic_open_link": "Open Link",
"anthropic_copy_link": "Copy Link",
"anthropic_oauth_status_waiting": "Waiting for authentication...",
@@ -785,7 +787,6 @@
"antigravity_oauth_title": "Antigravity",
"antigravity_oauth_button": "Connect",
"antigravity_oauth_hint": "Google account via browser sign-in.",
- "antigravity_oauth_url_label": "Authorization URL:",
"antigravity_open_link": "Open Link",
"antigravity_copy_link": "Copy Link",
"antigravity_oauth_status_waiting": "Waiting for authentication...",
@@ -796,7 +797,6 @@
"meta_oauth_title": "Muse (Meta)",
"meta_oauth_button": "Connect",
"meta_oauth_hint": "Meta account via device code.",
- "meta_oauth_url_label": "Authorization URL:",
"meta_open_link": "Open Link",
"meta_copy_link": "Copy Link",
"meta_oauth_status_waiting": "Waiting for authentication...",
@@ -809,7 +809,6 @@
"kimi_ai_oauth_title": "Kimi International",
"kimi_ai_oauth_button": "Connect",
"kimi_ai_oauth_hint": "kimi.ai account via device code. Separate from China.",
- "kimi_ai_oauth_url_label": "Authorization URL:",
"kimi_ai_open_link": "Open link",
"kimi_ai_copy_link": "Copy link",
"kimi_ai_oauth_status_waiting": "Waiting for authentication...",
@@ -820,7 +819,6 @@
"kimi_oauth_title": "Kimi China",
"kimi_oauth_button": "Connect",
"kimi_oauth_hint": "kimi.com account via device code.",
- "kimi_oauth_url_label": "Authorization URL:",
"kimi_open_link": "Open Link",
"kimi_copy_link": "Copy Link",
"kimi_oauth_status_waiting": "Waiting for authentication...",
@@ -831,7 +829,6 @@
"xai_oauth_title": "xAI",
"xai_oauth_button": "Connect",
"xai_oauth_hint": "Grok account via browser sign-in.",
- "xai_oauth_url_label": "Authorization URL:",
"xai_open_link": "Open Link",
"xai_copy_link": "Copy Link",
"xai_oauth_status_waiting": "Waiting for authentication...",
@@ -842,7 +839,6 @@
"plugin_oauth_title": "{{name}}",
"plugin_oauth_button": "Connect",
"plugin_oauth_hint": "{{name}} account via the plugin sign-in flow.",
- "plugin_oauth_url_label": "Authorization URL:",
"plugin_open_link": "Open Link",
"plugin_copy_link": "Copy Link",
"plugin_oauth_status_waiting": "Waiting for authentication...",
@@ -881,7 +877,27 @@
"remote_access_disabled": "This login method is not available for remote access. Please access from localhost.",
"page_title": "Connect account",
"page_description": "Sign in to a provider to add its account to the pool.",
- "back_to_accounts": "Back to accounts"
+ "back_to_accounts": "Back to accounts",
+ "kimi_oauth_name": "Kimi China",
+ "kimi_ai_oauth_name": "Kimi International",
+ "method_device": "Device code",
+ "method_browser": "Browser sign-in",
+ "method_plugin": "Plugin",
+ "tile_waiting": "Awaiting authorization",
+ "tile_success": "Credential added",
+ "tile_error": "Authorization failed",
+ "meta_providers": "{{count}} providers",
+ "meta_waiting": "{{count}} awaiting authorization",
+ "meta_added": "{{count}} added this session",
+ "step_open_auth_page": "Open the sign-in page and authorize",
+ "step_enter_device_code": "Enter this code on the sign-in page",
+ "optional_step": "Optional",
+ "generating_link": "Generating sign-in link…",
+ "waiting_background_hint": "Closing this window won't stop sign-in",
+ "restart_login": "Start over",
+ "success_saved_hint": "The credential is saved — manage it in Auth Files.",
+ "sign_up_prompt": "No account yet?",
+ "copied": "Copied"
},
"stats": {
"success": "Success",
@@ -1213,11 +1229,14 @@
"plugins_title": "Plugins",
"antigravity_title": "Antigravity",
"devin_title": "Devin",
- "signature_title": "Signature Validation"
+ "signature_title": "Signature Validation",
+ "antigravity_credits": "Use Antigravity Credits"
},
"server": {
"host": "Host Address",
- "port": "Port"
+ "port": "Port",
+ "github_token": "Global GitHub Token",
+ "github_token_hint": "Used for server-side GitHub requests, such as panel updates and plugin downloads. Takes precedence over GITHUB_TOKEN; leave empty to use environment credentials, or unauthenticated requests if none are set. Matching plugin store authentication rules take precedence."
},
"tls": {
"title": "TLS/SSL Configuration",
@@ -1353,14 +1372,6 @@
"ws_auth": "WebSocket Authentication",
"ws_auth_desc": "Require authentication for AI Studio WebSocket connections"
},
- "quota": {
- "title": "Quota Fallback",
- "switch_project": "Switch Project",
- "switch_project_desc": "Automatically switch to another project when quota is exceeded",
- "switch_preview_model": "Switch to Preview Model",
- "switch_preview_model_desc": "Switch to preview model version when quota is exceeded",
- "antigravity_credits": "Use Antigravity Credits"
- },
"streaming": {
"title": "Streaming Configuration",
"keepalive_seconds": "Keepalive Seconds",
@@ -1787,7 +1798,9 @@
"chinese": "中文",
"chinese_tw": "Traditional Chinese (Taiwan)",
"english": "English",
- "russian": "Русский"
+ "russian": "Русский",
+ "vietnamese": "Tiếng Việt",
+ "korean": "한국어"
},
"theme": {
"switch": "Theme",
@@ -2059,7 +2072,6 @@
"disabledHint": "Disabled entries won't be used by the gateway",
"websockets": "Enable WebSockets",
"testModel": "Test model",
- "testModelClaudeHint": "Used for connectivity testing only; not saved",
"testModelAutoWith": "Auto · {{name}}",
"testModelAutoEmpty": "Auto (no models added yet)",
"testModelCustom": "{{name}} (custom)",
@@ -2111,7 +2123,8 @@
"baseUrlRequired": "Base URL is required",
"weightInteger": "Scheduling weight must be an integer",
"weightMax": "Scheduling weight cannot exceed {{max}}"
- }
+ },
+ "testModelHint": "Used for connectivity testing only; not saved"
},
"delete": {
"title": "Delete resource",
@@ -2201,7 +2214,10 @@
"ineligible": "This account is not eligible.",
"unavailable": "Resets are currently unavailable.",
"rate_limited": "Request rate limited.",
- "auth_error": "Authorization was refused."
+ "auth_error": "Authorization was refused.",
+ "expiry_title": "Manual reset expiry ({{timezone}})",
+ "grant_number": "Grant {{index}}",
+ "expiry_unknown": "Expiry unknown"
},
"routing": {
"title": "Routing",
@@ -2260,5 +2276,18 @@
"strategy_short_fill_first": "Fill first",
"sessions_show_all": "Show all ({{count}})",
"sessions_show_less": "Show less"
+ },
+ "plugin_quota": {
+ "empty_title": "No Plugin Auth Files",
+ "empty_desc": "Connect a plugin account to view its remaining quota.",
+ "idle": "Click here to refresh quota",
+ "loading": "Loading quota...",
+ "load_failed": "Failed to load quota: {{message}}",
+ "missing_auth_index": "Auth file missing auth_index",
+ "probe_unsupported": "Declarative quota probes are not available through the v8 management API",
+ "plugin_not_found": "No enabled plugin provides quota for {{provider}}",
+ "empty_data": "No quota data available",
+ "plan_label": "Plan",
+ "remaining_percent": "{{percent}}% remaining"
}
}
diff --git a/web/src/i18n/locales/ko.json b/web/src/i18n/locales/ko.json
new file mode 100644
index 00000000000..934ff297c71
--- /dev/null
+++ b/web/src/i18n/locales/ko.json
@@ -0,0 +1,2384 @@
+{
+ "common": {
+ "login": "로그인",
+ "logout": "로그아웃",
+ "back": "뒤로",
+ "cancel": "취소",
+ "confirm": "확인",
+ "leave": "나가기",
+ "stay": "머무르기",
+ "save": "저장",
+ "delete": "삭제",
+ "edit": "편집",
+ "add": "추가",
+ "update": "업데이트",
+ "refresh": "새로 고침",
+ "close": "닫기",
+ "success": "성공",
+ "error": "오류",
+ "info": "정보",
+ "warning": "경고",
+ "loading": "로딩 중...",
+ "connecting": "연결 중...",
+ "connected": "연결됨",
+ "disconnected": "연결 끊김",
+ "connecting_status": "연결 중",
+ "connected_status": "연결됨",
+ "disconnected_status": "연결 끊김",
+ "yes": "예",
+ "no": "아니요",
+ "not_set": "설정되지 않음",
+ "optional": "선택 사항",
+ "required": "필수",
+ "api_key": "키",
+ "base_url": "주소",
+ "prefix": "접두사",
+ "proxy_url": "프록시",
+ "priority": "우선순위",
+ "alias": "별칭",
+ "failure": "실패",
+ "unknown_error": "알 수 없는 오류",
+ "quota_update_required": "CPA 버전을 업데이트하거나 업데이트를 확인하세요",
+ "quota_check_credential": "자격 증명 상태를 확인하세요",
+ "copy": "복사",
+ "expand": "펼치기",
+ "collapse": "접기",
+ "status": "상태",
+ "action": "작업",
+ "custom_headers_label": "사용자 지정 헤더",
+ "custom_headers_hint": "요청과 함께 보낼 선택적 HTTP 헤더입니다. 제거하려면 비워 두세요.",
+ "custom_headers_add": "헤더 추가",
+ "custom_headers_key_placeholder": "헤더 이름 (예: X-Custom-Header)",
+ "custom_headers_value_placeholder": "헤더 값",
+ "model_name_placeholder": "모델 이름 (예: claude-3-5-sonnet-20241022)",
+ "model_alias_placeholder": "모델 별칭 (선택 사항)",
+ "invalid_provider_index": "유효하지 않은 공급자 인덱스입니다.",
+ "unsaved_changes_title": "저장되지 않은 변경 사항",
+ "unsaved_changes_message": "저장되지 않은 변경 사항이 있습니다. 지금 나가면 변경 사항이 삭제됩니다. 나가시겠습니까?"
+ },
+ "title": {
+ "login": "CLI Proxy API 관리 센터",
+ "abbr": "CPAMC",
+ "brand": "CLIProxyAPI"
+ },
+ "splash": {
+ "title": "CLI Proxy API",
+ "subtitle": "관리 센터"
+ },
+ "login": {
+ "subtitle": "CLI Proxy API v8 이상 버전에 연결",
+ "connection_current": "현재 URL",
+ "connection_auto_hint": "시스템이 자동으로 현재 URL을 사용하여 연결합니다",
+ "custom_connection_label": "사용자 지정 연결 URL:",
+ "custom_connection_placeholder": "예: https://example.com:8317",
+ "custom_connection_hint": "기본적으로 현재 URL이 사용됩니다. 필요한 경우 여기서 재정의하세요.",
+ "remember_password_label": "비밀번호 저장",
+ "management_key_label": "관리 키:",
+ "management_key_placeholder": "관리 키를 입력하세요",
+ "submit_button": "로그인",
+ "submitting": "연결 중...",
+ "error_backend_detail": "백엔드 응답",
+ "error_required": "연결 정보를 모두 입력하세요",
+ "error_invalid": "연결에 실패했습니다. 서버 주소, 관리 API 및 관리 키를 확인하세요",
+ "error_network": "네트워크 연결에 실패했습니다. 네트워크 또는 서버 주소를 확인하세요",
+ "error_timeout": "연결 시간이 초과되었습니다. 서버가 응답하지 않습니다",
+ "error_unauthorized": "인증에 실패했습니다. 관리 키가 없거나 유효하지 않습니다",
+ "error_forbidden": "접근이 거부되었습니다. 원격 관리가 비활성화되었거나, 관리 키가 설정되지 않았거나, 이 IP가 일시적으로 차단되었습니다",
+ "error_not_found": "v8 관리 API를 찾을 수 없습니다. 서버 주소를 확인하고 CLIProxyAPI를 v8 이상으로 업그레이드하세요. v0은 지원되지 않습니다.",
+ "error_legacy_backend": "이 백엔드는 v0 관리 API를 허용하지만 v8을 제공하지 않습니다. 이 관리 페이지를 사용하려면 CLIProxyAPI를 v8 이상으로 업그레이드하세요.",
+ "error_server": "백엔드에서 관리 요청을 처리하는 동안 오류가 발생했습니다. 서버 로그를 확인하세요",
+ "error_cors": "교차 출처 요청(CORS)이 차단되었습니다. 서버 설정을 확인하세요",
+ "error_ssl": "SSL/TLS 인증서 확인에 실패했습니다",
+ "brand_title": "CLIProxyAPI"
+ },
+ "header": {
+ "refresh_all": "모두 새로 고침",
+ "logout": "로그아웃",
+ "local_trusted_session": "Local trusted session"
+ },
+ "connection": {
+ "status": "연결 상태:"
+ },
+ "nav": {
+ "dashboard": "대시보드",
+ "quick_start": "빠른 시작",
+ "ai_providers": "AI 공급자",
+ "auth_files": "인증 파일",
+ "oauth": "OAuth 로그인",
+ "quota_management": "할당량 관리",
+ "plugins": "플러그인",
+ "plugin_store": "플러그인 스토어",
+ "config_management": "설정 패널",
+ "logs": "로그 뷰어",
+ "system_info": "관리 센터 정보",
+ "routing": "Routing"
+ },
+ "nav_groups": {
+ "operate": "운영",
+ "gateway": "게이트웨이",
+ "observe": "모니터링",
+ "plugin_pages": "플러그인",
+ "control": "제어"
+ },
+ "nav_meta": {
+ "dashboard": "운영 개요",
+ "quick_start": "APIKEY.FUN 설정",
+ "ai_providers": "업스트림 모델 라우팅",
+ "auth_files": "인증 파일 및 자격 증명",
+ "oauth": "OAuth 권한 부여",
+ "quota_management": "API 키 및 한도",
+ "plugins": "플러그인 설정 및 전환",
+ "plugin_store": "플러그인 탐색 및 설치",
+ "logs": "요청 추적",
+ "config_management": "게이트웨이 설정",
+ "system_info": "런타임 및 진단",
+ "routing": "Session affinity & routing"
+ },
+ "dashboard": {
+ "hero_verdict_good": "모든 시스템 정상",
+ "hero_verdict_warning": "다소 불안정",
+ "hero_verdict_critical": "주의 필요",
+ "hero_verdict_idle": "현재 유휴 상태",
+ "hero_verdict_offline": "연결 대기 중",
+ "hero_verdict_connecting": "연결 중",
+ "hero_period": ".",
+ "hero_requests_label": "처리된 요청",
+ "hero_live": "실시간",
+ "hero_window_meta": "롤링 {{window}} 윈도우 · 10분 단위 버킷",
+ "hero_spark_label": "최근 {{window}} 동안의 요청량",
+ "cta_manage_providers": "공급자 관리",
+ "cta_inspect_logs": "로그 확인",
+ "stats_aria": "주요 지표",
+ "success_rate": "성공률",
+ "stat_success_hint": "윈도우 내 총 {{total}}건의 요청",
+ "stat_credentials": "자격 증명",
+ "stat_credentials_hint": "활성 {{active}}개 · 비제공 {{disabled}}개",
+ "stat_credentials_empty": "자격 증명 파일을 찾을 수 없습니다",
+ "stat_provider_keys": "공급자 키",
+ "stat_provider_keys_hint": "모든 브랜드에 설정된 API 키",
+ "stat_models": "모델",
+ "stat_models_hint": "프록시 엔드포인트를 통해 제공됨",
+ "traffic_eyebrow": "실시간 트래픽",
+ "traffic_title": "10분 단위 처리량",
+ "traffic_description": "최근 {{window}} 동안 10분 단위 버킷별 성공 및 실패 횟수입니다. 열에 마우스를 올리면 정확한 구성을 확인할 수 있습니다.",
+ "traffic_table": "데이터 테이블",
+ "traffic_table_window": "시간 구간",
+ "traffic_chart_summary": "최근 {{minutes}}분 동안 총 {{total}}건의 요청: 성공 {{success}}건, 실패 {{failed}}건.",
+ "traffic_unavailable": "아직 기록된 트래픽이 없습니다",
+ "traffic_unavailable_hint": "프록시가 첫 번째 요청을 처리하면 카운터가 표시됩니다.",
+ "fleet_eyebrow": "공급자",
+ "fleet_title": "모든 공급자 비교",
+ "fleet_description": "동일한 윈도우 내 각 공급자의 요청량 및 성공률입니다.",
+ "fleet_empty": "아직 기록된 공급자 트래픽이 없습니다.",
+ "fleet_credentials": "자격 증명: {{value}}",
+ "fleet_spark_label": "{{provider}} 요청량",
+ "fleet_requests": "건의 요청",
+ "provider_unknown": "미분류",
+ "health_eyebrow": "건전성",
+ "health_title": "자격 증명 상태",
+ "health_active": "활성",
+ "health_unavailable": "사용 불가",
+ "health_disabled": "비활성화됨",
+ "health_by_type": "공급자별",
+ "health_empty": "자격 증명 파일을 찾을 수 없습니다.",
+ "health_link": "인증 파일 열기",
+ "runtime_eyebrow": "런타임",
+ "runtime_title": "설정 한눈에 보기",
+ "runtime_routing": "라우팅 전략",
+ "runtime_retry": "요청 재시도",
+ "runtime_management_keys": "관리 키",
+ "runtime_version": "서버 버전",
+ "runtime_build": "빌드 날짜",
+ "runtime_proxy": "업스트림 프록시",
+ "runtime_debug": "디버그",
+ "runtime_file_logging": "파일 로깅",
+ "runtime_request_log": "요청 로그",
+ "runtime_ws_auth": "WebSocket 인증",
+ "runtime_model_prefix": "모델 접두사",
+ "runtime_link": "설정 편집",
+ "cta_eyebrow": "다음",
+ "cta_title": "다음 작업 안내",
+ "cta_providers_desc": "API 키를 추가하고 우선순위를 설정하며 브랜드를 테스트합니다.",
+ "cta_auth_files_desc": "OAuth 자격 증명을 업로드, 새로 고침 및 비활성화합니다.",
+ "cta_config_desc": "라우팅, 재시도, 로깅 및 접근 권한을 조정합니다.",
+ "cta_quota_desc": "자격 증명별 남은 할당량을 확인합니다.",
+ "cta_logs_desc": "요청을 실시간 추적하고 오류 보고서를 다운로드합니다.",
+ "cta_system_desc": "버전 세부 정보 및 관리 센터 정보입니다.",
+ "window_m": "{{minutes}}분",
+ "window_h": "{{hours}}시간",
+ "window_hm": "{{hours}}시간 {{minutes}}분",
+ "page_title": "Dashboard",
+ "requests_title": "Requests",
+ "providers_title": "Providers",
+ "configuration_title": "Configuration",
+ "edit": "Edit",
+ "stat_requests_window": "Requests ({{window}})",
+ "stat_accounts": "Accounts",
+ "runtime_affinity": "Session affinity",
+ "runtime_enabled": "On",
+ "runtime_disabled": "Off",
+ "col_provider": "Provider",
+ "col_accounts": "Accounts",
+ "col_requests": "Requests",
+ "stat_accounts_unavailable_one": "{{count}} unavailable",
+ "stat_accounts_unavailable_other": "{{count}} unavailable"
+ },
+ "basic_settings": {
+ "debug_enable": "디버그 모드 활성화",
+ "proxy_url_label": "프록시 URL:",
+ "retry_count_label": "재시도 횟수:",
+ "logging_to_file_enable": "파일 로깅 활성화",
+ "request_log_title": "요청 로깅",
+ "request_log_enable": "요청 로깅 활성화",
+ "request_log_warning": "상세한 문제 해결이 필요한 경우가 아니면 꺼 두세요.",
+ "ws_auth_enable": "/ws/* 경로에 인증 요구",
+ "routing_strategy_round_robin": "round-robin (순환)",
+ "routing_strategy_weighted_round_robin": "weighted-round-robin (가중 순환)",
+ "routing_strategy_fill_first": "fill-first (우선 채우기)"
+ },
+ "auth_files": {
+ "title": "인증 파일 관리",
+ "meta_total": "자격 증명 {{count}}개",
+ "meta_active": "활성 {{count}}개",
+ "meta_problem": "문제 {{count}}개",
+ "empty_title": "아직 자격 증명이 없습니다",
+ "empty_desc": "시작하려면 인증 파일을 업로드하거나 OAuth로 공급자를 연결하세요.",
+ "empty_oauth_link": "OAuth로 연결",
+ "no_results_clear": "필터 초기화",
+ "title_section": "인증 파일",
+ "upload_button": "파일 업로드",
+ "delete_all_button": "모두 삭제",
+ "search_empty_title": "일치하는 파일이 없습니다",
+ "search_empty_desc": "필터를 변경하거나 검색어를 지우고 다시 시도해 보세요.",
+ "file_size": "크기",
+ "file_modified": "수정 일시",
+ "card_select": "{{name}} 자격 증명 선택",
+ "card_toggle": "{{name}} 자격 증명 활성화",
+ "card_requests": "요청",
+ "cooldown_unknown": "쿨다운 상태 알 수 없음",
+ "cooldown_models_one": "{{count}}개 모델 쿨다운 중",
+ "cooldown_models_other": "{{count}}개 모델 쿨다운 중",
+ "cooldown_credential": "자격 증명 전체 쿨다운",
+ "cooldown_credential_and_models_one": "자격 증명 및 {{count}}개 모델 쿨다운 중",
+ "cooldown_credential_and_models_other": "자격 증명 및 {{count}}개 모델 쿨다운 중",
+ "cooldown_scope_credential": "전체 자격 증명",
+ "cooldown_earliest": "가장 빠른 종료까지 약 {{time}}",
+ "cooldown_elapsed": "쿨다운 타이머 만료됨",
+ "cooldown_timer_elapsed": "타이머 만료됨",
+ "cooldown_refresh_hint": "목록을 새로 고쳐 확인하세요",
+ "cooldown_seconds": "{{count}}초",
+ "cooldown_minutes": "{{count}}분",
+ "cooldown_hours": "{{count}}시간",
+ "cooldown_http_status": "업스트림 HTTP {{status}}",
+ "cooldown_backoff": "백오프 레벨 {{level}}",
+ "cooldown_deadline": "타이머 만료 시각",
+ "cooldown_observed": "스냅샷 시각",
+ "cooldown_note": "로컬 스케줄링 스냅샷이며 남은 시간은 추정치입니다. 만료가 가용성, 할당량 복구 또는 자동 재시도를 보장하지는 않습니다. 모델 이름은 내부 상태 키이며 백오프 레벨은 실패 횟수가 아닙니다.",
+ "cooldown_reset_button": "쿨다운 해제",
+ "cooldown_reset_hint": "이 자격 증명의 로컬 라우팅 쿨다운을 해제합니다",
+ "cooldown_reset_title": "자격 증명 쿨다운을 해제하시겠습니까?",
+ "cooldown_reset_confirm": "“{{name}}”의 로컬 라우팅 쿨다운을 해제하시겠습니까? 해제 시 이 자격 증명이 즉시 다른 요청에 사용될 수 있습니다. 업스트림 할당량은 복구되지 않습니다.",
+ "cooldown_reset_success": "{{name}}의 쿨다운을 해제했습니다.",
+ "cooldown_reset_failed": "{{name}}의 쿨다운을 해제할 수 없습니다: {{message}}",
+ "cooldown_reason_quota": "할당량 제한",
+ "cooldown_reason_credential_quota": "자격 증명 할당량 제한",
+ "cooldown_reason_cloudflare_challenge": "Cloudflare 챌린지",
+ "cooldown_reason_invalid_grant": "유효하지 않은 권한 부여",
+ "cooldown_reason_unauthorized": "권한 없음",
+ "cooldown_reason_payment_required": "접근 제한됨 (402/403, 결제 진단 결과 아님)",
+ "cooldown_reason_not_found": "리소스를 찾을 수 없음",
+ "cooldown_reason_model_not_supported": "지원되지 않는 모델",
+ "cooldown_reason_transient_error": "일시적인 업스트림 오류",
+ "cooldown_reason_unknown": "기타 또는 알 수 없는 이유",
+ "health_status_label": "상태",
+ "health_status_healthy": "정상",
+ "health_status_warning": "경고",
+ "health_status_disabled": "비활성화됨",
+ "download_button": "다운로드",
+ "refresh_all_button": "모든 자격 증명 새로 고침",
+ "refresh_all_confirm": "현재 필터링된 결과뿐만 아니라 서버의 적격한 모든 자격 증명을 새로 고칩니다. 백엔드는 비활성화되었거나 자격이 없는 자격 증명을 건너뜁니다. 이 작업은 목록을 다시 로드하거나 할당량을 초기화하지 않으며 몇 분 정도 걸릴 수 있습니다. 계속하시겠습니까?",
+ "refresh_all_results": "자격 증명 새로 고침 결과",
+ "refresh_all_summary": "{{success}}개 새로 고침 완료, {{failed}}개 실패.",
+ "refresh_all_empty": "새로 고침할 수 있는 적격 자격 증명이 없습니다.",
+ "refresh_all_failed": "전체 새로 고침 결과를 가져오지 못했습니다: {{message}}. 일부 자격 증명은 이미 새로 고쳐졌을 수 있습니다. 재시도하기 전에 목록을 확인하세요.",
+ "refresh_result_success": "새로 고침 완료",
+ "refresh_result_failed": "새로 고침 실패",
+ "manual_refresh_button": "OAuth 자격 증명 새로 고침",
+ "manual_refresh_requested": "\"{{name}}\" 자격 증명 새로 고침을 요청했습니다",
+ "manual_refresh_failed": "\"{{name}}\" 자격 증명 새로 고침 요청에 실패했습니다: {{message}}",
+ "delete_button": "삭제",
+ "delete_confirm": "정말 다음 파일을 삭제하시겠습니까:",
+ "delete_all_confirm": "모든 인증 파일을 삭제하시겠습니까? 이 작업은 취소할 수 없습니다!",
+ "delete_filtered_confirm": "모든 {{type}} 인증 파일을 삭제하시겠습니까? 이 작업은 취소할 수 없습니다!",
+ "delete_problem_button": "문제 파일 삭제",
+ "delete_problem_button_with_type": "문제가 있는 {{type}} 파일 삭제",
+ "delete_problem_confirm": "문제가 있는 모든 인증 파일을 삭제하시겠습니까? 이 작업은 취소할 수 없습니다!",
+ "delete_problem_filtered_confirm": "문제가 있는 모든 {{type}} 인증 파일을 삭제하시겠습니까? 이 작업은 취소할 수 없습니다!",
+ "delete_filtered_result_button": "필터링된 결과 삭제",
+ "delete_filtered_result_confirm": "현재 필터링된 결과의 인증 파일을 삭제하시겠습니까? 이 작업은 취소할 수 없습니다!",
+ "upload_error_json": "JSON 파일만 업로드할 수 있습니다",
+ "upload_error_size": "파일 크기는 {{maxSize}}을(를) 초과할 수 없습니다",
+ "upload_success": "파일을 성공적으로 업로드했습니다",
+ "download_success": "파일을 성공적으로 다운로드했습니다",
+ "delete_success": "파일을 성공적으로 삭제했습니다",
+ "delete_all_success": "성공적으로 삭제했습니다",
+ "delete_filtered_success": "{{type}} 인증 파일 {{count}}개를 성공적으로 삭제했습니다",
+ "delete_filtered_partial": "{{type}} 인증 파일 삭제 완료: 성공 {{success}}개, 실패 {{failed}}개",
+ "delete_filtered_none": "현재 필터({{type}})에서 삭제할 수 있는 인증 파일이 없습니다",
+ "delete_problem_success": "문제가 있는 인증 파일 {{count}}개를 성공적으로 삭제했습니다",
+ "delete_problem_filtered_success": "문제가 있는 {{type}} 인증 파일 {{count}}개를 성공적으로 삭제했습니다",
+ "delete_problem_partial": "문제가 있는 인증 파일 삭제 완료: 성공 {{success}}개, 실패 {{failed}}개",
+ "delete_problem_filtered_partial": "문제가 있는 {{type}} 인증 파일 삭제 완료: 성공 {{success}}개, 실패 {{failed}}개",
+ "delete_problem_none": "현재 필터에서 삭제할 수 있는 문제가 있는 인증 파일이 없습니다",
+ "delete_problem_filtered_none": "현재 필터({{type}})에서 삭제할 수 있는 문제가 있는 인증 파일이 없습니다",
+ "delete_filtered_result_success": "필터링된 결과에서 인증 파일 {{count}}개를 성공적으로 삭제했습니다",
+ "delete_filtered_result_partial": "필터링된 결과 삭제 완료: 성공 {{success}}개, 실패 {{failed}}개",
+ "delete_filtered_result_none": "현재 필터링된 결과에 삭제할 수 있는 인증 파일이 없습니다",
+ "pagination_prev": "이전",
+ "pagination_next": "다음",
+ "pagination_info": "{{current}} / {{total}} 페이지 · {{count}}개 파일",
+ "search_label": "이름, 계정, 유형, 공급자 또는 오류 메시지로 자격 증명 검색",
+ "search_placeholder": "이름, 계정, 유형, 공급자 또는 오류(403, 429, invalid) 검색. 와일드카드로 * 사용 가능",
+ "problem_filter_label": "상태 필터",
+ "problem_filter_all": "전체",
+ "problem_filter_enabled": "활성화",
+ "problem_filter_problem": "문제",
+ "problem_filter_disabled": "비활성화",
+ "display_options_label": "표시 옵션",
+ "compact_mode_label": "컴팩트 모드",
+ "sort_label": "정렬",
+ "sort_default": "기본",
+ "sort_az": "이름 (A-Z)",
+ "sort_priority": "우선순위",
+ "priority_display": "우선순위",
+ "weight_display": "WRR 가중치",
+ "page_size_label": "페이지당",
+ "filter_all": "전체",
+ "filter_qwen": "Qwen",
+ "filter_gemini": "Gemini",
+ "filter_kimi": "Kimi",
+ "filter_aistudio": "AIStudio",
+ "filter_claude": "Claude",
+ "filter_codex": "Codex",
+ "filter_meta": "Muse (Meta)",
+ "filter_devin": "Devin",
+ "filter_antigravity": "Antigravity",
+ "filter_xai": "xAI",
+ "filter_iflow": "iFlow",
+ "filter_vertex": "Vertex",
+ "filter_empty": "빈 파일",
+ "filter_unknown": "기타",
+ "type_virtual": "가상 인증 파일",
+ "models_button": "모델",
+ "models_title": "지원되는 모델",
+ "models_loading": "모델 목록을 불러오는 중...",
+ "models_empty": "이 자격 증명에 사용 가능한 모델이 없습니다",
+ "models_empty_desc": "서버에서 아직 이 자격 증명을 로드하지 않았거나 연결된 모델이 없을 수 있습니다.",
+ "models_unsupported": "현재 버전에서는 이 기능을 지원하지 않습니다",
+ "models_unsupported_desc": "CLI Proxy API를 최신 버전으로 업데이트한 후 다시 시도하세요",
+ "models_excluded_badge": "비활성화됨",
+ "models_excluded_hint": "이 OAuth 모델은 비활성화되어 있습니다",
+ "status_toggle_label": "활성화",
+ "status_enabled_success": "\"{{name}}\"을(를) 활성화했습니다",
+ "status_disabled_success": "\"{{name}}\"을(를) 비활성화했습니다",
+ "batch_status_success": "{{count}}개 파일을 성공적으로 업데이트했습니다",
+ "batch_status_partial": "{{success}}개 성공, {{failed}}개 실패",
+ "batch_delete_title": "선택한 파일 삭제",
+ "batch_delete_confirm": "{{count}}개 파일을 삭제하시겠습니까?",
+ "batch_selected": "{{count}}개 선택됨",
+ "batch_toolbar_label": "일괄 작업",
+ "batch_select_all": "전체 선택",
+ "batch_select_page": "현재 페이지 선택",
+ "batch_select_filtered": "필터링된 항목 선택",
+ "batch_invert_page": "현재 페이지 반전",
+ "batch_deselect": "선택 해제",
+ "batch_download": "선택 항목 다운로드",
+ "batch_download_success": "{{count}}개 파일 다운로드를 시작했습니다",
+ "batch_download_partial": "다운로드 완료: {{success}}개 성공, {{failed}}개 실패",
+ "batch_enable": "활성화",
+ "batch_disable": "비활성화",
+ "prefix_proxy_button": "인증 파일 상세 / 편집",
+ "prefix_proxy_loading": "인증 파일 불러오는 중...",
+ "prefix_proxy_info_label": "인증 파일 정보 (info)",
+ "prefix_proxy_source_label": "인증 파일 JSON (미리보기)",
+ "prefix_proxy_invalid_content_label": "다운로드된 내용 (잘림)",
+ "prefix_label": "접두사 (prefix)",
+ "proxy_url_label": "프록시 URL (proxy_url)",
+ "proxy_url_placeholder": "socks5://username:password@proxy_ip:port/",
+ "priority_label": "우선순위 (priority)",
+ "priority_placeholder": "예: 10 또는 -1",
+ "priority_hint": "정수만 지원됩니다. 유효하지 않은 값은 무시됩니다. 값이 클수록 우선순위가 높습니다.",
+ "weight_label": "스케줄링 가중치 (weight)",
+ "weight_tooltip": "기본값은 1입니다. 0 이하의 값은 가중치 스케줄링에서 이 자격 증명을 제외합니다. 최대값은 1,000,000입니다. 값을 입력한 후 가중 라운드 로빈을 활성화해야 적용됩니다.",
+ "weight_hint": "기본값은 1입니다. 0 이하의 값은 가중치 스케줄링에서 이 자격 증명을 제외합니다. 최대값은 1,000,000입니다. 값을 입력한 후
가중 라운드 로빈 을 활성화해야 적용됩니다.",
+ "weight_invalid_integer": "가중치는 정수여야 합니다.",
+ "weight_invalid_max": "가중치는 1,000,000을 초과할 수 없습니다.",
+ "disable_cooling_label": "지수 쿨다운 비활성화 (disable_cooling)",
+ "disable_cooling_hint": "이 자격 증명에 대해서만 실패 쿨다운 및 지수 백오프를 건너뜁니다. 다른 자격 증명에는 영향을 주지 않습니다.",
+ "websockets_label": "WebSockets (websockets)",
+ "websockets_hint": "이 자격 증명에 대해 Responses API WebSocket 전송을 활성화합니다.",
+ "using_api_label": "공식 API 사용 (using_api)",
+ "using_api_hint": "활성화 시 공식 xAI API를 사용하고, 비활성화 시 Grok CLI chat-proxy를 사용합니다.",
+ "policy_alias_name": "별칭",
+ "policy_alias_display_name": "표시 이름",
+ "policy_alias_fork": "목록에 원본 모델 유지",
+ "policy_alias_force_mapping": "응답 모델을 별칭으로 재작성",
+ "policy_unsupported": "기존 데이터는 이 양식으로 편집할 수 없으며 그대로 보존됩니다. 삭제하려면 상속을 선택하거나, 새 목록을 시작하려면 교체하세요.",
+ "policy_replace": "기존 데이터 교체",
+ "policy_retry_label": "자격 증명 요청 재시도",
+ "policy_inherit": "상속",
+ "policy_custom": "사용자 정의",
+ "policy_retry_count": "재시도 횟수",
+ "policy_retry_hint": "상속은 전역 request-retry 설정을 사용합니다. 사용자 정의 0은 이 자격 증명에 대한 요청 재시도를 명시적으로 비활성화합니다.",
+ "policy_aliases_label": "계정 모델 별칭",
+ "policy_aliases_hint": "계정 별칭이 먼저 확인되며, 일치하지 않는 별칭은 채널 별칭으로 폴백됩니다. 상속 또는 빈 목록은 계정 별칭만 삭제합니다.",
+ "policy_rules_label": "계정 오류 규칙",
+ "policy_rules_hint": "사용자 정의 규칙은 목록 순서대로 우선 적용됩니다. 상속 또는 빈 목록은 상속된 규칙을 사용하며 규칙을 비활성화하지는 않습니다. 정규식 패턴은 Go 구문을 사용합니다.",
+ "policy_retry_invalid": "0 이상의 안전한 정수를 입력하거나 상속을 선택하세요.",
+ "policy_aliases_invalid": "새로 추가하거나 수정한 각 행에 비어 있지 않은 모델 이름과 별칭을 입력하세요.",
+ "policy_rules_invalid": "수정된 각 규칙에 양수 상태 코드, 동작 및 하나 이상의 비어 있지 않은 일치 조건을 입력하세요.",
+ "note_label": "메모",
+ "note_placeholder": "메모를 입력하세요(예: John의 계정)",
+ "note_hint": "선택 사항입니다. 이 자격 증명의 용도나 소유자를 설명하는 데 사용되며, 생략하려면 비워 두세요.",
+ "excluded_models_label": "제외 모델 (excluded_models)",
+ "headers_label": "사용자 정의 헤더 (headers)",
+ "headers_placeholder": "{\n \"Header-Name\": \"value\"\n}",
+ "headers_hint": "사용자 정의 HTTP 헤더를 JSON 객체로 입력하세요(예: {\"X-My-Header\": \"value\"}).",
+ "headers_invalid_json": "사용자 정의 헤더는 유효한 JSON이어야 합니다.",
+ "headers_invalid_object": "사용자 정의 헤더는 JSON 객체여야 합니다.",
+ "headers_invalid_value": "각 사용자 정의 헤더 값은 문자열이어야 합니다.",
+ "prefix_proxy_invalid_json": "이 인증 파일은 JSON 객체가 아니므로 필드를 편집할 수 없습니다.",
+ "prefix_proxy_html_challenge": "다운로드된 내용이 인증 JSON 객체가 아닌 HTML 챌린지 페이지입니다. 필드를 편집하기 전에 다시 인증하거나 이 인증 파일을 교체하세요.",
+ "prefix_proxy_saved_success": "인증 파일 \"{{name}}\"을(를) 성공적으로 업데이트했습니다",
+ "quota_refresh_single": "할당량 새로 고침",
+ "quota_refresh_hint": "이 자격 증명의 할당량만 새로 고침합니다",
+ "quota_refresh_success": "\"{{name}}\"의 할당량을 새로 고쳤습니다",
+ "quota_refresh_failed": "\"{{name}}\"의 할당량 새로 고침 실패: {{message}}",
+ "meta_accounts_one": "{{count}} account",
+ "refresh_status": "Refresh status",
+ "connect_account": "Connect account",
+ "row_status_active": "Active",
+ "row_status_problem": "Needs attention",
+ "row_status_disabled": "Disabled",
+ "meta_accounts_other": "{{count}} accounts",
+ "advanced_section": "Advanced",
+ "meta_problem_one": "{{count}} needs attention",
+ "meta_problem_other": "{{count}} need attention"
+ },
+ "antigravity_subscription": {
+ "plan_unknown": "알 수 없음",
+ "plan_free": "Free",
+ "plan_pro": "Pro",
+ "plan_ultra": "Ultra",
+ "plan_ultra_lite": "Ultra Lite"
+ },
+ "antigravity_quota": {
+ "title": "Antigravity 할당량",
+ "empty_title": "Antigravity 인증 파일 없음",
+ "empty_desc": "남은 할당량을 확인하려면 Antigravity 자격 증명을 업로드하세요.",
+ "idle": "할당량을 새로 고치려면 여기를 클릭하세요",
+ "loading": "할당량 불러오는 중...",
+ "load_failed": "할당량 불러오기 실패: {{message}}",
+ "missing_auth_index": "인증 파일에 auth_index가 없습니다",
+ "missing_project_id": "Antigravity 자격 증명에 project_id가 없습니다. 프로젝트를 찾으려면 다시 로그인하거나 자격 증명을 새로 고침하세요.",
+ "empty_models": "사용 가능한 할당량 데이터가 없습니다",
+ "plan_label": "플랜",
+ "group_gemini_models": "Gemini 모델",
+ "group_claude_gpt_models": "Claude 및 GPT 모델",
+ "group_models_description": "이 그룹의 모델: {{models}}",
+ "weekly_limit": "주간 한도",
+ "daily_limit": "일일 한도",
+ "five_hour_limit": "5시간 한도",
+ "monthly_limit": "월간 한도",
+ "quota_available": "할당량 사용 가능",
+ "remaining_percent": "{{percent}}% 남음",
+ "refreshes_in": "{{duration}} 후 초기화",
+ "refresh_available": "초기화 가능",
+ "duration_day_hour": "{{days}}일 {{hours}}시간",
+ "duration_hour_minute": "{{hours}}시간 {{minutes}}분",
+ "duration_minute": "{{minutes}}분",
+ "duration_less_than_minute": "<1분",
+ "refresh_button": "할당량 새로 고침",
+ "fetch_all": "전체 가져오기"
+ },
+ "plugin_quota": {
+ "empty_title": "플러그인 인증 파일 없음",
+ "empty_desc": "남은 할당량을 확인하려면 플러그인 계정을 연결하세요.",
+ "idle": "할당량을 새로 고치려면 여기를 클릭하세요",
+ "loading": "할당량 불러오는 중...",
+ "load_failed": "할당량 불러오기 실패: {{message}}",
+ "missing_auth_index": "인증 파일에 auth_index가 없습니다",
+ "probe_unsupported": "v8 관리 API에서는 선언형 할당량 프로브(quota_probe)를 지원하지 않습니다",
+ "plugin_not_found": "{{provider}}의 할당량을 제공하는 활성 플러그인을 찾을 수 없습니다",
+ "empty_data": "사용 가능한 할당량 데이터가 없습니다",
+ "plan_label": "플랜",
+ "remaining_percent": "{{percent}}% 남음"
+ },
+ "claude_quota": {
+ "title": "Claude 할당량",
+ "empty_title": "Claude OAuth 인증 파일 없음",
+ "empty_desc": "할당량을 확인하려면 Claude OAuth로 로그인하세요.",
+ "idle": "할당량을 새로 고치려면 여기를 클릭하세요",
+ "loading": "할당량 불러오는 중...",
+ "load_failed": "할당량 불러오기 실패: {{message}}",
+ "missing_auth_index": "인증 파일에 auth_index가 없습니다",
+ "empty_windows": "사용 가능한 할당량 데이터가 없습니다",
+ "refresh_button": "할당량 새로 고침",
+ "fetch_all": "전체 가져오기",
+ "five_hour": "5시간 한도",
+ "seven_day": "7일 한도",
+ "seven_day_oauth_apps": "7일 OAuth 앱",
+ "seven_day_opus": "7일 Opus",
+ "seven_day_sonnet": "7일 Sonnet",
+ "seven_day_cowork": "7일 Cowork",
+ "iguana_necktie": "Iguana Necktie",
+ "seven_day_fable": "7일 Fable 5",
+ "cloud_session_credits": "클라우드 세션 크레딧",
+ "extra_usage_label": "추가 사용량",
+ "plan_label": "플랜",
+ "plan_unknown": "알 수 없음",
+ "plan_free": "Free",
+ "plan_pro": "Pro",
+ "plan_max": "Max",
+ "plan_max5": "Max 5x",
+ "plan_max20": "Max 20x",
+ "plan_team": "Team"
+ },
+ "codex_quota": {
+ "title": "Codex 할당량",
+ "empty_title": "Codex 인증 파일 없음",
+ "empty_desc": "할당량을 확인하려면 Codex 자격 증명을 업로드하세요.",
+ "idle": "할당량을 새로 고치려면 여기를 클릭하세요",
+ "loading": "할당량 불러오는 중...",
+ "load_failed": "할당량 불러오기 실패: {{message}}",
+ "missing_auth_index": "인증 파일에 auth_index가 없습니다",
+ "missing_account_id": "Codex 자격 증명에 ChatGPT 계정 ID가 없습니다",
+ "empty_windows": "사용 가능한 할당량 데이터가 없습니다",
+ "no_access": "이 자격 증명에는 Codex 접근 권한이 없습니다(플랜: Free).",
+ "refresh_button": "할당량 새로 고침",
+ "fetch_all": "전체 가져오기",
+ "primary_window": "5시간 한도",
+ "secondary_window": "주간 한도",
+ "team_secondary_window": "월간 한도",
+ "code_review_primary_window": "코드 리뷰 5시간 한도",
+ "code_review_secondary_window": "코드 리뷰 주간 한도",
+ "code_review_team_secondary_window": "코드 리뷰 월간 한도",
+ "additional_primary_window": "{{name}} 5시간 한도",
+ "additional_secondary_window": "{{name}} 주간 한도",
+ "additional_team_secondary_window": "{{name}} 월간 한도",
+ "plan_label": "플랜",
+ "expires_label": "갱신 시간",
+ "credit_balance_label": "크레딧 잔액",
+ "credit_unlimited": "무제한",
+ "reset_credits_label": "수동 초기화 횟수",
+ "reset_credits_expiry_label": "수동 초기화 만료 시각 ({{timezone}})",
+ "reset_credit_number": "초기화 {{index}}",
+ "reset_credits_expiry_failed": "수동 초기화 만료 시간을 불러오지 못했습니다: {{message}}",
+ "reset_credits_invalid_payload": "수동 초기화 만료 시간 응답이 올바르지 않습니다.",
+ "reset_button": "할당량 초기화",
+ "reset_confirm_title": "Codex 할당량 초기화",
+ "reset_confirm_message": "수동 초기화 1회를 소모하여 \"{{name}}\"의 Codex 할당량을 초기화합니다. 계속하시겠습니까?",
+ "reset_confirm_button": "할당량 초기화",
+ "reset_not_confirmed": "할당량 초기화가 확인되지 않았습니다. 할당량을 새로 고친 후 다시 시도하세요.",
+ "reset_cooldown_failed": "할당량은 초기화되었지만 게이트웨이 쿨다운을 해제하지 못했습니다. 기존 연결의 자격 증명 페이지에서 '쿨다운 해제'를 사용하고, 추가로 초기화를 사용하지 마세요.",
+ "reset_success": "\"{{name}}\"의 Codex 할당량을 초기화했습니다.",
+ "reset_failed": "\"{{name}}\"의 Codex 할당량 초기화 실패: {{message}}",
+ "plan_plus": "Plus",
+ "plan_team": "Team",
+ "plan_free": "Free",
+ "plan_pro": "Pro 200",
+ "plan_prolite": "Pro 100",
+ "plan_business_premium": "Business Premium"
+ },
+ "devin_quota": {
+ "daily": "일일 잔여 할당량",
+ "weekly": "주간 잔여 할당량",
+ "plan_label": "플랜",
+ "plan_end": "구독 만료",
+ "unavailable": "정보 없음",
+ "reset_unknown": "초기화 시간 정보 없음",
+ "observed_at": "할당량 확인 시각: {{time}}",
+ "observed_unknown": "할당량 확인 시간 정보 없음",
+ "missing_identity": "자격 증명 이름 또는 인증 인덱스가 누락되었습니다. 자격 증명 목록을 다시 불러오세요.",
+ "stale_request": "연결 또는 자격 증명이 변경되었습니다. 다시 시도해 주세요.",
+ "empty_data": "Devin에서 사용할 수 있는 할당량 데이터를 반환하지 않았습니다.",
+ "loading": "Devin 할당량 조회 중…",
+ "idle": "클릭하여 Devin 할당량 조회",
+ "load_failed": "할당량 조회 실패: {{message}}",
+ "empty_title": "Devin 자격 증명 없음",
+ "empty_desc": "Devin 자격 증명 파일을 업로드하거나 백엔드 CLI로 로그인하여 할당량을 조회하세요."
+ },
+ "meta_quota": {
+ "title": "Muse (Meta) 할당량",
+ "empty_title": "Muse 자격 증명 없음",
+ "empty_desc": "Muse OAuth로 로그인하거나 Meta 자격 증명 파일을 업로드하여 할당량을 조회하세요.",
+ "idle": "클릭하여 Muse 할당량 조회",
+ "loading": "Muse 할당량 조회 중…",
+ "load_failed": "할당량 조회 실패: {{message}}",
+ "missing_auth_index": "인증 파일에 auth_index가 없습니다.",
+ "empty_data": "할당량을 알 수 없습니다. 아직 모델 요청을 보내지 않았을 수 있습니다.",
+ "invalid_response": "Muse에서 유효하지 않은 할당량 응답을 반환했습니다.",
+ "request_failed": "Muse 할당량 요청에 실패했습니다. DCA 자격 증명이 유효한지 확인하세요.",
+ "missing_file": "할당량을 조회하려면 다운로드 가능한 Meta 인증 파일이 필요합니다.",
+ "missing_dca_token": "인증 파일에 유효한 dca_token이 없습니다. Muse OAuth로 다시 로그인하세요.",
+ "invalid_auth_file": "다운로드한 인증 파일이 유효한 JSON이 아닙니다.",
+ "download_failed": "할당량 조회를 위한 인증 파일을 다운로드할 수 없습니다.",
+ "stale_request": "연결 또는 자격 증명이 변경되었습니다. 다시 시도해 주세요.",
+ "plan": "플랜",
+ "active": "구독 활성",
+ "inactive": "구독 비활성",
+ "window": "사용 주기",
+ "window_duration": "{{minutes}}분 주기",
+ "weekly": "주간 할당량",
+ "unknown": "알 수 없음",
+ "remaining": "{{percent}}% 남음"
+ },
+ "kimi_quota": {
+ "title": "Kimi 할당량",
+ "empty_title": "Kimi 인증 파일 없음",
+ "empty_desc": "남은 할당량을 확인하려면 Kimi 자격 증명을 업로드하세요.",
+ "domain_unavailable": "Kimi 자격 증명의 도메인을 읽을 수 없습니다. 다운로드 가능한 유효한 인증 파일이 필요합니다.",
+ "stale_request": "연결 또는 자격 증명이 변경되었습니다. 다시 시도해 주세요.",
+ "idle": "할당량을 새로 고치려면 여기를 클릭하세요",
+ "loading": "할당량 불러오는 중...",
+ "load_failed": "할당량을 불러오지 못했습니다: {{message}}",
+ "missing_auth_index": "인증 파일에 auth_index가 없습니다.",
+ "empty_data": "할당량 데이터가 없습니다.",
+ "refresh_button": "할당량 새로 고침",
+ "fetch_all": "모두 가져오기",
+ "weekly_limit": "주간 한도",
+ "monthly_limit": "월간 한도",
+ "limit_window": "{{duration}} 한도",
+ "limit_index": "한도 #{{index}}",
+ "reset_hint": "{{hint}} 후 초기화"
+ },
+ "xai_quota": {
+ "title": "Grok 할당량",
+ "empty_title": "xAI/Grok 인증 파일 없음",
+ "empty_desc": "xAI OAuth로 로그인하여 Grok 할당량을 확인하세요.",
+ "idle": "할당량을 새로 고치려면 여기를 클릭하세요",
+ "loading": "할당량 불러오는 중...",
+ "load_failed": "할당량을 불러오지 못했습니다: {{message}}",
+ "missing_auth_index": "인증 파일에 auth_index가 없습니다.",
+ "empty_data": "할당량 데이터가 없습니다.",
+ "refresh_button": "할당량 새로 고침",
+ "fetch_all": "모두 가져오기",
+ "weekly_limit": "주간 한도",
+ "monthly_credits": "월간 크레딧",
+ "used_percent": "{{percent}} 사용됨",
+ "usage_unavailable": "xAI에서 사용량 정보를 제공하지 않음",
+ "reset_at": "{{time}} 초기화",
+ "product_usage": "{{product}} 사용량",
+ "usage_breakdown": "사용량 상세 내역 (공유 할당량)",
+ "plan_label": "플랜",
+ "resets_label": "초기화",
+ "prepaid": "선불",
+ "plan_supergrok": "SuperGrok",
+ "plan_supergrok_heavy": "SuperGrok Heavy",
+ "plan_paid": "유료",
+ "paid_health": "유료 API 채팅을 사용할 수 있습니다. xAI는 이 OAuth 자격 증명에 대한 할당량 총합을 제공하지 않습니다.",
+ "pay_as_you_go_label": "종량제",
+ "pay_as_you_go_enabled": "활성화됨, 한도 {{cap}}",
+ "pay_as_you_go_disabled": "비활성화됨"
+ },
+ "vertex_import": {
+ "title": "Vertex JSON 로그인",
+ "description": "Google 서비스 계정 JSON을 업로드하여 CLI vertex-import 도우미와 동일한 규칙으로 auth-dir/vertex-
.json에 저장합니다.",
+ "location_label": "리전 (선택 사항)",
+ "location_placeholder": "us-central1",
+ "location_hint": "기본 리전인 us-central1을(를) 사용하려면 비워 두세요.",
+ "file_label": "서비스 계정 키 JSON",
+ "file_hint": "Google Cloud 서비스 계정 키 JSON 파일만 허용됩니다.",
+ "choose_file": "파일 선택",
+ "import_button": "Vertex 자격 증명 가져오기",
+ "file_required": "먼저 .json 자격 증명 파일을 선택하세요.",
+ "success": "Vertex 자격 증명을 성공적으로 가져왔습니다.",
+ "result_title": "자격 증명 저장됨",
+ "result_project": "프로젝트 ID",
+ "result_email": "서비스 계정",
+ "result_location": "리전",
+ "result_file": "저장된 파일",
+ "drop_hint": "JSON 파일을 선택하거나 끌어다 놓으세요",
+ "import_another": "하나 더 가져오기"
+ },
+ "oauth_excluded": {
+ "editor_description": "개별 선택 또는 와일드카드 규칙을 사용하여 공급자가 노출할 모델을 선택합니다.",
+ "models_hint": "목록을 펼쳐 모델을 선택하거나 아래에 와일드카드 규칙을 입력하세요.",
+ "title": "OAuth 모델 비활성화",
+ "description": "공급자별 모델 비활성화가 카드로 표시됩니다. 카드를 클릭하여 수정하거나 삭제하세요. 와일드카드 * 가 지원되며 범위는 인증 파일 필터를 따릅니다.",
+ "add": "비활성화 추가",
+ "add_title": "공급자 모델 비활성화 추가",
+ "edit_title": "{{provider}}의 모델 비활성화 수정",
+ "provider_label": "공급자",
+ "provider_placeholder": "예: codex / openai",
+ "provider_hint": "기본값은 현재 필터입니다. 기존 공급자를 선택하거나 새 이름을 입력하세요.",
+ "models_label": "비활성화할 모델",
+ "save": "저장/업데이트",
+ "save_success": "모델 비활성화가 업데이트되었습니다.",
+ "save_failed": "모델 비활성화 업데이트에 실패했습니다.",
+ "delete": "공급자 삭제",
+ "delete_confirm": "{{provider}}의 모델 비활성화를 삭제하시겠습니까?",
+ "delete_success": "공급자 모델 비활성화가 제거되었습니다.",
+ "delete_failed": "모델 비활성화 삭제에 실패했습니다.",
+ "no_models": "비활성화된 모델이 설정되지 않았습니다.",
+ "model_count": "모델 {{count}}개 비활성화됨",
+ "list_empty_all": "아직 공급자 모델 비활성화 설정이 없습니다. “비활성화 추가”를 클릭하여 생성하세요.",
+ "provider_required": "먼저 공급자를 입력하세요.",
+ "upgrade_required": "현재 CPA 버전에서는 OAuth 모델 비활성화를 지원하지 않습니다. 업그레이드하세요.",
+ "upgrade_required_title": "CLI Proxy API를 업그레이드하세요",
+ "upgrade_required_desc": "현재 서버 버전은 OAuth 모델 비활성화 조회를 지원하지 않습니다. 최신 CPA(CLI Proxy API) 버전으로 업그레이드한 후 다시 시도하세요."
+ },
+ "excluded_models": {
+ "trigger_summary": "{{excluded}}개 제외됨 · {{available}}개 사용 가능",
+ "trigger_summary_rules": "{{n}}개 규칙",
+ "trigger_empty": "제외된 모델 없음",
+ "meter_aria": "전체 {{total}}개 모델 중 {{excluded}}개 제외됨",
+ "search_placeholder": "모델 검색…",
+ "search_aria": "제외할 모델 검색",
+ "list_aria": "모델",
+ "no_results": "“{{query}}”와(과) 일치하는 모델이 없습니다",
+ "catalog_loading": "모델을 불러오는 중…",
+ "catalog_unavailable": "모델 목록을 불러올 수 없지만 규칙은 계속 적용됩니다.",
+ "catalog_error": "모델을 불러오지 못했습니다.",
+ "catalog_retry": "재시도",
+ "catalog_empty": "표시할 모델이 없습니다.",
+ "footer_count": "{{excluded}} / {{total}} 제외됨",
+ "select_all": "모두 제외",
+ "clear": "초기화",
+ "clear_aria": "선택한 모델 초기화(와일드카드 규칙 유지됨)",
+ "badge_wildcard": "규칙 적용",
+ "badge_unknown": "목록에 없음",
+ "wildcard_reason": "규칙 {{rule}}에 의해 일치함",
+ "wildcard_locked": "규칙 {{rule}}에 의해 제외됨: 아래에서 규칙을 수정하세요",
+ "also_wildcard": "규칙 {{rule}}과(와)도 일치함",
+ "chips_more": "+{{n}}개 더보기",
+ "chip_remove": "{{rule}} 제외 취소",
+ "rules_label": "와일드카드 규칙",
+ "rules_placeholder": "한 줄에 규칙 하나씩 입력(예: gpt-5-*)",
+ "rules_hint": "*은(는) 모든 문자와 일치합니다. 대소문자를 구분하지 않습니다.",
+ "rules_match_count": "{{n}}개 모델과 일치",
+ "rules_match_none": "목록의 어떤 모델과도 일치하지 않음",
+ "rules_reserved": "“*”은(는) 공급자 전체를 비활성화합니다. 대신 '비활성화됨' 스위치를 사용하세요"
+ },
+ "oauth_model_alias": {
+ "editor_description": "클라이언트에서 사용할 수 있도록 공급자 모델에 일관된 이름을 지정합니다.",
+ "edit_title": "{{provider}}의 모델 별칭 편집",
+ "mapping_hint": "원본 모델을 선택한 후 클라이언트에서 사용할 별칭을 입력하세요.",
+ "mapping_row": "별칭 매핑 {{number}}",
+ "remove_mapping": "별칭 매핑 {{number}} 삭제",
+ "title": "OAuth 모델 별칭",
+ "add": "별칭 추가",
+ "add_title": "공급자 모델 별칭 추가",
+ "provider_label": "공급자",
+ "provider_placeholder": "예: codex / vertex",
+ "provider_hint": "현재 필터의 공급자가 기본으로 지정됩니다. 기존 공급자를 선택하거나 새 이름을 입력하세요.",
+ "model_source_loading": "모델을 불러오는 중...",
+ "model_source_unsupported": "현재 CPA 버전은 모델 목록 가져오기를 지원하지 않습니다(수동 입력은 가능).",
+ "model_source_loaded": "{{count}}개 모델을 불러왔습니다. '원본 모델 이름' 드롭다운을 사용하거나 직접 값을 입력하세요. 목록을 비운 채로 저장하면 해당 공급자가 삭제됩니다. '원본 유지'를 활성화하면 원본 이름을 유지하면서 별칭을 추가합니다.",
+ "alias_label": "모델 별칭",
+ "alias_name_placeholder": "원본 모델 이름",
+ "alias_placeholder": "별칭(필수)",
+ "duplicate_alias": "이 공급자 내에서 각 별칭은 고유해야 합니다.",
+ "alias_fork_label": "원본 유지",
+ "add_alias": "별칭 추가",
+ "save": "저장/업데이트",
+ "save_success": "모델 별칭이 업데이트되었습니다",
+ "save_failed": "모델 별칭 업데이트에 실패했습니다",
+ "delete": "공급자 삭제",
+ "delete_confirm": "{{provider}}의 모델 별칭을 삭제하시겠습니까?",
+ "delete_link_title": "매핑 연결 해제",
+ "delete_link_confirm": "{{sourceModel}}({{provider}})에서 별칭 {{alias}}(으)로의 매핑 연결을 해제하시겠습니까?",
+ "delete_alias_title": "별칭 삭제",
+ "delete_alias_confirm": "별칭 {{alias}}을(를) 삭제하고 연결된 모든 모델의 매핑을 해제하시겠습니까?",
+ "delete_success": "모델 별칭이 삭제되었습니다",
+ "delete_failed": "모델 별칭 삭제에 실패했습니다",
+ "no_models": "모델 별칭 없음",
+ "model_count": "{{count}}개 별칭",
+ "list_empty_all": "아직 모델 별칭이 없습니다. “별칭 추가”를 사용하여 만들어 보세요.",
+ "chart_title": "전체 매핑 개요",
+ "diagram_providers": "공급자",
+ "diagram_source_models": "원본 모델",
+ "diagram_aliases": "별칭",
+ "diagram_expand": "펼치기",
+ "diagram_collapse": "접기",
+ "diagram_add_alias": "별칭 추가",
+ "diagram_rename": "이름 변경",
+ "diagram_rename_alias_title": "별칭 이름 변경",
+ "diagram_rename_alias_label": "새 별칭 이름",
+ "diagram_rename_placeholder": "별칭 이름을 입력하세요...",
+ "diagram_delete_link": "{{provider}} / {{name}} 연결 해제",
+ "diagram_delete_alias": "별칭 삭제",
+ "diagram_please_enter_alias": "별칭 이름을 입력하세요.",
+ "diagram_alias_exists": "이미 존재하는 별칭입니다.",
+ "diagram_add_alias_title": "별칭 추가",
+ "diagram_add_alias_label": "별칭 이름",
+ "diagram_add_placeholder": "새 별칭 이름을 입력하세요...",
+ "diagram_rename_btn": "이름 변경",
+ "diagram_add_btn": "추가",
+ "diagram_settings": "설정",
+ "diagram_settings_title": "별칭 설정: {{alias}}",
+ "diagram_settings_source_title": "원본 모델 설정",
+ "diagram_settings_empty": "이 별칭에 대한 매핑이 아직 없습니다.",
+ "diagram_tap_hint": "터치 기기: 원본 모델을 탭한 후 별칭을 탭하여 연결하세요.",
+ "view_mode_diagram": "다이어그램",
+ "view_mode_list": "목록",
+ "provider_required": "먼저 공급자를 입력하세요",
+ "upgrade_required": "이 기능은 최신 버전의 CLI Proxy API(CPA)가 필요합니다. 업그레이드하세요.",
+ "upgrade_required_title": "CLI Proxy API를 업그레이드하세요",
+ "upgrade_required_desc": "현재 서버는 OAuth 모델 별칭 API를 지원하지 않습니다. 최신 버전의 CLI Proxy API(CPA)로 업그레이드하세요."
+ },
+ "auth_login": {
+ "devin_oauth_cancel": "Devin 로그인 취소",
+ "devin_oauth_cancelled": "Devin 로그인이 취소되었습니다.",
+ "devin_oauth_cancel_error": "Devin 로그인 취소 실패:",
+ "devin_oauth_retry_hint": "서버가 여전히 인증을 기다리고 있을 수 있습니다. 다시 시작하기 전에 이 로그인을 취소하세요.",
+ "devin_oauth_title": "Devin OAuth",
+ "devin_oauth_button": "Devin 로그인 시작",
+ "devin_oauth_hint": "브라우저 OAuth를 통해 Devin / Cognition에 로그인하여 인증 파일을 저장합니다. CLI Proxy API v7.3.1 이상이 필요하며 5분 이내에 인증을 완료하세요.",
+ "devin_copy_link": "링크 복사",
+ "devin_open_link": "링크 열기",
+ "devin_oauth_status_waiting": "Devin 인증 대기 중...",
+ "devin_oauth_status_success": "Devin 인증에 성공했습니다!",
+ "devin_oauth_status_error": "Devin 인증 실패:",
+ "devin_oauth_start_error": "Devin OAuth 시작 실패:",
+ "devin_callback_hint": "원격 서버: 루프백 페이지에 접속할 수 없더라도 브라우저 주소창에서 /devin/callback?…(으)로 끝나는 최종 전체 URL을 복사하세요. 포트, http/https, code 및 state를 변경하지 않고 유지해야 합니다. 여기에 URL을 제출한 후 인증이 완료될 때까지 기다리세요.",
+ "devin_callback_placeholder": "http://127.0.0.1:/devin/callback?code=...&state=...",
+ "devin_callback_invalid": "state 및 인증 코드 또는 오류가 포함된 완전한 http/https 콜백 URL을 붙여넣으세요.",
+ "devin_callback_state_mismatch": "이 콜백은 현재 Devin 로그인에 해당하지 않습니다. 이전 콜백을 재사용하지 말고 이번 시도의 최종 URL을 사용하세요.",
+ "recommended_provider_section": "추천 공급자",
+ "recommended_provider_badge": "추천 공급자",
+ "other_oauth_providers": "기타 OAuth 공급자",
+ "other_login_methods": "기타 로그인 방식",
+ "codex_oauth_title": "Codex OAuth",
+ "codex_oauth_button": "Codex 로그인 시작",
+ "codex_oauth_hint": "OAuth 흐름을 통해 Codex 서비스에 로그인하여 인증 파일을 자동으로 가져오고 저장합니다.",
+ "codex_open_link": "링크 열기",
+ "codex_copy_link": "링크 복사",
+ "codex_oauth_status_waiting": "인증 대기 중...",
+ "codex_oauth_status_success": "인증에 성공했습니다!",
+ "codex_oauth_status_error": "인증 실패:",
+ "codex_oauth_start_error": "Codex OAuth 시작 실패:",
+ "codex_oauth_polling_error": "인증 상태 확인 실패:",
+ "anthropic_oauth_title": "Anthropic OAuth",
+ "anthropic_oauth_button": "Anthropic 로그인 시작",
+ "anthropic_oauth_hint": "OAuth 흐름을 통해 Anthropic(Claude) 서비스에 로그인하여 인증 파일을 자동으로 가져오고 저장합니다.",
+ "anthropic_open_link": "링크 열기",
+ "anthropic_copy_link": "링크 복사",
+ "anthropic_oauth_status_waiting": "인증 대기 중...",
+ "anthropic_oauth_status_success": "인증에 성공했습니다!",
+ "anthropic_oauth_status_error": "인증 실패:",
+ "anthropic_oauth_start_error": "Anthropic OAuth 시작 실패:",
+ "anthropic_oauth_polling_error": "인증 상태 확인 실패:",
+ "antigravity_oauth_title": "Antigravity OAuth",
+ "antigravity_oauth_button": "Antigravity 로그인 시작",
+ "antigravity_oauth_hint": "OAuth 흐름을 통해 Antigravity(Google 계정) 서비스에 로그인하여 인증 파일을 자동으로 가져오고 저장합니다.",
+ "antigravity_open_link": "링크 열기",
+ "antigravity_copy_link": "링크 복사",
+ "antigravity_oauth_status_waiting": "인증 대기 중...",
+ "antigravity_oauth_status_success": "인증에 성공했습니다!",
+ "antigravity_oauth_status_error": "인증 실패:",
+ "antigravity_oauth_start_error": "Antigravity OAuth 시작 실패:",
+ "antigravity_oauth_polling_error": "인증 상태 확인 실패:",
+ "meta_oauth_title": "Muse (Meta) OAuth",
+ "meta_oauth_button": "Muse로 로그인",
+ "meta_oauth_hint": "인증 링크를 열고 안내가 나타나면 기기 코드를 입력하세요. 인증이 완료되면 인증 파일이 자동으로 저장됩니다.",
+ "meta_open_link": "링크 열기",
+ "meta_copy_link": "링크 복사",
+ "meta_oauth_status_waiting": "인증 대기 중...",
+ "meta_oauth_status_success": "인증에 성공했습니다!",
+ "meta_oauth_status_error": "인증 실패:",
+ "meta_oauth_start_error": "Muse OAuth 시작 실패:",
+ "meta_oauth_polling_error": "인증 상태 확인 실패:",
+ "device_code_label": "기기 코드:",
+ "device_code_copy": "기기 코드 복사",
+ "kimi_ai_oauth_title": "Kimi 글로벌(kimi.ai)",
+ "kimi_ai_oauth_button": "Kimi 글로벌 로그인",
+ "kimi_ai_oauth_hint": "기기 로그인을 통해 kimi.ai 글로벌 계정을 인증합니다. 별도의 kimi-ai 인증 파일이 자동으로 저장됩니다. 중국 계정과 글로벌 계정은 호환되지 않습니다.",
+ "kimi_ai_open_link": "링크 열기",
+ "kimi_ai_copy_link": "링크 복사",
+ "kimi_ai_oauth_status_waiting": "인증 대기 중...",
+ "kimi_ai_oauth_status_success": "인증에 성공했습니다!",
+ "kimi_ai_oauth_status_error": "인증 실패:",
+ "kimi_ai_oauth_start_error": "Kimi 글로벌 로그인 시작 실패:",
+ "kimi_ai_oauth_polling_error": "인증 상태 확인 실패:",
+ "kimi_oauth_title": "Kimi 중국(kimi.com)",
+ "kimi_oauth_button": "Kimi 중국 로그인",
+ "kimi_sign_up_button": "지금 가입하기",
+ "kimi_oauth_hint": "기기 로그인을 통해 kimi.com 중국 계정을 인증합니다. 인증 파일이 자동으로 저장됩니다. 글로벌 계정은 별도의 kimi.ai 로그인을 사용해야 합니다.",
+ "kimi_open_link": "링크 열기",
+ "kimi_copy_link": "링크 복사",
+ "kimi_oauth_status_waiting": "인증 대기 중...",
+ "kimi_oauth_status_success": "인증에 성공했습니다!",
+ "kimi_oauth_status_error": "인증 실패:",
+ "kimi_oauth_start_error": "Kimi OAuth 시작 실패:",
+ "kimi_oauth_polling_error": "인증 상태 확인 실패:",
+ "xai_oauth_title": "xAI OAuth",
+ "xai_oauth_button": "xAI 로그인 시작",
+ "xai_oauth_hint": "OAuth 흐름을 통해 xAI Grok 서비스에 로그인하여 인증 파일을 자동으로 가져오고 저장합니다.",
+ "xai_open_link": "링크 열기",
+ "xai_copy_link": "링크 복사",
+ "xai_oauth_status_waiting": "인증 대기 중...",
+ "xai_oauth_status_success": "인증에 성공했습니다!",
+ "xai_oauth_status_error": "인증 실패:",
+ "xai_oauth_start_error": "xAI OAuth 시작 실패:",
+ "xai_oauth_polling_error": "인증 상태 확인 실패:",
+ "plugin_oauth_title": "{{name}} OAuth",
+ "plugin_oauth_button": "연결",
+ "plugin_oauth_hint": "플러그인 OAuth 흐름을 통해 {{name}}에 로그인하여 인증 파일을 자동으로 가져오고 저장합니다.",
+ "plugin_open_link": "링크 열기",
+ "plugin_copy_link": "링크 복사",
+ "plugin_oauth_status_waiting": "인증 대기 중...",
+ "plugin_oauth_status_success": "인증에 성공했습니다!",
+ "plugin_oauth_status_error": "인증 실패:",
+ "plugin_oauth_start_error": "플러그인 OAuth 시작 실패:",
+ "xai_callback_label": "콜백 URL 또는 코드",
+ "xai_callback_placeholder": "Grok에 표시된 코드 또는 전체 콜백 URL을 붙여넣으세요",
+ "xai_callback_hint": "Grok 페이지에 코드만 표시될 수 있습니다. 해당 코드를 직접 붙여넣으면 앱이 http://127.0.0.1:56121/callback?... 형식으로 자동 제출합니다.",
+ "xai_callback_required": "먼저 Grok에 표시된 코드 또는 전체 콜백 URL을 붙여넣으세요.",
+ "xai_callback_state_missing": "이번 xAI 로그인의 state 값이 없습니다. xAI 로그인을 다시 시작한 후 코드를 제출하세요.",
+ "oauth_callback_label": "콜백 URL",
+ "oauth_callback_placeholder": "http://localhost:1455/auth/callback?code=...&state=...",
+ "oauth_callback_hint": "원격 브라우저 모드: 공급자가 http://localhost:... 로 리디렉션한 후 전체 URL을 복사하여 여기에 제출하세요.",
+ "oauth_callback_button": "콜백 URL 제출",
+ "oauth_callback_required": "먼저 전체 리디렉션 URL을 붙여넣으세요.",
+ "oauth_callback_success": "콜백 URL이 제출되었습니다. 계속해서 인증을 기다려 주세요.",
+ "oauth_callback_error": "콜백 URL 제출 실패:",
+ "oauth_callback_upgrade_hint": "CLI Proxy API를 업데이트하거나 연결을 확인하세요.",
+ "oauth_callback_status_success": "콜백 URL이 제출되었습니다. 인증 대기 중...",
+ "oauth_callback_status_error": "콜백 URL 제출 실패:",
+ "missing_state": "인증 상태 매개변수를 가져올 수 없습니다",
+ "login_another_account": "다른 계정으로 로그인",
+ "view_auth_files": "인증 파일 보기",
+ "iflow_oauth_title": "iFlow OAuth",
+ "iflow_oauth_button": "iFlow 로그인 시작",
+ "iflow_oauth_hint": "OAuth 흐름을 통해 iFlow 서비스에 로그인하여 인증 파일을 자동으로 가져오고 저장합니다.",
+ "iflow_oauth_url_label": "인증 URL:",
+ "iflow_open_link": "링크 열기",
+ "iflow_copy_link": "링크 복사",
+ "iflow_oauth_status_waiting": "인증 대기 중...",
+ "iflow_oauth_status_success": "인증에 성공했습니다!",
+ "iflow_oauth_status_error": "인증 실패:",
+ "iflow_oauth_start_error": "iFlow OAuth 시작 실패:",
+ "iflow_oauth_polling_error": "인증 상태 확인 실패:",
+ "remote_access_disabled": "원격 접속에서는 이 로그인 방식을 사용할 수 없습니다. 로컬(localhost)에서 접속하세요.",
+ "kimi_oauth_name": "Kimi 중국",
+ "kimi_ai_oauth_name": "Kimi 글로벌",
+ "method_device": "기기 코드",
+ "method_browser": "브라우저 로그인",
+ "method_plugin": "플러그인",
+ "tile_waiting": "인증 대기 중",
+ "tile_success": "자격 증명 추가됨",
+ "tile_error": "인증 실패",
+ "meta_providers": "공급자 {{count}}개",
+ "meta_waiting": "{{count}}개 인증 대기 중",
+ "meta_added": "이번 세션에 {{count}}개 추가됨",
+ "step_open_auth_page": "로그인 페이지를 열고 승인하세요",
+ "step_enter_device_code": "로그인 페이지에 이 코드를 입력하세요",
+ "optional_step": "선택",
+ "generating_link": "로그인 링크 생성 중…",
+ "waiting_background_hint": "창을 닫아도 로그인은 계속됩니다",
+ "restart_login": "다시 시작",
+ "success_saved_hint": "자격 증명이 저장되었습니다. 인증 파일에서 관리할 수 있습니다.",
+ "sign_up_prompt": "계정이 없나요?",
+ "copied": "복사됨",
+ "page_title": "Connect account",
+ "page_description": "Sign in to a provider to add its account to the pool.",
+ "back_to_accounts": "Back to accounts"
+ },
+ "stats": {
+ "success": "성공",
+ "failure": "실패"
+ },
+ "status_bar": {
+ "success_short": "✓",
+ "failure_short": "✗",
+ "no_requests": "요청 없음"
+ },
+ "logs": {
+ "preview_too_large": "이 요청 로그는 2 MiB 미리보기 제한을 초과합니다. 다운로드하여 확인하세요.",
+ "read_status_live": "지속 읽기 중",
+ "read_status_paused": "읽기 일시 중지됨",
+ "read_status_catching_up": "밀린 로그 동기화 중",
+ "last_updated": "최근 성공 업데이트: {{time}}",
+ "buffer_scope": "로드된 로그만 검색: {{count}}줄 캐시됨, {{matched}}줄 일치",
+ "buffer_evicted": "이전 로그가 캐시에서 삭제되어 여기에서 검색할 수 없습니다.",
+ "cursor_reset_notice": "로그가 순환되거나 초기화되었습니다. 최신 내용을 다시 로드했습니다.",
+ "history_evicted": "읽던 위치가 더 이상 캐시되지 않습니다. 새 위치를 선택하세요.",
+ "resume_following": "최신 위치로 이동 · 새 줄: {{count}}",
+ "level_filter": "로그 레벨",
+ "all_levels": "모든 레벨",
+ "view_request": "요청 {{id}} 로그 보기",
+ "copy_line": "이 줄 복사",
+ "request_log_missing": "요청 로그를 찾을 수 없습니다: 기록되지 않았거나 정리되었을 수 있습니다. 요청 로깅이 비활성화된 경우 대개 오류 요청 로그만 보관됩니다.",
+ "download_cached": "캐시된 로그 다운로드",
+ "clear_application_confirm": "서버의 애플리케이션 로그를 지우시겠습니까? 요청 로그 파일은 삭제되지 않습니다. 이 작업은 취소할 수 없습니다.",
+ "clear_search": "검색 지우기",
+ "reading_enabled": "지속 읽기",
+ "filter_load_more": "일치하는 로그 더 보기",
+ "title": "로그 뷰어",
+ "refresh_button": "로그 새로 고침",
+ "clear_button": "로그 지우기",
+ "fullscreen_button": "전체 화면",
+ "exit_fullscreen_button": "전체 화면 종료",
+ "download_button": "로그 다운로드",
+ "error_logs_modal_title": "오류 요청 로그",
+ "error_logs_description": "열거나 다운로드할 오류 요청 로그 파일을 선택하세요(요청 로깅이 꺼져 있을 때만 생성됨).",
+ "error_logs_request_log_enabled": "요청 로깅이 활성화되어 있으므로 이 목록은 항상 비어 있습니다. 오류 로그를 보려면 요청 로깅을 비활성화하고 새로 고침하세요.",
+ "error_logs_empty": "오류 요청 로그 파일이 없습니다",
+ "error_logs_load_error": "오류 로그 목록 로드 실패",
+ "error_logs_size": "크기",
+ "error_logs_modified": "최종 수정일",
+ "error_logs_open": "열기",
+ "error_logs_download": "다운로드",
+ "error_log_view_title": "오류 요청 로그 상세",
+ "error_log_open_failed": "오류 로그 열기 실패",
+ "error_log_empty_content": "이 오류 로그는 비어 있습니다",
+ "error_log_copy_success": "오류 로그 내용을 복사했습니다",
+ "error_log_download_success": "오류 로그를 성공적으로 다운로드했습니다",
+ "request_log_download_title": "요청 로그 다운로드",
+ "request_log_download_confirm": "ID {{id}}의 요청 로그를 다운로드하시겠습니까?",
+ "request_log_download_success": "요청 로그를 성공적으로 다운로드했습니다",
+ "empty_title": "표시할 로그 없음",
+ "empty_desc": "\"파일 로깅 활성화\"를 활성화하면 여기에 로그가 표시됩니다",
+ "cpa_file_logging_required": "현재 연결된 런타임은 CPA입니다. 로그를 확인하려면 먼저 파일 로깅을 활성화해야 합니다.",
+ "cpa_file_logging_required_title": "파일 로깅 필요",
+ "cpa_file_logging_required_desc": "CPA는 로컬 로그 파일에서 이 로그 뷰를 읽습니다. 설정에서 logging-to-file을 활성화한 후 새로 고침하세요.",
+ "file_logging_required": "이 로그 엔드포인트에서 파일 로그를 읽으려면 먼저 파일 로깅을 활성화해야 합니다.",
+ "file_logging_required_title": "파일 로깅 필요",
+ "file_logging_required_desc": "이 로그 엔드포인트는 로컬 로그 파일을 읽습니다. 설정에서 logging-to-file을 활성화한 후 새로 고침하세요.",
+ "log_content": "로그 내용",
+ "loading": "로그 로드 중...",
+ "load_error": "로그를 로드하지 못했습니다",
+ "clear_confirm": "모든 로그를 지우시겠습니까? 이 작업은 되돌릴 수 없습니다!",
+ "clear_success": "로그를 성공적으로 지웠습니다",
+ "download_success": "로그를 성공적으로 다운로드했습니다",
+ "auto_refresh": "자동 새로 고침",
+ "load_more_hint": "더 불러오려면 위로 스크롤하세요",
+ "hidden_lines": "숨김: {{count}}줄",
+ "loaded_lines": "로드됨: {{count}}줄",
+ "filtered_lines": "필터링됨: {{count}}줄",
+ "hide_management_logs": "{{prefix}} 로그 숨기기",
+ "show_raw_logs": "원본 로그 표시",
+ "show_raw_logs_hint": "여러 줄을 쉽게 복사할 수 있도록 원본 로그 텍스트를 표시합니다",
+ "search_placeholder": "내용 또는 키워드로 로그 검색",
+ "filter_panel_title": "필터 및 표시",
+ "wrap_lines": "긴 줄 자동 줄바꿈",
+ "filter_panel_expand": "구조화된 필터 펼치기",
+ "filter_panel_collapse": "구조화된 필터 접기",
+ "filter_panel_active_count": "{{count}}개 활성",
+ "filter_method": "메서드",
+ "filter_status": "상태",
+ "filter_path": "경로",
+ "filter_path_empty": "경로 후보 없음",
+ "filter_status_2xx": "2xx",
+ "filter_status_3xx": "3xx",
+ "filter_status_4xx": "4xx",
+ "filter_status_5xx": "5xx",
+ "clear_filters": "필터 초기화",
+ "search_empty_title": "일치하는 로그 없음",
+ "search_empty_desc": "다른 키워드를 시도하거나 필터를 초기화하세요.",
+ "double_click_copy_hint": "더블클릭하여 원본 로그 줄을 복사하세요",
+ "copy_success": "로그를 클립보드에 복사했습니다",
+ "copy_failed": "복사에 실패했습니다"
+ },
+ "config_management": {
+ "title": "설정 패널",
+ "meta_fields": "설정 {{count}}개",
+ "meta_dirty": "저장되지 않음 {{count}}개",
+ "meta_dirty_source": "저장되지 않은 소스 수정 사항",
+ "meta_errors": "유효성 검사 오류 {{count}}개",
+ "meta_synced": "동기화됨",
+ "actions": {
+ "discard": "변경 사항 취소",
+ "save": "변경 사항 저장"
+ },
+ "discard_confirm_message": "저장되지 않은 모든 변경 사항을 취소하고 마지막 서버 버전으로 복원하시겠습니까?",
+ "mode": {
+ "label": "편집기 모드",
+ "visual": "시각",
+ "source": "소스"
+ },
+ "reload": "다시 로드",
+ "reload_confirm_message": "다시 로드하면 저장되지 않은 변경 사항이 취소됩니다. 계속하시겠습니까?",
+ "save": "저장",
+ "status_loading": "설정 로드 중...",
+ "status_loading_short": "로드 중",
+ "status_loaded": "설정 로드됨",
+ "status_loaded_short": "로드됨",
+ "status_dirty": "저장되지 않은 변경 사항",
+ "status_dirty_short": "저장되지 않음",
+ "status_disconnected": "설정을 로드하려면 서버에 연결하세요",
+ "status_disconnected_short": "연결 끊김",
+ "status_load_failed": "로드 실패",
+ "status_load_failed_short": "실패",
+ "status_saving": "설정 저장 중...",
+ "status_saving_short": "저장 중",
+ "save_success": "설정을 성공적으로 저장했습니다",
+ "visual_mode_unavailable": "YAML 구문 오류를 수정하기 전에는 시각 편집기를 사용할 수 없습니다",
+ "visual_mode_unavailable_short": "YAML 오류",
+ "validation_blocked_short": "오류 수정 필요",
+ "visual_mode_unavailable_detail": "설정에 잘못된 YAML이 포함되어 있어 시각 편집기를 사용할 수 없습니다: {{message}}",
+ "visual_mode_save_blocked": "YAML 구문 오류를 수정하기 전에는 시각 모드에서 저장할 수 없습니다",
+ "source_changes_before_visual": "시각 모드로 전환하기 전에 저장되지 않은 소스 수정 사항을 저장하거나 취소하세요.",
+ "precise_save_incomplete": "정밀 저장이 완료되지 않았습니다. 일부 변경 사항이 이미 적용되었을 수 있습니다. 초안은 유지됩니다. 다시 저장하여 남은 서버 차이점을 검토하세요.",
+ "concurrent_list_conflict": "서버 목록 {{path}}이(가) 초안 기준점 이후에 변경되었습니다. 해당 변경 사항을 덮어쓰지 않도록 저장이 차단되었습니다. 초안은 유지됩니다. 수정한 내용을 메모한 후 설정을 다시 로드하여 조정하세요.",
+ "precise_save_recovery_required": "저장 결과를 다시 읽어오지 못했습니다. 편집이 일시 중지되었습니다. 다시 저장하여 초안 기준점을 복구하거나 설정을 다시 로드하세요.",
+ "visual_mode_latest_yaml_invalid": "서버의 최신 설정에 잘못된 YAML이 포함되어 있습니다. 시각적 변경 사항을 저장하기 전에 소스 모드에서 검토하세요: {{message}}",
+ "editor_placeholder": "key: value",
+ "search_placeholder": "설정 검색...",
+ "search_button": "검색",
+ "search_no_results": "결과 없음",
+ "search_prev": "이전",
+ "search_next": "다음",
+ "diff": {
+ "title": "변경 사항 검토",
+ "confirm": "저장 확인",
+ "no_changes": "감지된 변경 사항 없음"
+ },
+ "visual": {
+ "serverExtras": {
+ "trustedProxies": {
+ "label": "신뢰할 수 있는 프록시",
+ "hint": "IP 주소 또는 CIDR입니다. 비워 두면 전달된 헤더를 신뢰하지 않습니다. 모든 주소 범위를 신뢰하면 클라이언트 IP 위조 위험이 있습니다. 백엔드 재시작이 필요합니다."
+ },
+ "discoveryEnabled": {
+ "label": "검색 활성화",
+ "hint": "LAN에서 mDNS / DNS-SD를 통해 브로드캐스트합니다. 기본값은 꺼짐이며, 재시작 없이 변경 사항이 적용됩니다."
+ },
+ "discoveryServiceName": {
+ "label": "서비스 이름 접두사",
+ "hint": "백엔드가 짧은 ID를 덧붙입니다. 비워 두면 CPA-를 사용합니다."
+ },
+ "discoveryServiceType": {
+ "label": "서비스 유형",
+ "hint": "비워 두면 _ai-gateway._tcp를 사용합니다."
+ },
+ "discoverySubtypes": {
+ "label": "프로토콜 하위 유형",
+ "hint": "비워 두면 기본 5가지 프로토콜을 사용합니다. 앞쪽의 _가 누락되면 추가되며, 잘못된 항목은 무시됩니다."
+ },
+ "discoveryInterfacesInclude": {
+ "label": "포함할 인터페이스",
+ "hint": "비워 두면 물리적 LAN 인터페이스를 자동으로 선택합니다. 이름이나 *로 끝나는 접두사 패턴을 사용하세요."
+ },
+ "discoveryInterfacesExclude": {
+ "label": "제외할 인터페이스",
+ "hint": "이름이나 *로 끝나는 접두사 패턴을 사용하세요. 제외 규칙이 포함 규칙보다 우선합니다."
+ },
+ "discoveryAuthRequired": {
+ "label": "인증 요구 사항 알림",
+ "hint": "기본값은 켜짐입니다. 메타데이터만 브로드캐스트하며 실제 API 인증은 변경하지 않습니다."
+ },
+ "discoveryAdvertiseManagement": {
+ "label": "관리 서비스 알림",
+ "hint": "기본값은 꺼짐입니다. 관리 서비스가 있음을 알리기만 하며 원격 액세스 권한은 변경하지 않습니다."
+ },
+ "discoveryTitle": "LAN 검색",
+ "discoveryHint": "멀티캐스트를 지원하는 물리적 인터페이스와 루프백이 아닌 수신 대기 주소가 필요합니다. Docker는 일반적으로 호스트 네트워킹이 필요하며 연결 가능성이 보장되지 않습니다."
+ },
+ "additions": {
+ "oauthTitle": "OAuth 공급자 동작",
+ "oauthHint": "이 공급자 설정은 OAuth/파일 기반 자격 증명에만 적용되며, API 키 자격 증명에는 적용되지 않습니다.",
+ "claudeTitle": "Claude",
+ "codexTitle": "Codex",
+ "antigravityTitle": "Antigravity",
+ "xaiTitle": "xAI",
+ "liveRelayTitle": "Codex Live 미디어 릴레이",
+ "liveRelayHint": "프록시 프로세스에서 WebRTC 오디오 및 DataChannel 트래픽을 릴레이합니다. 인바운드 UDP에 연결할 수 있어야 합니다. ICE 자격 증명이 스크린샷이나 로그에 노출되지 않도록 주의하세요.",
+ "iceAdd": "ICE 서버 추가",
+ "iceRemove": "ICE 서버 {{index}} 제거",
+ "iceURLs": "STUN/TURN URL",
+ "iceUsername": "TURN 사용자 이름",
+ "iceCredential": "TURN 비밀번호",
+ "iceServer": "ICE 서버 {{index}}",
+ "routingSessionAffinitySubagents": {
+ "label": "서브에이전트 세션 어피니티",
+ "hint": "기본적으로 활성화되어 있으며 세션 어피니티가 활성화된 경우에만 적용됩니다. 서브에이전트는 캐시를 재사용하기 위해 부모의 자격 증명을 상속합니다. 더 높은 동시성을 위해 자격 증명 풀 전체에 서브에이전트를 분산하려면 비활성화하세요."
+ },
+ "saveCooldownStatus": {
+ "label": "쿨다운 상태 영속화",
+ "hint": "자격 증명별 쿨다운 상태를 인증 파일 옆의 .cds 파일에 저장합니다. 기본값은 비활성화이며, 비활성화 시 상태는 메모리에만 유지됩니다."
+ },
+ "transientErrorCooldownSeconds": {
+ "label": "일시적 오류 쿨다운 (초)",
+ "hint": "업스트림 408/500/502/503/504/520–526 오류에 대한 쿨다운입니다. 0을 입력하면 기본값인 60초가 적용되며, 음수 값은 이 쿨다운을 비활성화합니다."
+ },
+ "videoResultAuthCacheTTL": {
+ "label": "비디오 결과 자격 증명 캐시 TTL",
+ "hint": "비디오 ID가 해당 ID를 생성한 자격 증명에 바인딩된 상태로 유지되는 기간입니다. 30m, 3h와 같은 기간 형식을 사용하며, 기본값은 3h입니다."
+ },
+ "claudeHeaderTimezone": {
+ "label": "폴백 시간대",
+ "hint": "위장된 currentDate에 사용할 IANA 시간대입니다(예: Asia/Singapore, 백엔드 호스트 시간대는 Local). 자격 증명 JSON의 timezone이 우선 적용됩니다."
+ },
+ "claudeModelLevelCooling": {
+ "label": "모델별 쿨다운",
+ "hint": "해당 자격 증명을 공유하는 모든 모델 대신, 요청된 모델에만 Claude 할당량 쿨다운을 적용합니다. 기본값은 비활성화입니다."
+ },
+ "claudeDisableCloakMode": {
+ "label": "요청 위장 비활성화",
+ "hint": "Claude Code CLI 신원 위장 및 시스템 프롬프트 교체를 비활성화하고 원본 시스템 프롬프트를 그대로 전달합니다. 자격 증명 파일에서 cloak_mode로 이를 재정의할 수 있습니다. 기본값: false(Claude Code가 아닌 클라이언트에 대해 자동 위장)."
+ },
+ "claudeCodeDisableCloakingModelList": {
+ "label": "모델 ID 위장 비활성화",
+ "hint": "Anthropic 모델 목록 응답에서 위장된 ID 대신 원본 모델 ID를 반환합니다. 기본값은 비활성화입니다."
+ },
+ "codexDisableCloaking": {
+ "label": "요청 위장 비활성화",
+ "hint": "HTTP/SSE 및 WebSocket 요청에 공식 Codex User-Agent와 Originator 헤더를 강제로 적용하지 않습니다. 기본값은 비활성화입니다."
+ },
+ "codexModelLevelCooling": {
+ "label": "모델별 쿨다운",
+ "hint": "해당 자격 증명을 공유하는 모든 모델 대신, 요청된 모델에만 usage_limit_reached 할당량 쿨다운을 적용합니다. 기본값은 비활성화입니다."
+ },
+ "codexStreamBootstrapBuffering": {
+ "label": "스트림 부트스트랩 버퍼링",
+ "hint": "초기 과부하 또는 속도 제한 거부 시 자격 증명 장애 조치가 가능하도록 초기 빈 이벤트와 하트비트를 대기합니다. 기본값은 비활성화입니다. 응답 헤더가 지연되어 클라이언트 또는 리버스 프록시 타임아웃이 발생할 수 있으며, 버퍼링에는 프레임 및 바이트 예산이 적용됩니다."
+ },
+ "codexStreamBootstrapTimeout": {
+ "label": "스트림 부트스트랩 타임아웃",
+ "hint": "선택적 버퍼링 시간 제한입니다(예: 20s). 기본값: 0(무제한 시간, 프레임 및 바이트 예산은 여전히 적용됨). 업스트림 프레임이 도착할 때 확인되며, 모든 네트워크 지연 상황에 대한 엄격한 마감 시간은 아닙니다. 헤더는 변환된 출력을 기다릴 수 있습니다."
+ },
+ "codexOptimizeMultiAgentV2": {
+ "label": "멀티 에이전트 v2 최적화",
+ "hint": "공식 Codex 멀티 에이전트 요청을 최적화합니다. spawn_agent 모델 세부 정보를 새로 고치고, 메시지 매개변수 암호화를 제거하며, agent_message 콘텐츠를 정규화하고, 비 Codex 프로토콜의 경우 사용자 메시지로 변환합니다. 기본값은 비활성화입니다."
+ },
+ "codexOrphanDelegationCompatibility": {
+ "label": "고아 위임 호환성",
+ "hint": "X-Openai-Subagent: collab_spawn 요청의 경우, 유효한 일치 호출이 없는 고아 codex_app/create_thread 및 codex_app/send_message_to_thread 출력을 사용자 메시지로 변환합니다. 기본값은 비활성화입니다."
+ },
+ "codexResponseSteering": {
+ "label": "응답 스티어링",
+ "hint": "실험적인 전이중 Codex Responses WebSocket입니다. 각 소켓은 하나의 업스트림 계정 및 모델에 바인딩된 상태를 유지하며, 수락된 입력은 재전송되지 않습니다. 기본값은 비활성화입니다."
+ },
+ "antigravityConnectionPoolEnabled": {
+ "label": "연결 풀링 활성화",
+ "hint": "업스트림 HTTP/1.1 연결을 재사용합니다. 기본값: false(단기 연결)."
+ },
+ "antigravityConnectionPoolIdleTimeout": {
+ "label": "유휴 연결 타임아웃",
+ "hint": "유휴 연결이 풀에 유지되는 기간입니다. 기본값: 30s, 최대 210s. 0 또는 음수 값으로 지정하면 단기 연결로 전환됩니다."
+ },
+ "antigravityConnectionPoolMaxIdleConnsPerHost": {
+ "label": "호스트당 최대 유휴 연결 수",
+ "hint": "자격 증명당 업스트림 호스트별로 유지되는 최대 유휴 연결 수입니다. 기본값: 2, 최대 100. 0은 Go 기본값인 2를 사용하며, 음수 값은 단기 연결로 전환됩니다."
+ },
+ "xaiInjectXSearch": {
+ "label": "x_search 주입",
+ "hint": "요청에 xAI 네이티브 x_search 도구가 없을 때 자동으로 추가하며, 해당하는 경우 tool_choice.allowed_tools에도 포함합니다. 기본값은 비활성화입니다."
+ },
+ "codexLiveMediaRelayEnabled": {
+ "label": "미디어 릴레이 활성화",
+ "hint": "이 프로세스에서 Codex Live WebRTC 미디어를 종단하고 릴레이합니다. 인바운드 UDP 접근성이 필요합니다. 직접 미디어 연결을 유지하기 위해 기본값은 비활성화입니다."
+ },
+ "codexLiveMediaRelayMaxSessions": {
+ "label": "최대 동시 미디어 세션 수",
+ "hint": "비워 두거나 0을 입력하면 기본값인 32개 세션이 사용됩니다. 사용자 지정 UDP 포트 범위는 세션당 최소 2개의 포트를 제공해야 합니다."
+ },
+ "codexLiveMediaRelayDisablePrivateRemoteIPs": {
+ "label": "사설 원격 IP 후보 차단",
+ "hint": "기본값: false(로컬 또는 신뢰할 수 있는 네트워크 클라이언트에 대해 사설 후보를 허용함). 활성화하면 사설, 루프백, 링크 로컬 또는 지정되지 않은 IP를 가리키는 다운스트림 SDP 후보를 거부하여 내부 네트워크 노출을 줄입니다. 로컬 연결이 실패할 수 있습니다."
+ },
+ "codexLiveMediaRelayPublicIP": {
+ "label": "통보할 공인 IP",
+ "hint": "프록시가 1:1 NAT 뒤에 있을 때 통보할 선택적 공인 IPv4 또는 IPv6 주소입니다. 호스트 이름이 아닌 IP 주소를 입력하세요."
+ },
+ "codexLiveMediaRelayUDPPortMin": {
+ "label": "최소 UDP 포트",
+ "hint": "시스템에 할당을 맡기려면 두 UDP 경계값을 모두 0으로 설정하거나, 포트 수가 유효 세션 제한의 최소 2배 이상인 양 끝을 포함하는 연속 범위를 지정하세요."
+ },
+ "codexLiveMediaRelayUDPPortMax": {
+ "label": "최대 UDP 포트",
+ "hint": "최소 포트 이상이어야 합니다. 두 경계값은 모두 0이거나 둘 다 0이 아니어야 합니다. 사용자 지정 범위는 세션당 최소 2개의 포트가 필요합니다(기본 32개 세션의 경우 64개)."
+ },
+ "codexLiveMediaRelayICEServers": {
+ "label": "ICE 서버",
+ "hint": "stun:, stuns:, turn:, turns: URL을 사용하는 선택적 STUN/TURN 서버입니다. TURN 자격 증명은 JSON 설정 API에서 생략됩니다. 자격 증명을 비밀번호로 입력하고 스크린샷이나 로그에 비밀 정보가 노출되지 않도록 주의하세요."
+ }
+ },
+ "search": {
+ "placeholder": "설정 검색 (라벨 또는 YAML 키)",
+ "no_results": "일치하는 설정이 없습니다"
+ },
+ "sections": {
+ "common": {
+ "title": "일반",
+ "description": "전체 섹션과 동일한 데이터를 기반으로 하는 가장 자주 사용하는 설정"
+ },
+ "connectivity": {
+ "title": "접속 및 인증",
+ "description": "서버 주소, 포트, 인증 디렉터리 및 API 키"
+ },
+ "logging": {
+ "title": "로깅 및 진단",
+ "description": "디버그, 로그 출력 및 사용량 통계"
+ },
+ "advanced": {
+ "antigravity_credits": "Antigravity 크레딧 사용",
+ "title": "고급 및 실험",
+ "description": "헤더 위장, 서명 캐시, 플러그인 소스 및 거의 변경되지 않는 기타 설정",
+ "plugins_title": "플러그인",
+ "antigravity_title": "Antigravity",
+ "devin_title": "Devin",
+ "signature_title": "서명 검증"
+ },
+ "server": {
+ "github_token": "전역 GitHub 토큰",
+ "github_token_hint": "패널 업데이트, 플러그인 다운로드 등의 서버 측 GitHub 요청에 사용됩니다. GITHUB_TOKEN보다 우선 적용됩니다. 비워 두면 환경 자격 증명을 사용하며, 설정된 자격 증명이 없으면 인증되지 않은 요청을 수행합니다. 일치하는 플러그인 스토어 인증 규칙이 우선 적용됩니다.",
+ "host": "호스트 주소",
+ "port": "포트"
+ },
+ "tls": {
+ "title": "TLS/SSL 설정",
+ "description": "HTTPS 보안 연결 설정",
+ "enable": "TLS 활성화",
+ "enable_desc": "HTTPS 보안 연결 활성화",
+ "cert": "인증서 파일 경로",
+ "key": "개인 키 파일 경로"
+ },
+ "remote": {
+ "title": "원격 관리",
+ "description": "원격 액세스 및 제어판 설정",
+ "allow_remote": "원격 액세스 허용",
+ "allow_remote_desc": "다른 호스트에서의 관리 액세스 허용",
+ "disable_panel": "제어판 비활성화",
+ "disable_panel_desc": "내장 웹 제어판 비활성화",
+ "disable_auto_update_panel": "패널 자동 업데이트 비활성화",
+ "disable_auto_update_panel_desc": "처음 누락되었을 때는 패널을 다운로드하지만 GitHub에서 자동으로 업데이트하지는 않습니다.",
+ "secret_key": "관리 키",
+ "secret_key_placeholder": "관리 키를 설정하세요",
+ "panel_repo": "패널 저장소"
+ },
+ "auth": {
+ "auth_dir": "OAuth 자격 증명 디렉터리 (oauth.auth-dir)",
+ "auth_dir_hint": "인증 파일 디렉터리 경로 (~ 지원)"
+ },
+ "system": {
+ "debug": "디버그 모드",
+ "debug_desc": "상세 디버그 로깅을 활성화합니다.",
+ "commercial_mode": "상용 모드",
+ "commercial_mode_desc": "높은 동시성을 지원하기 위해 오버헤드가 큰 미들웨어를 비활성화합니다.",
+ "logging_to_file": "파일에 로그 기록",
+ "logging_to_file_desc": "로그를 파일에 저장합니다.",
+ "plugins_enabled": "플러그인 시스템 활성화",
+ "plugins_enabled_desc": "표준 동적 라이브러리 플러그인 로드를 활성화합니다. 개별 플러그인 인스턴스는 플러그인 페이지에서 관리됩니다.",
+ "plugin_store_sources": "서드파티 플러그인 소스",
+ "plugin_store_sources_desc": "플러그인 스토어 레지스트리 소스를 추가합니다. 기본 제공 공식 소스는 항상 유지됩니다.",
+ "plugin_store_sources_label": "플러그인 소스 레지스트리 URL (plugins.store-sources)",
+ "plugin_store_sources_placeholder": "https://example.com/cliproxy-plugins/registry.json",
+ "plugin_store_sources_hint": "한 줄에 하나의 registry.json URL을 입력하세요. 빈 줄은 저장 시 제외됩니다.",
+ "plugin_store_auth": "플러그인 스토어 인증 규칙",
+ "plugin_store_auth_desc": "비공개 레지스트리, GitHub Release 메타데이터 또는 아티팩트 다운로드를 위한 인증 헤더를 설정합니다.",
+ "plugin_store_auth_hint": "실제 토큰이 아닌 환경 변수 이름만 입력하세요. 백엔드가 런타임 환경에서 값을 읽어옵니다.",
+ "store_auth_empty": "구성된 인증 규칙이 없습니다. 공개 플러그인 소스에는 필요하지 않습니다.",
+ "store_auth_rule": "인증 규칙",
+ "store_auth_add": "인증 규칙 추가",
+ "store_auth_match": "일치하는 URL 접두사",
+ "store_auth_type": "인증 유형",
+ "store_auth_apply_to": "적용 대상",
+ "store_auth_apply_to_hint": "선택하지 않으면 모든 요청 유형에 규칙이 적용됩니다.",
+ "store_auth_apply_registry": "Registry",
+ "store_auth_apply_metadata": "Metadata",
+ "store_auth_apply_artifact": "Artifact",
+ "store_auth_type_none": "없음",
+ "store_auth_type_bearer": "Bearer",
+ "store_auth_type_basic": "Basic",
+ "store_auth_type_header": "사용자 정의 헤더",
+ "store_auth_type_github_token": "GitHub 토큰",
+ "store_auth_token_env": "토큰 환경 변수",
+ "store_auth_username_env": "사용자 이름 환경 변수",
+ "store_auth_password_env": "비밀번호 환경 변수",
+ "store_auth_header_name": "헤더 이름",
+ "store_auth_header_value_env": "헤더 값 환경 변수",
+ "store_auth_allow_insecure": "안전하지 않은 HTTP URL 허용",
+ "logs_max_size": "로그 파일 크기 제한 (MB)",
+ "error_logs_max_files": "오류 로그 보관 파일 수",
+ "usage_statistics_enabled": "인메모리 사용량 통계 활성화",
+ "usage_statistics_enabled_desc": "메모리에서 요청 사용량 통계를 집계합니다.",
+ "redis_usage_retention": "Redis 사용량 큐 보존 시간 (초)",
+ "redis_usage_retention_hint": "RESP LPOP/RPOP 사용량 출력을 위한 인메모리 보존 시간으로 최대 3600초입니다.",
+ "antigravity_sensitive_words": "민감한 단어 난독화",
+ "antigravity_sensitive_words_desc": "Antigravity 시스템 지침에서 일치하는 단어에 너비가 0인 문자를 삽입하여 업스트림의 정확한 키워드 일치를 줄입니다.",
+ "antigravity_sensitive_words_label": "OAuth 민감한 단어 (oauth.providers.antigravity.sensitive-words)",
+ "antigravity_sensitive_words_placeholder": "proxy",
+ "antigravity_sensitive_words_hint": "한 줄에 하나의 단어 또는 구문을 입력하세요. 대소문자를 구분하지 않으며, 빈 항목은 제거되고 2자 미만의 항목은 백엔드에서 무시됩니다.",
+ "devin_sensitive_words": "Devin 시스템 프롬프트 민감한 단어",
+ "devin_sensitive_words_desc": "Devin 시스템 프롬프트에서만 설정된 단어가 포함된 전체 줄을 제거하고, 남은 시스템 프롬프트는 난독화됩니다. 일반 메시지와 도구 인수는 변경되지 않습니다.",
+ "devin_sensitive_words_label": "OAuth 민감한 단어 (oauth.providers.devin.sensitive-words)",
+ "devin_sensitive_words_placeholder": "민감한 구문",
+ "devin_sensitive_words_hint": "한 줄에 하나의 단어 또는 구문을 입력하세요. 일치하는 내용이 있으면 시스템 프롬프트의 해당 줄 전체가 삭제되므로 주의하여 설정하세요. 저장 시 빈 항목은 제거됩니다.",
+ "antigravity_signature_cache": "Antigravity 서명 캐시 활성화",
+ "antigravity_signature_cache_desc": "캐시된 사고 블록 서명을 우선 사용하고 검증합니다.",
+ "antigravity_signature_strict": "엄격한 바이패스 서명 검증",
+ "antigravity_signature_strict_desc": "서명 캐시가 비활성화된 경우에만 적용되며, 전체 Claude protobuf 트리를 검증합니다."
+ },
+ "headers": {
+ "title": "헤더 기본값",
+ "description": "클라이언트에서 생략된 경우 Claude 및 Codex OAuth 요청에 사용할 기본 헤더입니다.",
+ "claude_title": "Claude OAuth 헤더 기본값",
+ "codex_title": "Codex OAuth 헤더 기본값",
+ "user_agent": "User-Agent",
+ "package_version": "Package Version",
+ "runtime_version": "Runtime Version",
+ "os": "OS",
+ "arch": "Arch",
+ "timeout": "Timeout",
+ "stabilize_device": "기기 프로필 안정화",
+ "stabilize_device_desc": "자격 증명/API 키별로 OS/Arch를 고정하고 소프트웨어 지문을 안정화합니다.",
+ "beta_features": "Beta Features"
+ },
+ "network": {
+ "title": "네트워크 설정",
+ "description": "프록시, 재시도 및 라우팅 설정",
+ "proxy_url": "프록시 URL",
+ "proxy_url_sponsor_hint": "적합한 프록시가 없나요?",
+ "request_retry": "요청 재시도 횟수",
+ "max_retry_credentials": "최대 재시도 자격 증명 수",
+ "max_retry_credentials_hint": "설정하지 않으려면 비워 두세요. 사용 가능한 모든 자격 증명을 시도하려면 0 또는 음의 정수를 입력하세요.",
+ "max_retry_interval": "최대 재시도 간격(초)",
+ "max_retry_interval_hint": "재시도 라운드 간 쿨다운 대기를 건너뛰려면 0 또는 음의 정수를 입력하세요.",
+ "auth_auto_refresh_workers": "인증 자동 새로 고침 워커 수",
+ "auth_auto_refresh_workers_hint": "양의 정수는 워커 수를 재정의하며, 0, 음의 정수 또는 빈 필드는 기본값(16)을 사용합니다.",
+ "disable_image_generation": "이미지 생성 비활성화",
+ "disable_image_generation_hint": "false는 활성화, true는 모든 이미지 생성 비활성화, chat은 비이미지 엔드포인트 주입 비활성화, passthrough는 주입 없이 클라이언트 도구 목록을 유지합니다.",
+ "disable_image_generation_false": "false (활성화)",
+ "disable_image_generation_true": "true (모두 비활성화)",
+ "disable_image_generation_chat": "chat (채팅 주입만 비활성화)",
+ "disable_image_generation_passthrough": "passthrough (클라이언트 도구 목록 유지)",
+ "gpt_image_2_base_model": "GPT Image 2 기본 모델",
+ "gpt_image_2_base_model_hint": "gpt-image-2 이미지 요청을 프록시할 때 사용하는 메인라인 모델입니다. 비어 있거나 유효하지 않으면 백엔드 기본값을 사용합니다.",
+ "routing_strategy": "라우팅 전략",
+ "routing_strategy_hint": "자격 증명 선택 전략을 선택하세요",
+ "strategy_round_robin": "라운드 로빈",
+ "strategy_weighted_round_robin": "가중 라운드 로빈",
+ "strategy_fill_first": "채우기 우선",
+ "session_affinity_ttl": "세션 어피니티 TTL",
+ "force_model_prefix": "모델 접두사 강제",
+ "force_model_prefix_desc": "접두사가 없는 모델 요청은 접두사가 없는 자격 증명만 사용합니다.",
+ "passthrough_headers": "업스트림 헤더 전달",
+ "passthrough_headers_desc": "필터링된 업스트림 응답 헤더를 다운스트림 클라이언트에 전달합니다.",
+ "disable_cooling": "쿨다운 비활성화",
+ "disable_cooling_desc": "실패 후 인증/모델 쿨다운 기간을 전역적으로 비활성화합니다.",
+ "session_affinity": "세션 어피니티 라우팅",
+ "ws_auth": "WebSocket 인증",
+ "ws_auth_desc": "AI Studio WebSocket 연결에 인증을 요구합니다 (oauth.providers.aistudio.ws-auth)"
+ },
+ "streaming": {
+ "title": "스트리밍 설정",
+ "description": "Keepalive 및 부트스트랩 재시도 설정",
+ "keepalive_seconds": "Keepalive 시간(초)",
+ "keepalive_hint": "keepalive를 비활성화하려면 0, 음의 정수로 설정하거나 비워 두세요.",
+ "bootstrap_retries": "부트스트랩 재시도 횟수",
+ "bootstrap_hint": "첫 번째 바이트 전의 재시도 횟수입니다. 0, 음의 정수 또는 빈 필드는 부트스트랩 재시도를 비활성화합니다.",
+ "nonstream_keepalive": "비스트리밍 Keepalive 간격(초)",
+ "nonstream_keepalive_hint": "비스트리밍 응답 시 N초마다 빈 줄을 전송합니다. 0, 음의 정수 또는 빈 필드는 keepalive를 비활성화합니다.",
+ "disabled": "비활성화됨"
+ },
+ "payload": {
+ "title": "페이로드 설정",
+ "description": "기본값, 원시 JSON 규칙, 재정의 규칙 및 필터 규칙",
+ "default_rules": "기본 규칙",
+ "default_rules_desc": "요청에 매개변수가 지정되지 않은 경우 이 기본값을 사용합니다.",
+ "default_raw_rules": "기본 Raw 규칙",
+ "default_raw_rules_desc": "매개변수가 누락된 경우 true, 123, \"high\" 또는 {\"type\":\"object\"}와 같은 원시 JSON 조각으로 이 값을 작성합니다.",
+ "override_rules": "재정의 규칙",
+ "override_rules_desc": "요청의 매개변수 값을 강제로 재정의합니다.",
+ "override_raw_rules": "재정의 Raw 규칙",
+ "override_raw_rules_desc": "매개변수 값을 항상 원시 JSON 조각으로 덮어씁니다. response_format, 스키마 및 기타 복잡한 필드에 유용합니다.",
+ "filter_rules": "필터 규칙",
+ "filter_rules_desc": "JSON Path를 통해 업스트림 요청 본문을 사전 필터링하고 규격에 맞지 않거나 중복된 매개변수를 자동으로 제거합니다 (Request Sanitization)."
+ }
+ },
+ "api_keys": {
+ "label": "클라이언트 API 키 (access.api-keys)",
+ "add": "API 키 추가",
+ "generate": "생성",
+ "empty": "API 키 없음",
+ "hint": "각 항목은 하나의 API 키를 나타냅니다 ('API 키 관리' 페이지 스타일과 일치).",
+ "edit_title": "API 키 편집",
+ "add_title": "API 키 추가",
+ "input_label": "API 키",
+ "input_placeholder": "API 키를 붙여넣으세요",
+ "name_label": "이름 / 설명 (선택 사항)",
+ "name_placeholder": "예: Alice의 노트북",
+ "name_hint": "이 브라우저에만 즉시 저장되며 서버별로 구분됩니다. 서버 설정에는 포함되지 않습니다. 이름을 제거하려면 이 필드를 비우세요.",
+ "name_save_error": "브라우저 저장소에 이름을 저장할 수 없습니다. 브라우저 저장소 설정을 확인하세요.",
+ "input_hint": "설정을 저장한 후 변경 사항이 적용됩니다. 업스트림 공급자 키는 별도로 관리됩니다.",
+ "error_empty": "API 키를 입력하세요",
+ "error_invalid": "API 키에 유효하지 않은 문자가 포함되어 있습니다",
+ "strength": {
+ "label": "API 키 강도",
+ "empty": "입력되지 않음",
+ "weak": "약함",
+ "fair": "보통",
+ "good": "좋음",
+ "strong": "강함"
+ }
+ },
+ "payload_rules": {
+ "rule": "규칙",
+ "models": "적용 가능한 모델",
+ "model_name": "모델 이름",
+ "provider_type": "공급자 유형",
+ "add_model": "모델 추가",
+ "params": "매개변수 설정",
+ "remove_params": "매개변수 제거",
+ "json_path": "JSON Path (예: temperature)",
+ "json_path_filter": "JSON Path (gjson/sjson), 예: generationConfig.thinkingConfig.thinkingBudget",
+ "param_type": "매개변수 유형",
+ "param_value": "매개변수 값",
+ "add_param": "매개변수 추가",
+ "no_rules": "규칙 없음",
+ "add_rule": "규칙 추가",
+ "provider_default": "기본",
+ "provider_openai": "OpenAI",
+ "provider_openai_response": "OpenAI Response",
+ "provider_responses": "Responses",
+ "provider_gemini": "Gemini",
+ "provider_claude": "Claude",
+ "provider_codex": "Codex",
+ "provider_antigravity": "Antigravity",
+ "advanced": "고급",
+ "hide_advanced": "고급 숨기기",
+ "from_protocol": "소스 프로토콜 (from-protocol)",
+ "headers": "요청 헤더 일치",
+ "header_name": "헤더 이름",
+ "header_value": "헤더 값",
+ "add_header": "헤더 추가",
+ "match": "필수 일치 (match)",
+ "notMatch": "금지 일치 (not-match)",
+ "exist": "필수 경로 (exist)",
+ "notExist": "금지 경로 (not-exist)",
+ "condition_path": "일치 경로",
+ "condition_value": "일치 값",
+ "add_condition": "조건 추가",
+ "value_type_string": "문자열",
+ "value_type_number": "숫자",
+ "value_type_boolean": "불리언",
+ "value_type_json": "JSON",
+ "value_string": "문자열 값",
+ "value_number": "숫자 값 (예: 0.7)",
+ "value_boolean": "true 또는 false",
+ "value_json": "JSON 값",
+ "value_raw_json": "원시 JSON 조각, 예: true, 123, \"high\" 또는 {\"type\":\"object\"}",
+ "value_default": "값",
+ "boolean_true": "true",
+ "boolean_false": "false"
+ },
+ "validation": {
+ "invalid_trusted_proxies": "각 신뢰할 수 있는 프록시는 유효한 IP 주소 또는 CIDR이어야 합니다.",
+ "invalid_discovery_service_type": "_name._tcp 형식을 사용하세요: 이름은 1~15자의 영문자, 숫자 또는 하이픈이어야 하며, 시작이나 끝에 하이픈이 올 수 없습니다.",
+ "validation_blocked": "저장하기 전에 유효성 검사 오류를 수정하세요",
+ "invalid_duration": "30s 또는 3h와 같은 유효한 기간을 입력하세요",
+ "positive_duration": "0보다 큰 기간을 입력하세요",
+ "invalid_timezone": "Asia/Singapore과 같은 유효한 IANA 표준 시간대를 입력하세요",
+ "invalid_ip": "유효한 IPv4 또는 IPv6 주소를 입력하세요",
+ "udp_port_pair": "두 UDP 포트를 모두 0으로 설정하거나, 최솟값이 최댓값을 초과하지 않도록 둘 다 설정하세요",
+ "udp_port_capacity": "UDP 포트 범위는 유효 최대 세션 수의 최소 2배 이상의 포트를 포함해야 합니다(세션 수가 0인 경우 32 사용).",
+ "invalid_ice_servers": "각 ICE 서버에는 유효한 stun:, stuns:, turn: 또는 turns: URL이 하나 이상 필요합니다",
+ "integer_range_0_65535": "0에서 65535 사이의 정수를 입력하세요",
+ "port_range": "1에서 65535 사이의 유효한 포트를 입력하세요",
+ "integer": "정수를 입력하세요",
+ "non_negative_integer": "0 이상의 정수를 입력하세요",
+ "integer_range_1_3600": "1에서 3600 사이의 정수를 입력하세요",
+ "payload_invalid_number": "유효한 숫자를 입력하세요",
+ "payload_invalid_boolean": "true 또는 false를 선택하세요",
+ "payload_invalid_json": "유효한 JSON을 입력하세요"
+ },
+ "common": {
+ "edit": "편집",
+ "delete": "삭제",
+ "cancel": "취소",
+ "update": "업데이트",
+ "add": "추가"
+ }
+ },
+ "tabs_short": {
+ "common": "Common",
+ "connectivity": "Access",
+ "network": "Network",
+ "logging": "Logging",
+ "quota": "Quota fallback",
+ "streaming": "Streaming",
+ "advanced": "Advanced",
+ "payload": "Payload"
+ }
+ },
+ "quota_management": {
+ "search_label": "계정 검색",
+ "search_placeholder": "파일명 또는 이메일로 검색",
+ "search_empty_title": "일치하는 계정 없음",
+ "search_empty_desc": "다른 파일명이나 이메일을 입력하거나 검색을 초기화하세요.",
+ "search_clear": "검색 초기화",
+ "title": "할당량 관리",
+ "description": "Antigravity, Codex, Claude, Kimi 및 xAI 자격 증명의 OAuth 할당량 상태를 모니터링합니다.",
+ "refresh_all_credentials": "모든 자격 증명 새로 고침",
+ "sort_label": "정렬",
+ "sort_default": "기본값",
+ "sort_soonest": "가장 빠른 복구순",
+ "meta_credentials": "자격 증명 {{count}}개",
+ "meta_loaded": "{{count}}개 로드됨",
+ "meta_attention": "{{count}}개 주의 필요",
+ "empty_title": "할당량 확인 가능한 자격 증명 없음",
+ "empty_desc": "여기에서 할당량을 추적하려면 Antigravity, Claude, Codex, xAI 또는 Kimi 자격 증명을 연결하세요.",
+ "windows_title": "할당량 윈도우",
+ "windows_span_weekly": "2주",
+ "windows_span_session": "3일",
+ "windows_current": "현재",
+ "windows_today": "오늘",
+ "windows_prev": "이전",
+ "windows_next": "다음",
+ "windows_mode_weekly": "주간",
+ "windows_mode_session": "5시간",
+ "windows_credential": "자격 증명",
+ "windows_idle": "카운트다운 중인 윈도우 없음",
+ "windows_empty_session": "이 페이지의 어떤 자격 증명도 5시간 할당량 윈도우를 보고하지 않습니다.",
+ "windows_legend_current": "현재 윈도우",
+ "windows_legend_upcoming": "예정",
+ "windows_legend_elapsed": "경과됨",
+ "windows_legend_reset_credit": "수동 초기화 만료",
+ "soonest_row_hint": "이 자격 증명에서 가장 먼저 복구됨",
+ "windows_reset_credit": "수동 초기화",
+ "windows_credit_granted": "부여 일시",
+ "windows_credit_expires": "만료 일시",
+ "windows_note_weekly": "각 막대는 시작된 시점부터 초기화될 때까지의 전체 할당량 윈도우 하나를 나타냅니다. 함께 끝나는 레인은 동일한 날짜를 두고 경쟁합니다.",
+ "windows_note_session": "각 막대는 5시간 윈도우 하나를 나타냅니다. 카운트다운 중인 윈도우가 있는 자격 증명만 투영할 수 있으며, 나머지는 임의로 만들어내지 않고 빈 상태로 유지됩니다.",
+ "weekday_sun": "일",
+ "weekday_mon": "월",
+ "weekday_tue": "화",
+ "weekday_wed": "수",
+ "weekday_thu": "목",
+ "weekday_fri": "금",
+ "weekday_sat": "토",
+ "view_label": "View",
+ "view_ledger": "Ledger",
+ "view_cards": "Cards",
+ "view_timeline": "Timeline",
+ "show_emails": "Show emails",
+ "show_emails_hint": "Toggle masked email addresses",
+ "summary_of_capacity": "of {{capacity}}%",
+ "summary_show": "Show",
+ "summary_hide": "Hide",
+ "ledger_not_loaded": "Not loaded",
+ "ledger_no_windows": "No windows reported",
+ "ledger_no_reset": "No reset pending",
+ "ledger_show_less": "Show less",
+ "hide_emails": "Hide emails",
+ "summary_credentials_one": "{{count}} credential",
+ "summary_credentials_other": "{{count}} credentials",
+ "ledger_more_one": "+{{count}} more",
+ "ledger_more_other": "+{{count}} more",
+ "meta_credentials_one": "{{count}} account",
+ "meta_credentials_other": "{{count}} accounts",
+ "refresh_quota_tooltip": "Refresh quota",
+ "ledger_use_reset": "Use reset · {{count}}",
+ "ledger_reset": "Reset"
+ },
+ "plugin_management": {
+ "title": "플러그인 관리",
+ "description": "발견 및 등록된 플러그인을 검토하고, 인스턴스 토글, 설정 필드 및 리소스 링크를 관리합니다.",
+ "refresh": "새로 고침",
+ "load_failed": "플러그인을 불러오지 못했습니다",
+ "config_load_failed": "플러그인 설정을 읽지 못했습니다",
+ "config_not_found": "백엔드에서 이 플러그인을 찾을 수 없어 플러그인 설정을 읽을 수 없습니다.",
+ "unsupported_backend": "현재 백엔드가 플러그인 관리 API를 노출하지 않습니다. 플러그인 관리 엔드포인트가 포함된 최신 백엔드 빌드를 사용한 후 서비스를 다시 시작하세요.",
+ "global_status": "전역 상태",
+ "global_enabled": "활성화됨",
+ "global_disabled": "비활성화됨",
+ "global_disabled_hint": "plugins.enabled가 false이므로 활성화된 플러그인 인스턴스가 적용되지 않습니다.",
+ "plugins_dir": "플러그인 디렉터리",
+ "discovered": "발견됨",
+ "effective": "적용됨",
+ "search_placeholder": "플러그인 ID, 이름, 작성자 또는 리소스 검색...",
+ "search_label": "플러그인 검색",
+ "no_plugins": "플러그인 없음",
+ "no_plugins_desc": "플러그인 디렉터리 또는 런타임 레지스트리에서 플러그인을 찾을 수 없습니다.",
+ "configured": "설정됨",
+ "not_configured": "미설정",
+ "registered": "등록됨",
+ "not_registered": "미등록",
+ "oauth": "OAuth",
+ "status_effective": "적용 중",
+ "status_inactive": "미적용",
+ "edit_config": "설정 편집",
+ "open_repository": "저장소 열기",
+ "config_title": "{{name}} 설정",
+ "base_settings": "기본 설정",
+ "enabled": "활성화",
+ "enabled_hint": "plugins.configs에서 이 플러그인 인스턴스의 enabled 필드를 제어합니다.",
+ "priority": "우선순위",
+ "config_fields": "설정 필드",
+ "no_config_fields": "이 플러그인은 시각 설정 필드를 선언하지 않았습니다.",
+ "select_placeholder": "선택하세요",
+ "array_item_placeholder": "배열 항목을 입력하세요",
+ "add_array_item": "배열 항목 추가",
+ "remove_array_item": "배열 항목 삭제",
+ "delete_plugin": "삭제",
+ "delete_confirm_title": "플러그인 삭제",
+ "delete_confirm_message": "{{name}}({{id}})을(를) 삭제하시겠습니까? 로컬 플러그인 파일과 저장된 설정이 삭제됩니다.",
+ "delete_success": "플러그인을 삭제했습니다",
+ "delete_failed": "플러그인 삭제에 실패했습니다",
+ "delete_restart_required": "로드된 플러그인은 백엔드를 재시작해야 제거할 수 있습니다.",
+ "toggle_success": "플러그인 상태를 업데이트했습니다",
+ "toggle_failed": "플러그인 상태 업데이트에 실패했습니다",
+ "runtime_pending": "플러그인 변경 사항이 저장되었지만 런타임 상태는 아직 보류 중입니다. 나중에 새로 고침하거나 백엔드 로그를 확인하세요.",
+ "save_success": "플러그인 설정을 저장했습니다",
+ "save_failed": "플러그인 설정 저장에 실패했습니다",
+ "validation_failed": "플러그인 설정 양식의 오류를 먼저 수정하세요",
+ "invalid_priority": "정수 우선순위를 입력하세요",
+ "invalid_number": "유효한 숫자를 입력하세요",
+ "invalid_integer": "유효한 정수를 입력하세요",
+ "invalid_json": "유효한 JSON을 입력하세요",
+ "expected_array": "JSON 배열을 입력하세요",
+ "expected_object": "JSON 객체를 입력하세요",
+ "invalid_enum": "선언된 열거형 값 중 하나를 선택하세요"
+ },
+ "plugin_store": {
+ "title": "플러그인 스토어",
+ "description": "플러그인 레지스트리를 탐색하고 현재 백엔드용 플러그인을 설치하거나 업데이트합니다.",
+ "description_show_more": "더 보기",
+ "description_show_less": "간략히 보기",
+ "source_name": "소스: {{source}}",
+ "cli_proxy_api_source": "CLIProxyAPI 소스",
+ "refresh": "새로 고침",
+ "retry": "재시도",
+ "load_failed": "플러그인 스토어를 불러오지 못했습니다",
+ "unsupported_backend": "현재 백엔드는 플러그인 스토어 API를 노출하지 않습니다. 플러그인 스토어 엔드포인트가 포함된 최신 백엔드 빌드를 사용한 후 서비스를 재시작하세요.",
+ "registry_failed": "플러그인 레지스트리에 연결하지 못했습니다",
+ "global_status": "전역 상태",
+ "global_enabled": "활성화됨",
+ "global_disabled": "비활성화됨",
+ "global_disabled_hint": "plugins.enabled가 false이므로 설치된 플러그인이 적용되지 않습니다.",
+ "plugins_dir": "플러그인 디렉터리",
+ "stat_available": "사용 가능",
+ "search_placeholder": "플러그인 ID, 이름, 작성자 또는 태그 검색...",
+ "search_label": "플러그인 스토어 검색",
+ "filter_label": "설치 상태별 필터",
+ "filter_all": "전체",
+ "filter_installed": "설치됨",
+ "filter_not_installed": "미설치",
+ "filter_updates": "업데이트 가능",
+ "badge_installed": "설치됨",
+ "badge_update": "업데이트 가능",
+ "badge_effective": "적용 중",
+ "version_arrow": "v{{from}} → v{{to}}",
+ "install_type": "설치 방식: {{type}}",
+ "platforms": "플랫폼: {{platforms}}",
+ "auth_required": "인증 필요",
+ "auth_configured": "인증 설정됨",
+ "auth_required_hint": "이 소스 또는 아티팩트 URL에서 설치하기 전에 plugins.store-auth를 설정하세요",
+ "source_errors_title": "일부 플러그인 소스를 불러오지 못했습니다",
+ "install": "설치",
+ "update": "업데이트",
+ "manage": "관리",
+ "install_confirm_title": "플러그인 설치",
+ "install_confirm_message": "플러그인 레지스트리에서 {{target}}을(를) 다운로드하여 로컬 플러그인 디렉터리에 설치하시겠습니까?",
+ "update_confirm_title": "플러그인 업데이트",
+ "update_confirm_message": "{{target}}을(를) 다운로드하여 설치하시겠습니까?",
+ "install_version_label": "버전",
+ "install_version_latest": "최신",
+ "install_version_latest_mode": "최신 안정 버전",
+ "install_version_latest_hint": "설치 시 백엔드에서 결정됩니다. 현재 표시된 버전: {{version}}.",
+ "install_version_release_mode": "릴리스 선택",
+ "install_version_release_hint": "GitHub Releases에서 설치 가능한 태그를 읽어옵니다.",
+ "install_version_manual_mode": "수동 릴리스 태그",
+ "install_version_manual_hint": "릴리스를 자동으로 불러올 수 없는 경우에만 사용하세요.",
+ "install_versions_loading": "GitHub Releases 불러오는 중...",
+ "install_versions_load_failed": "릴리스 버전을 불러오지 못했습니다",
+ "install_version_non_github": "이 플러그인 저장소는 GitHub 저장소가 아닙니다",
+ "install_versions_empty": "선택할 수 있는 릴리스가 없습니다.",
+ "install_versions_only_prerelease": "사전 릴리스 버전만 사용할 수 있습니다. 선택하려면 사전 릴리스를 표시하세요.",
+ "install_version_release_select": "릴리스 버전 선택",
+ "install_version_release_placeholder": "릴리스 버전을 선택하세요",
+ "install_version_prerelease_badge": "사전 릴리스",
+ "install_version_assets_count": "에셋 {{count}}개",
+ "install_version_show_prerelease": "사전 릴리스 버전 표시",
+ "install_version_manual_placeholder": "예: v0.1.4",
+ "install_version_manual_error": "릴리스 태그에는 영문자, 숫자, 마침표, 밑줄, 더하기 기호, 하이픈만 포함할 수 있으며 공백과 슬래시는 허용되지 않습니다.",
+ "install_version_current_selected": "{{version}}이(가) 이미 설치되어 있습니다. 다른 버전을 선택하세요.",
+ "install_version_releases_link": "GitHub Releases 보기",
+ "install_success": "플러그인을 설치했습니다",
+ "update_success": "플러그인을 업데이트했습니다",
+ "install_failed": "플러그인 설치에 실패했습니다",
+ "update_failed": "플러그인 업데이트에 실패했습니다",
+ "status_pending": "플러그인 파일이 업데이트되었지만 로컬 상태가 아직 새로 고쳐지지 않았습니다. 나중에 새로 고침하거나 백엔드 로그를 확인하세요.",
+ "registration_pending": "플러그인 파일이 업데이트되었지만 등록이 아직 보류 중입니다. 나중에 새로 고침하거나 백엔드 로그를 확인하세요.",
+ "restart_required_notice": "새 플러그인 버전을 로드하려면 서비스를 재시작하세요",
+ "restart_required_banner": "다음 플러그인의 새 버전을 적용하려면 서비스를 재시작하세요: {{plugins}}",
+ "open_repository": "저장소 열기",
+ "open_homepage": "홈페이지 열기",
+ "no_plugins": "레지스트리가 비어 있습니다",
+ "no_plugins_desc": "플러그인 레지스트리에서 반환된 플러그인이 없습니다.",
+ "no_matches": "일치하는 플러그인이 없습니다",
+ "no_matches_desc": "현재 검색 또는 필터와 일치하는 플러그인이 없습니다.",
+ "clear_filters": "필터 초기화",
+ "security_banner_title": "서드파티 플러그인은 전체 백엔드 접근 권한으로 실행됩니다",
+ "security_banner_text": "플러그인은 프록시 서비스 내부에서 코드를 실행하며 사용자의 자격 증명과 트래픽을 읽을 수 있습니다. 신뢰할 수 있는 플러그인만 설치하세요. 공식 router-for-me 조직에서 게시하지 않은 플러그인은 특히 주의해야 합니다.",
+ "badge_untrusted": "서드파티",
+ "gate_title": "{{name}} 설치",
+ "gate_title_update": "{{name}} 업데이트",
+ "gate_warning": "이 내용을 읽지 않으면 예상치 못한 유해한 상황이 발생할 수 있습니다.",
+ "gate_effect_runs_code": "이 플러그인은 프록시 백엔드 내부에서 인증되지 않은 서드파티 코드를 실행합니다. 시스템이 해당 동작을 격리하거나 감사할 수 없으며, 민감한 자격 증명, 네트워크 요청 및 응답 데이터에 접근할 수 있습니다.",
+ "gate_effect_no_review": "이 플러그인은 공식 router-for-me 조직에서 게시하거나 검토하지 않았습니다. 공식 조직은 이 플러그인의 안정성, 보안, 규정 준수 또는 향후 버전에서의 동작 변경에 대해 어떠한 명시적 또는 묵시적 보증도 하지 않습니다.",
+ "gate_effect_restart": "설치 시 로컬 플러그인 디렉터리가 변경되며 적용을 위해 서비스를 재시작해야 할 수 있습니다.",
+ "gate_untrusted_alert": "이 플러그인은 공식 router-for-me 조직의 플러그인이 아닙니다. 작성자와 소스를 완전히 신뢰하는 경우에만 계속 진행하세요.",
+ "gate_repository_label": "저장소",
+ "gate_source_label": "소스",
+ "gate_step1_action": "이 플러그인을 설치하겠습니다",
+ "gate_step2_action": "이러한 위험을 읽었으며 이해했습니다",
+ "gate_step3_prompt": "확인하려면 아래 입력란에 \"{{token}}\"을(를) 입력하세요",
+ "gate_step3_action": "이 플러그인 설치",
+ "gate_step3_hint": "설치를 활성화하려면 위에 표시된 식별자를 정확히 입력하세요."
+ },
+ "plugin_resource": {
+ "page_count": "페이지 {{count}}개",
+ "load_failed": "플러그인 페이지를 불러오지 못했습니다",
+ "unavailable": "플러그인 페이지를 사용할 수 없습니다",
+ "not_found": "플러그인 페이지를 찾을 수 없습니다",
+ "not_found_desc": "이 플러그인 페이지는 현재 백엔드 플러그인 목록에 선언되어 있지 않습니다.",
+ "empty_src": "플러그인 페이지 URL이 비어 있습니다",
+ "empty_src_desc": "이 플러그인 메뉴는 포함 가능한 페이지 URL을 제공하지 않습니다."
+ },
+ "system_info": {
+ "title": "관리 센터 정보",
+ "about_title": "CLI Proxy API 관리 센터",
+ "models_title": "사용 가능한 모델",
+ "models_desc": "/models 응답을 표시하며 저장된 API 키를 사용하여 자동으로 인증합니다.",
+ "models_loading": "사용 가능한 모델을 불러오는 중...",
+ "models_empty": "/models에서 반환된 모델이 없습니다",
+ "models_error": "모델 목록을 불러오지 못했습니다",
+ "models_count": "사용 가능한 모델 {{count}}개",
+ "version_check_button": "업데이트 확인",
+ "version_update_available": "새 버전을 사용할 수 있습니다: {{version}}",
+ "version_is_latest": "최신 버전을 사용하고 있습니다",
+ "version_check_error": "업데이트 확인에 실패했습니다",
+ "version_current_missing": "서버 버전을 확인할 수 없어 비교할 수 없습니다",
+ "version_unknown": "알 수 없음",
+ "quick_links_title": "빠른 링크",
+ "quick_links_desc": "도움말과 업데이트를 확인하려면 프로젝트 저장소 및 문서를 참조하세요.",
+ "link_main_repo": "메인 저장소",
+ "link_main_repo_desc": "CLI Proxy API 핵심 프로그램 소스 코드",
+ "link_webui_repo": "WebUI 저장소",
+ "link_webui_repo_desc": "관리 센터 프런트엔드 소스 코드",
+ "link_docs": "문서",
+ "link_docs_desc": "설정 튜토리얼 및 가이드",
+ "clear_login_title": "로컬 로그인 데이터",
+ "clear_login_desc": "로컬에 저장된 로그인 데이터를 지우고 로그아웃합니다.",
+ "clear_login_button": "로그인 데이터 지우기",
+ "clear_login_confirm": "로컬 로그인 데이터를 지우고 지금 로그아웃하시겠습니까?"
+ },
+ "notification": {
+ "trusted_proxies_restart_required": "신뢰할 수 있는 프록시 설정이 저장되었습니다. 적용하려면 백엔드를 재시작하세요.",
+ "region_label": "알림",
+ "type_success": "성공",
+ "type_info": "정보",
+ "type_warning": "경고",
+ "type_error": "오류",
+ "request_log_updated": "요청 로깅 설정이 업데이트되었습니다",
+ "login_storage_cleared": "로컬 로그인 데이터가 삭제되었습니다",
+ "data_refreshed": "데이터를 성공적으로 새로 고쳤습니다",
+ "connection_required": "먼저 연결을 설정하세요",
+ "refresh_failed": "새로 고침 실패",
+ "update_failed": "업데이트 실패",
+ "add_failed": "추가 실패",
+ "delete_failed": "삭제 실패",
+ "upload_failed": "업로드 실패",
+ "download_failed": "다운로드 실패",
+ "login_failed": "로그인 실패",
+ "commercial_mode_restart_required": "상업 모드 설정이 변경되었습니다. 적용하려면 서비스를 재시작하세요",
+ "copy_failed": "복사 실패",
+ "link_copied": "링크가 클립보드에 복사되었습니다"
+ },
+ "language": {
+ "switch": "언어",
+ "chinese": "中文",
+ "chinese_tw": "번체 중국어(대만)",
+ "english": "English",
+ "russian": "Русский",
+ "vietnamese": "Tiếng Việt",
+ "korean": "한국어"
+ },
+ "theme": {
+ "switch": "테마",
+ "light": "양모 종이",
+ "white": "순백",
+ "dark": "다크",
+ "auto": "시스템 설정 따름"
+ },
+ "sidebar": {
+ "toggle_expand": "사이드바 펼치기",
+ "toggle_collapse": "사이드바 접기",
+ "expand": "펼치기",
+ "collapse": "접기",
+ "subtitle": "CLI Proxy API 콘솔",
+ "auth_files_count": "인증 파일: {{count}}개",
+ "auth_files_problems": "{{count}} need attention"
+ },
+ "footer": {
+ "api_version": "CLI Proxy API 버전",
+ "build_date": "빌드 시간",
+ "version": "관리 UI 버전"
+ },
+ "providersPage": {
+ "behavior": {
+ "title": "공급자 전용 동작",
+ "alphaSearch": "Alpha Search 활성화",
+ "alphaSearchHint": "이 Codex 키가 Alpha Search를 처리하도록 허용합니다. 업스트림에서 이를 지원해야 합니다.",
+ "codexCloaking": "Codex 요청 위장",
+ "codexCloakingHint": "이 API 키에 대한 공식 Codex 식별 헤더를 재정의합니다. 기본값은 자격 증명 재정의를 제거하며, OAuth 전용 설정은 여기에 적용되지 않습니다.",
+ "useDefault": "백엔드 기본값 사용",
+ "cloakingEnabled": "위장 활성화",
+ "cloakingDisabled": "위장 비활성화",
+ "rebuildMidSystemMessage": "시스템 메시지 재구성",
+ "rebuildMidSystemMessageHint": "role이 system인 Claude 메시지를 최상위 system 필드로 이동합니다.",
+ "supportPromptCacheKey": "프롬프트 캐시 키 주입",
+ "supportPromptCacheKeyHint": "호환되는 요청에 대해 prompt_cache_key를 파생하고 주입합니다. 업스트림에서 이 필드를 지원하는 경우에만 활성화하세요."
+ },
+ "modelOptions": {
+ "displayName": "표시 이름",
+ "maxContextLength": "컨텍스트 길이",
+ "contextHint": "음이 아닌 정수여야 합니다. 기본값을 사용하려면 비워 두세요.",
+ "forceMapping": "응답 모델 이름을 별칭으로 재작성",
+ "isCompat": "호환 모드",
+ "supportConfigurationUpdate": "설정 업데이트 허용",
+ "inputModalitiesText": "입력 모달리티",
+ "outputModalitiesText": "출력 모달리티",
+ "modalitiesHint": "쉼표 또는 공백으로 값을 구분하세요. 사용자 지정 모달리티 이름은 유지됩니다.",
+ "useMaxCompletionTokens": "max_completion_tokens 사용",
+ "thinkingMode": "사고 설정 재정의",
+ "useDefault": "기본값 사용",
+ "custom": "사용자 지정",
+ "thinkingHint": "기본값은 백엔드 동작을 상속하며, 빈 사용자 지정 재정의는 명시적인 {}입니다. 사고 예산과 추론 강도는 동시에 지정할 수 있습니다. 두 예산이 모두 0이거나 비어 있는 경우에만 숫자 범위가 지정되지 않습니다. 양수인 최솟값을 설정하는 경우 최댓값은 최솟값 이상이어야 합니다.",
+ "thinkingMin": "최소 사고 예산",
+ "thinkingMax": "최대 사고 예산",
+ "thinkingZeroAllowed": "0 예산 허용",
+ "thinkingDynamicAllowed": "동적 예산 허용",
+ "invalidContext": "컨텍스트 길이는 음이 아닌 안전한 정수여야 합니다.",
+ "invalidThinking": "사고 설정은 유효한 JSON 객체여야 합니다.",
+ "invalidBudget": "사고 예산은 음이 아닌 안전한 정수여야 합니다.",
+ "invalidRange": "최소 사고 예산은 최댓값을 초과할 수 없습니다. 비어 있는 경계는 0으로 간주됩니다.",
+ "removeModel": "모델 삭제",
+ "modelName": "모델 이름",
+ "modelAlias": "별칭(선택 사항)"
+ },
+ "runtimePolicy": {
+ "title": "고급 런타임 정책",
+ "description": "상속은 상위 그룹 정책을 따르고, 그 후 백엔드 기본값을 사용합니다. 재정의는 이 항목에만 적용됩니다.",
+ "cooling": "쿨다운",
+ "inherit": "상속",
+ "coolingEnabled": "쿨다운 활성화",
+ "coolingDisabled": "쿨다운 비활성화",
+ "retry": "요청 재시도",
+ "retryHint": "비워 두면 그룹 설정을 상속합니다. 정수를 입력하세요. 0은 재시도를 비활성화하고, 음수는 그룹 정책 대신 전역 재시도 정책을 사용합니다.",
+ "errorsMode": "요청 오류 규칙",
+ "override": "재정의",
+ "errorsHint": "상속은 상위 정책을 따릅니다. 재정의는 전체 목록을 대체하며 빈 목록일 수도 있습니다. 모드를 전환해도 작성 중인 규칙 초안은 유지됩니다.",
+ "invalidRetry": "재시도 횟수는 안전한 정수이거나 상속을 위해 비어 있어야 합니다."
+ },
+ "errorRules": {
+ "hint": "순서대로 첫 번째 일치하는 규칙을 적용합니다. 상태 코드가 같으면 어느 조건이라도 일치하면 적용됩니다.",
+ "empty": "규칙이 없습니다. 빈 목록을 저장할 수 있습니다.",
+ "rule": "규칙 {{number}}",
+ "status": "상태 코드",
+ "action": "동작",
+ "selectAction": "동작 선택",
+ "moveUp": "규칙 위로 이동",
+ "moveDown": "규칙 아래로 이동",
+ "removeRule": "규칙 삭제",
+ "matchType": "일치 유형",
+ "text": "텍스트 포함",
+ "regex": "정규식",
+ "matchValue": "조건",
+ "regexHint": "Go 정규식",
+ "removeMatch": "조건 삭제",
+ "addMatch": "조건 추가",
+ "addRule": "규칙 추가",
+ "invalidStatus": "상태 코드는 양의 안전한 정수여야 합니다.",
+ "invalidAction": "유효한 동작을 선택하세요.",
+ "invalidMatch": "일치 조건은 비워 둘 수 없습니다.",
+ "missingMatch": "일치 조건을 하나 이상 추가하세요.",
+ "actions": {
+ "stop": "중지",
+ "stop-and-cooldown": "중지 및 쿨다운",
+ "continue": "계속",
+ "continue-and-cooldown": "계속 및 쿨다운"
+ }
+ },
+ "header": {
+ "title": "AI 공급자",
+ "activeResources": "활성 리소스 {{active}}/{{total}}개",
+ "providerFamilies": "공급자 제품군 {{count}}개",
+ "updatedAt": "{{time}} 업데이트됨",
+ "description": "Upstream API keys and compatible endpoints."
+ },
+ "actions": {
+ "refresh": "새로 고침",
+ "syncing": "동기화 중",
+ "new": "새로 만들기",
+ "edit": "편집",
+ "view": "보기",
+ "delete": "삭제",
+ "cancel": "취소",
+ "save": "저장",
+ "create": "생성",
+ "enable": "활성화",
+ "disable": "비활성화",
+ "add_key": "Add key"
+ },
+ "categories": {
+ "title": "공급자",
+ "quickFill": "빠른 입력",
+ "activeCount": "활성 {{active}}/{{total}}"
+ },
+ "providerNames": {
+ "meta": "Muse (Meta)",
+ "gemini": "Gemini",
+ "interactions": "Interactions API",
+ "codex": "Codex",
+ "xai": "xAI",
+ "claude": "Claude",
+ "vertex": "Vertex",
+ "openaiCompatibility": "OpenAI 호환",
+ "apikeyFun": "APIKEY.FUN",
+ "fennoAI": "FennoAI",
+ "qiniuCloud": "Qiniu Cloud",
+ "kimi": "Kimi"
+ },
+ "table": {
+ "key": "키",
+ "baseUrl": "기본 URL",
+ "prefix": "접두사",
+ "models": "모델/헤더",
+ "status": "상태",
+ "actions": "작업",
+ "metrics": {
+ "models": "모델",
+ "keys": "키",
+ "headers": "헤더"
+ },
+ "websocketsTag": "WebSockets",
+ "cloakTag": "Cloak",
+ "cliProfileTag": "CLI 프로필",
+ "empty": "아직 리소스가 없습니다. \"새로 만들기\"를 클릭하여 추가하세요.",
+ "filterPlaceholder": "키, URL, 접두사 검색…",
+ "description": "{{route}}의 리소스를 관리합니다."
+ },
+ "sponsor": {
+ "protocolSummary": "Anthropic / OpenAI / Gemini / Codex API (Responses)",
+ "detailHint": "{{provider}} 공급자는 프로토콜별로 일치하는 API 키 설정에 저장되며, 이 화면에서 통합 관리합니다.",
+ "registerLink": "여기서 등록",
+ "registerNow": "지금 등록",
+ "kimiPromo": "신규 사용자는 첫 충전 성공 시 충전 금액의 10%에 해당하는 API 크레딧(최대 ¥1000)을 받을 수 있습니다. 혜택은 9월 30일에 종료됩니다.",
+ "dashboardLink": "대시보드",
+ "emptyRegisterHint": "아직 설정이 없습니다.",
+ "apiKeyHint": "이 키는 선택한 그룹/프로토콜 설정에만 저장됩니다.",
+ "usageCheck": "사용량 확인",
+ "usageChecking": "확인 중",
+ "usageRemaining": "남은 사용량: {{amount}} {{unit}}",
+ "usageBreakdown": "사용 {{used}} / 한도 {{limit}}",
+ "usageStatus": "상태: {{status}}",
+ "usageInvalid": "유효하지 않은 키",
+ "usageEmpty": "엔드포인트에서 사용량 데이터를 반환하지 않았습니다.",
+ "usageApiKeyRequired": "API 키가 필요합니다.",
+ "aggregationConflict": "이 그룹화된 공급자에는 여러 백엔드 설정 또는 OpenAI 키가 포함되어 있습니다. 데이터 손실을 방지하려면 소스 설정에서 편집하세요.",
+ "partialMutationWarning": "하나 이상의 프로토콜이 업데이트된 후 작업이 실패했을 수 있습니다. 최신 설정을 다시 불러왔으니 다시 시도하기 전에 검토하세요.",
+ "groupedKeysTitle": "그룹 키",
+ "groupedKeysHint": "플랫폼 키 생성 시 특정 그룹에 바인딩될 수 있습니다. 여기의 각 그룹 키는 하나의 프로토콜만 관리하며, 모델 검색은 해당 프로토콜만 사용합니다.",
+ "groupedKey": "그룹 키 #{{index}}",
+ "addGroupedKey": "그룹 키 추가",
+ "removeGroupedKey": "그룹 키 삭제",
+ "protocol": "그룹/프로토콜",
+ "protocolHint": "이 키에 해당하는 그룹/프로토콜을 선택하세요.",
+ "protocolEndpoint": "현재 프로토콜 엔드포인트",
+ "urlMode": "{{provider}} URL",
+ "urlHint": "모든 URL은 동일한 API 규칙을 사용합니다. 저장 시 현재 그룹화된 프로토콜의 엔드포인트만 기록됩니다.",
+ "urlOptions": {
+ "standard": "표준 URL",
+ "direct": "직접 연결 URL",
+ "domestic": "중국 본토 경로",
+ "overseas": "해외 경로",
+ "mainlandChina": "중국 본토 (권장)",
+ "global": "글로벌"
+ },
+ "urlOptionDescriptions": {
+ "domestic": "중국 본토의 사용자 및 워크로드용입니다. 본토 네트워크에서 일반적으로 대기 시간이 더 짧습니다.",
+ "overseas": "해외 배포, 국경 간 액세스 또는 해외 모델이 필요한 워크로드용입니다.",
+ "mainlandChinaRecommended": "중국 본토 네트워크의 사용자 및 워크로드에 권장됩니다.",
+ "global": "기타 모든 지역의 사용자 및 워크로드용입니다."
+ },
+ "modelsTitle": "프로토콜 모델 설정",
+ "modelsHint": "Codex API, Anthropic, Gemini 및 OpenAI 호환 경로에 대한 모델 허용 목록 또는 별칭을 개별적으로 설정하세요.",
+ "protocolModels": {
+ "codex": "Codex API 모델",
+ "anthropic": "Anthropic 모델",
+ "gemini": "Gemini 모델",
+ "openai": "OpenAI 호환 모델"
+ },
+ "protocolModelHints": {
+ "codex": "Codex API 설정의 models에 저장됩니다. /v1/models에서 가져온 후 필요한 경우 별칭을 설정하세요.",
+ "anthropic": "Anthropic 설정의 models에 저장됩니다. /v1/models에서 가져온 후 필요한 경우 별칭을 설정하세요.",
+ "gemini": "Gemini 설정의 models에 저장됩니다. /v1beta/models에서 가져온 후 필요한 경우 별칭을 설정하세요.",
+ "openai": "OpenAI 호환 설정의 models에 저장됩니다. /models에서 가져온 후 필요한 경우 별칭을 설정하세요."
+ },
+ "validation": {
+ "keyRequired": "모든 그룹 키에 API 키를 입력하세요.",
+ "protocolDuplicate": "각 프로토콜에는 그룹 키를 하나만 지정할 수 있습니다."
+ },
+ "openaiEntries": "OpenAI 호환 키",
+ "codexEntries": "Codex API 키",
+ "anthropicEntries": "Anthropic 키",
+ "geminiEntries": "Gemini 키",
+ "protocols": {
+ "anthropic": "Anthropic",
+ "openai": "OpenAI 호환",
+ "gemini": "Gemini",
+ "codexResponses": "Codex API (Responses)"
+ }
+ },
+ "status": {
+ "active": "활성",
+ "disabled": "비활성화됨",
+ "notSet": "설정되지 않음",
+ "none": "없음",
+ "notConfigured": "구성되지 않음",
+ "defaultSuffix": "(기본값)"
+ },
+ "detail": {
+ "title": "상세 정보",
+ "metadataTitle": "메타데이터",
+ "fields": {
+ "identifier": "식별자",
+ "baseUrl": "기본 URL",
+ "proxyUrl": "프록시 URL",
+ "prefix": "접두사",
+ "models": "모델",
+ "headers": "헤더",
+ "authIndex": "Auth Index",
+ "excludedModels": "제외 모델",
+ "apiKeyEntries": "API 키 항목"
+ }
+ },
+ "form": {
+ "createEyebrow": "새로 만들기",
+ "editEyebrow": "편집",
+ "name": "이름",
+ "apiKey": "API 키",
+ "apiKeyCreatePlaceholder": "API 키를 입력하세요",
+ "apiKeyEditPlaceholder": "변경하지 않으려면 비워 두세요",
+ "baseUrl": "기본 URL",
+ "baseUrlRequiredHint": "이 공급자에는 필수 항목입니다.",
+ "proxyUrl": "프록시 URL",
+ "prefix": "접두사",
+ "priority": "우선순위",
+ "weight": "스케줄링 가중치",
+ "weightHint": "기본값 1 · ≤ 0인 경우 제외 · 최대 1,000,000",
+ "disabled": "이 항목 비활성화",
+ "disabledHint": "비활성화된 항목은 게이트웨이에서 사용되지 않습니다.",
+ "websockets": "WebSockets 활성화",
+ "testModel": "테스트 모델",
+ "testModelHint": "연결 테스트용으로만 사용되며 저장되지 않습니다.",
+ "testModelAutoWith": "자동 · {{name}}",
+ "testModelAutoEmpty": "자동 (아직 추가된 모델 없음)",
+ "testModelCustom": "{{name}} (사용자 정의)",
+ "modelsSection": "사용자 정의 모델",
+ "addModel": "모델 추가",
+ "headersSection": "요청 헤더",
+ "addHeader": "헤더 추가",
+ "excludedSection": "제외 모델",
+ "excludedDisabledNote": "“*”는 전체 공급자가 비활성화됨을 의미합니다. 대신 위의 비활성화 스위치를 사용하세요.",
+ "cloakSection": "Cloak 설정",
+ "cloakMode": "모드",
+ "cloakStrict": "엄격 모드",
+ "cloakSensitiveWords": "민감한 단어 (한 줄에 하나씩)",
+ "apiKeyEntriesSection": "API 키 항목",
+ "apiKeyEntry": "키 #{{index}}",
+ "addApiKeyEntry": "키 항목 추가",
+ "showApiKey": "API 키 표시",
+ "hideApiKey": "API 키 숨기기",
+ "disableCooling": "쿨다운 비활성화",
+ "disableCoolingHint": "이 자격 증명 또는 공급자에 대해서만 실패 쿨다운 대기 시간을 비활성화합니다.",
+ "modelImage": "이미지 엔드포인트 허용",
+ "modelImageHint": "이 모델을 /v1/images/generations 및 /v1/images/edits에서 허용합니다.",
+ "showAllEntries": "전체 표시 ({{count}})",
+ "showFewerEntries": "간략히 표시",
+ "proxyBadge": "프록시",
+ "modelBadgeImage": "이미지",
+ "modelBadgeThinking": "사고",
+ "thinkingConfig": "사고 기능",
+ "thinkingExistingHint": "추론 강도 단계를 변경해도 예산 및 수정되지 않은 기타 설정은 유지됩니다.",
+ "thinkingLevels": {
+ "none": "사고 비활성화",
+ "minimal": "최소",
+ "low": "낮음",
+ "medium": "중간",
+ "high": "높음",
+ "xhigh": "매우 높음",
+ "max": "최대",
+ "auto": "자동"
+ },
+ "cloakCacheUserId": "user_id 캐시",
+ "cloakCacheUserIdHint": "API 키별로 Claude cloak user_id를 재사용합니다.",
+ "fingerprintProfile": "요청 지문",
+ "fingerprintProfileDefault": "기본값(호출자 제어)",
+ "fingerprintProfileClaudeCodeCli": "Claude Code CLI",
+ "fingerprintProfileHint": "기본적으로 호출자의 프롬프트와 헤더를 유지하거나, Claude Code CLI 요청 지문을 사용하도록 선택합니다.",
+ "validation": {
+ "nameRequired": "이름은 필수입니다.",
+ "apiKeyRequired": "API 키를 하나 이상 입력해야 합니다.",
+ "baseUrlRequired": "기본 URL은 필수입니다.",
+ "weightInteger": "스케줄링 가중치는 정수여야 합니다.",
+ "weightMax": "스케줄링 가중치는 {{max}}을(를) 초과할 수 없습니다."
+ }
+ },
+ "delete": {
+ "title": "리소스 삭제",
+ "confirm": "{{name}}을(를) 삭제하시겠습니까? 이 작업은 취소할 수 없습니다."
+ },
+ "toast": {
+ "created": "생성됨",
+ "updated": "업데이트됨",
+ "deleted": "삭제됨",
+ "enabled": "활성화됨",
+ "disabled": "비활성화됨",
+ "toggleFailed": "상태 업데이트에 실패했습니다."
+ },
+ "unsavedChanges": {
+ "title": "저장되지 않은 변경 사항을 취소하시겠습니까?",
+ "message": "이 양식에 저장되지 않은 수정 사항이 있습니다. 닫으면 변경 사항이 취소됩니다.",
+ "discard": "변경 사항 취소",
+ "keepEditing": "계속 편집"
+ },
+ "connectivity": {
+ "test": "테스트",
+ "testAll": "모두 테스트",
+ "success": "연결 가능",
+ "baseUrlRequired": "기본 URL은 필수입니다.",
+ "endpointInvalid": "엔드포인트 URL이 올바르지 않습니다.",
+ "apiKeyRequired": "API 키는 필수입니다.",
+ "modelRequired": "테스트 모델은 필수입니다.",
+ "timeout": "{{seconds}}초 후 시간 초과되었습니다.",
+ "requestFailed": "요청에 실패했습니다."
+ },
+ "discovery": {
+ "openButton": "엔드포인트에서 가져오기",
+ "searchPlaceholder": "모델 검색",
+ "reload": "다시 로드",
+ "loading": "모델을 로드하는 중…",
+ "empty": "엔드포인트에서 반환된 모델이 없습니다.",
+ "notLoaded": "모델을 가져오려면 다시 로드를 클릭하세요.",
+ "selectAll": "모두 선택",
+ "clearAll": "선택 해제",
+ "selectedCount": "{{selected}} / {{total}}",
+ "alreadyAdded": "이미 추가됨",
+ "close": "닫기",
+ "apply": "적용 ({{count}})"
+ },
+ "toolbar": {
+ "sortBy": "정렬 기준",
+ "sort": {
+ "name": "이름",
+ "priority": "우선순위",
+ "recentSuccess": "최근 성공",
+ "directionAsc": "오름차순",
+ "directionDesc": "내림차순"
+ },
+ "filter": {
+ "allModels": "모든 모델",
+ "selectedModels": "{{selected}}/{{total}}개 모델",
+ "selectAll": "모두 선택",
+ "clear": "선택 해제",
+ "empty": "아직 설정된 모델이 없습니다."
+ }
+ },
+ "modelCatalog": {
+ "notLoaded": "로드되지 않음"
+ }
+ },
+ "claude_reset": {
+ "expiry_title": "수동 초기화 만료 시각 ({{timezone}})",
+ "grant_number": "초기화 권한 {{index}}",
+ "expiry_unknown": "만료 시각 알 수 없음",
+ "retry_confirm": "“{{name}}”의 상태를 알 수 없는 초기화를 원래 요청 ID로 재시도하시겠습니까? 이미 초기화가 소진되었을 수 있습니다. 10분 이내에 재시도하세요. 페이지를 새로 고치거나 다른 탭에서 새 요청을 시작하지 마세요.",
+ "remaining": "남은 초기화 횟수",
+ "title": "적립된 초기화",
+ "scope": "제한된 초기화 권한을 사용하여 조건에 맞는 Claude 사용량 한도를 초기화합니다. 초기화를 사용하려는 경우에만 확인하세요. 복구는 이 탭/세션으로 제한되므로, 결과를 알 수 없는 동안에는 새로 고침을 하거나 다른 탭을 사용하지 마세요.",
+ "loading": "로드 중…",
+ "read_error": "초기화 권한 정보를 불러오지 못했습니다. 초기화 요청은 전송되지 않았습니다.",
+ "blocked": "초기화 요청을 전송하지 않았습니다: 자격, 계정 식별 정보 또는 세션을 확인할 수 없습니다. 새로 고친 후 다시 확인하세요.",
+ "unknown": "결과를 알 수 없습니다. 초기화가 이미 사용되었을 수 있습니다. 동일한 요청 ID를 사용하여 10분 이내에 재시도하세요. 다른 곳에서 새 요청을 시작하지 마세요.",
+ "expired": "재시도 가능 시간이 만료되었습니다. 이 세션에서는 추가 요청이 차단됩니다. 추가 작업을 진행하기 전에 Claude 계정을 확인하세요.",
+ "retry": "동일한 요청 재시도",
+ "empty": "적립된 초기화 권한이 없습니다.",
+ "count": "남은 초기화 {{left}} / {{total}}회",
+ "ends": "만료: {{date}}",
+ "use": "한도 초기화",
+ "confirm": "초기화 확인",
+ "confirm_text": "초기화를 1회 사용하여 “{{name}}”의 대상 사용량 제한을 초기화하시겠습니까? 제한된 초기화 권한이 사용됩니다.",
+ "reset": "사용량 제한이 초기화되었습니다.",
+ "already_used": "이 권한은 이미 사용되었습니다.",
+ "not_limited": "초기화되지 않음: 계정이 현재 제한 상태가 아닙니다.",
+ "cooldown": "초기화되지 않음: 쿨다운이 진행 중입니다.",
+ "ineligible": "이 계정은 자격 요건을 충족하지 않습니다.",
+ "unavailable": "현재 초기화를 사용할 수 없습니다.",
+ "rate_limited": "요청 속도가 제한되었습니다.",
+ "auth_error": "인증이 거부되었습니다."
+ },
+ "routing": {
+ "title": "Routing",
+ "save_failed": "Failed to save setting",
+ "affinity_on": "affinity on",
+ "affinity_off": "affinity off",
+ "affinity_off_warning": "Session affinity is off — prompt caches can miss across accounts.",
+ "settings_aria": "Routing settings",
+ "settings_title": "Affinity",
+ "affinity_label": "Session affinity",
+ "affinity_hint": "Keeps each conversation on the same upstream account so prompt caches stay warm.",
+ "subagents_label": "Subagent affinity",
+ "subagents_hint": "Subagents inherit their parent's credential to reuse caches; disable to spread them across the pool.",
+ "ttl_label": "Binding TTL",
+ "ttl_hint": "How long a session-to-account binding is retained.",
+ "ttl_custom_placeholder": "e.g. 45m",
+ "ttl_custom_label": "Custom TTL",
+ "strategy_label": "Routing strategy",
+ "strategy_hint": "How requests pick a credential when several match.",
+ "strategy_round_robin_desc": "Cycles through matching credentials evenly.",
+ "strategy_weighted_round_robin_desc": "Cycles proportionally to each credential's weight.",
+ "strategy_fill_first_desc": "Saturates the first credential before moving on.",
+ "file_logging_required": "Affinity activity needs file logging enabled to read routing decisions.",
+ "enable_file_logging": "Enable file logging",
+ "activity_aria": "Affinity activity",
+ "activity_title": "Affinity activity",
+ "logs_error": "Failed to load logs",
+ "stat_hit_rate": "Hit rate",
+ "stat_hit_rate_hint": "Share of requests that reused their bound account.",
+ "stat_hits": "Cache hits",
+ "stat_hits_hint": "Requests served by their bound account.",
+ "stat_binds": "New bindings",
+ "stat_binds_hint": "Sessions bound to an account for the first time.",
+ "stat_rebinds": "Cache lost",
+ "stat_rebinds_hint": "Bound account unavailable — the conversation moved and its cache was lost.",
+ "activity_empty": "No session-affinity events in the loaded logs yet.",
+ "accounts_title": "Accounts",
+ "sessions_title": "Recent sessions",
+ "col_account": "Account",
+ "col_active_sessions": "Active sessions",
+ "col_hits": "Hits",
+ "col_binds": "Binds",
+ "col_rebinds": "Rebinds",
+ "col_last_seen": "Last seen",
+ "col_session": "Session",
+ "col_provider_model": "Provider / model",
+ "col_events": "Events",
+ "col_last_event": "Last event",
+ "kind_hit": "cache hit",
+ "kind_bind": "new binding",
+ "kind_rebind": "rebound",
+ "activity_source": "From the last {{count}} affinity events · since {{since}}",
+ "activity_source_none": "Scanning the last {{limit}} log lines",
+ "strategy_short_round_robin": "Round robin",
+ "strategy_short_weighted_round_robin": "Weighted",
+ "strategy_short_fill_first": "Fill first",
+ "sessions_show_all": "Show all ({{count}})",
+ "sessions_show_less": "Show less"
+ }
+}
diff --git a/web/src/i18n/locales/ru.json b/web/src/i18n/locales/ru.json
index c2e9b27ef52..1ecb6dd65b7 100644
--- a/web/src/i18n/locales/ru.json
+++ b/web/src/i18n/locales/ru.json
@@ -466,7 +466,8 @@
"plan_max": "Max",
"plan_max5": "Max 5x",
"plan_max20": "Max 20x",
- "plan_team": "Team"
+ "plan_team": "Team",
+ "cloud_session_credits": "Кредиты облачных сессий"
},
"codex_quota": {
"title": "Квота Codex",
@@ -508,9 +509,11 @@
"plan_plus": "Plus",
"plan_team": "Team",
"plan_free": "Free",
- "plan_pro": "Pro 20x",
- "plan_prolite": "Pro 5x",
- "plan_business_premium": "Business Premium"
+ "plan_pro": "Pro 200",
+ "plan_prolite": "Pro 100",
+ "plan_business_premium": "Business Premium",
+ "reset_not_confirmed": "Сброс квоты не подтверждён. Обновите квоту перед повторной попыткой.",
+ "reset_cooldown_failed": "Квота сброшена, но период ожидания шлюза не снят. В исходном подключении используйте очистку периода ожидания на странице учётных данных; не расходуйте ещё один сброс."
},
"devin_quota": {
"daily": "Остаток на день",
@@ -600,7 +603,8 @@
"paid_health": "Чат платного API доступен. xAI не предоставляет данные об общей квоте для этих учётных данных OAuth.",
"pay_as_you_go_label": "Оплата по факту",
"pay_as_you_go_enabled": "Включено, лимит {{cap}}",
- "pay_as_you_go_disabled": "Отключено"
+ "pay_as_you_go_disabled": "Отключено",
+ "usage_breakdown": "Распределение использования (общая квота)"
},
"vertex_import": {
"title": "Vertex",
@@ -610,7 +614,6 @@
"location_hint": "Оставьте пустым, чтобы использовать регион us-central1 по умолчанию.",
"file_label": "JSON ключ сервисного аккаунта",
"file_hint": "Принимаются только JSON-файлы ключей сервисных аккаунтов Google Cloud.",
- "file_placeholder": "Файл не выбран",
"choose_file": "Выбрать файл",
"import_button": "Импорт",
"file_required": "Сначала выберите файл учётных данных .json",
@@ -619,7 +622,9 @@
"result_project": "ID проекта",
"result_email": "Сервисный аккаунт",
"result_location": "Регион",
- "result_file": "Сохранённый файл"
+ "result_file": "Сохранённый файл",
+ "drop_hint": "Выберите или перетащите JSON-файл",
+ "import_another": "Импортировать ещё"
},
"oauth_excluded": {
"editor_description": "Настройте скрытые модели провайдера: выберите отдельные модели или задайте шаблоны.",
@@ -755,7 +760,6 @@
"devin_oauth_title": "Devin",
"devin_oauth_button": "Подключить",
"devin_oauth_hint": "Вход Devin через браузер. Завершите за 5 минут.",
- "devin_oauth_url_label": "URL авторизации:",
"devin_copy_link": "Копировать ссылку",
"devin_open_link": "Открыть ссылку",
"devin_oauth_status_waiting": "Ожидание аутентификации Devin...",
@@ -773,7 +777,6 @@
"codex_oauth_title": "Codex",
"codex_oauth_button": "Подключить",
"codex_oauth_hint": "Аккаунт ChatGPT через вход в браузере.",
- "codex_oauth_url_label": "URL авторизации:",
"codex_open_link": "Открыть ссылку",
"codex_copy_link": "Скопировать ссылку",
"codex_oauth_status_waiting": "Ожидание аутентификации...",
@@ -784,7 +787,6 @@
"anthropic_oauth_title": "Anthropic",
"anthropic_oauth_button": "Подключить",
"anthropic_oauth_hint": "Claude Pro или Max через вход в браузере.",
- "anthropic_oauth_url_label": "URL авторизации:",
"anthropic_open_link": "Открыть ссылку",
"anthropic_copy_link": "Скопировать ссылку",
"anthropic_oauth_status_waiting": "Ожидание аутентификации...",
@@ -795,7 +797,6 @@
"antigravity_oauth_title": "Antigravity",
"antigravity_oauth_button": "Подключить",
"antigravity_oauth_hint": "Аккаунт Google через вход в браузере.",
- "antigravity_oauth_url_label": "URL авторизации:",
"antigravity_open_link": "Открыть ссылку",
"antigravity_copy_link": "Скопировать ссылку",
"antigravity_oauth_status_waiting": "Ожидание аутентификации...",
@@ -806,7 +807,6 @@
"meta_oauth_title": "Muse (Meta)",
"meta_oauth_button": "Подключить",
"meta_oauth_hint": "Аккаунт Meta через код устройства.",
- "meta_oauth_url_label": "URL авторизации:",
"meta_open_link": "Открыть ссылку",
"meta_copy_link": "Скопировать ссылку",
"meta_oauth_status_waiting": "Ожидание аутентификации...",
@@ -819,7 +819,6 @@
"kimi_ai_oauth_title": "Kimi International",
"kimi_ai_oauth_button": "Подключить",
"kimi_ai_oauth_hint": "Аккаунт kimi.ai через код устройства. Отдельно от Китая.",
- "kimi_ai_oauth_url_label": "Ссылка авторизации:",
"kimi_ai_open_link": "Открыть ссылку",
"kimi_ai_copy_link": "Копировать ссылку",
"kimi_ai_oauth_status_waiting": "Ожидание авторизации...",
@@ -830,7 +829,6 @@
"kimi_oauth_title": "Kimi Китай",
"kimi_oauth_button": "Подключить",
"kimi_oauth_hint": "Аккаунт kimi.com через код устройства.",
- "kimi_oauth_url_label": "URL авторизации:",
"kimi_open_link": "Открыть ссылку",
"kimi_copy_link": "Скопировать ссылку",
"kimi_oauth_status_waiting": "Ожидание аутентификации...",
@@ -841,7 +839,6 @@
"xai_oauth_title": "xAI",
"xai_oauth_button": "Подключить",
"xai_oauth_hint": "Аккаунт Grok через вход в браузере.",
- "xai_oauth_url_label": "URL авторизации:",
"xai_open_link": "Открыть ссылку",
"xai_copy_link": "Скопировать ссылку",
"xai_oauth_status_waiting": "Ожидание аутентификации...",
@@ -852,7 +849,6 @@
"plugin_oauth_title": "{{name}}",
"plugin_oauth_button": "Подключить",
"plugin_oauth_hint": "Аккаунт {{name}} через вход во плагине.",
- "plugin_oauth_url_label": "URL авторизации:",
"plugin_open_link": "Открыть ссылку",
"plugin_copy_link": "Скопировать ссылку",
"plugin_oauth_status_waiting": "Ожидание аутентификации...",
@@ -891,7 +887,27 @@
"remote_access_disabled": "Этот способ входа недоступен при удалённом доступе. Подключитесь с localhost.",
"page_title": "Подключить аккаунт",
"page_description": "Войдите у провайдера, чтобы добавить аккаунт в пул.",
- "back_to_accounts": "К аккаунтам"
+ "back_to_accounts": "К аккаунтам",
+ "kimi_oauth_name": "Kimi — Китай",
+ "kimi_ai_oauth_name": "Kimi — международный",
+ "method_device": "Код устройства",
+ "method_browser": "Вход через браузер",
+ "method_plugin": "Плагин",
+ "tile_waiting": "Ожидание авторизации",
+ "tile_success": "Учётные данные добавлены",
+ "tile_error": "Ошибка авторизации",
+ "meta_providers": "Провайдеров: {{count}}",
+ "meta_waiting": "Ожидают авторизации: {{count}}",
+ "meta_added": "Добавлено за сеанс: {{count}}",
+ "step_open_auth_page": "Откройте страницу входа и подтвердите доступ",
+ "step_enter_device_code": "Введите этот код на странице входа",
+ "optional_step": "Необязательно",
+ "generating_link": "Создание ссылки для входа…",
+ "waiting_background_hint": "Закрытие окна не прервёт вход",
+ "restart_login": "Начать заново",
+ "success_saved_hint": "Учётные данные сохранены — управляйте ими в файлах аутентификации.",
+ "sign_up_prompt": "Нет аккаунта?",
+ "copied": "Скопировано"
},
"stats": {
"success": "Успех",
@@ -1223,11 +1239,14 @@
"plugins_title": "Плагины",
"antigravity_title": "Antigravity",
"devin_title": "Devin",
- "signature_title": "Проверка подписей"
+ "signature_title": "Проверка подписей",
+ "antigravity_credits": "Использовать Antigravity Credits"
},
"server": {
"host": "Адрес хоста",
- "port": "Порт"
+ "port": "Порт",
+ "github_token": "Глобальный токен GitHub",
+ "github_token_hint": "Используется для серверных запросов к GitHub, например обновлений панели и загрузки плагинов. Имеет приоритет над GITHUB_TOKEN; пустое значение использует учётные данные из окружения, а при их отсутствии — анонимные запросы. Совпадающие правила авторизации магазина плагинов имеют приоритет."
},
"tls": {
"title": "Настройка TLS/SSL",
@@ -1363,14 +1382,6 @@
"ws_auth": "Аутентификация WebSocket",
"ws_auth_desc": "Аутентификация WebSocket AI Studio"
},
- "quota": {
- "title": "Резерв по квоте",
- "switch_project": "Переключить проект",
- "switch_project_desc": "Автоматически переходить на другой проект при превышении квоты",
- "switch_preview_model": "Переключить на preview-модель",
- "switch_preview_model_desc": "Переключаться на preview-версию модели при превышении квоты",
- "antigravity_credits": "Использовать Antigravity Credits"
- },
"streaming": {
"title": "Настройки стриминга",
"keepalive_seconds": "Период keepalive (сек)",
@@ -1794,7 +1805,9 @@
"chinese": "中文",
"chinese_tw": "繁體中文(台灣)",
"english": "English",
- "russian": "Русский"
+ "russian": "Русский",
+ "vietnamese": "Tiếng Việt",
+ "korean": "한국어"
},
"theme": {
"switch": "Тема",
@@ -2066,7 +2079,6 @@
"disabledHint": "Отключённые записи не используются шлюзом",
"websockets": "Включить WebSockets",
"testModel": "Тестовая модель",
- "testModelClaudeHint": "Используется только для проверки соединения; не сохраняется",
"testModelAutoWith": "Авто · {{name}}",
"testModelAutoEmpty": "Авто (модели ещё не добавлены)",
"testModelCustom": "{{name}} (своя)",
@@ -2118,7 +2130,8 @@
"baseUrlRequired": "Base URL обязателен",
"weightInteger": "Вес планирования должен быть целым числом",
"weightMax": "Вес планирования не может превышать {{max}}"
- }
+ },
+ "testModelHint": "Используется только для проверки соединения; не сохраняется"
},
"delete": {
"title": "Удалить ресурс",
@@ -2208,7 +2221,10 @@
"ineligible": "Эта учётная запись не соответствует условиям.",
"unavailable": "Сбросы временно недоступны.",
"rate_limited": "Слишком много запросов.",
- "auth_error": "Авторизация отклонена."
+ "auth_error": "Авторизация отклонена.",
+ "expiry_title": "Срок действия ручных сбросов ({{timezone}})",
+ "grant_number": "Пакет {{index}}",
+ "expiry_unknown": "Срок действия неизвестен"
},
"routing": {
"title": "Маршрутизация",
@@ -2267,5 +2283,18 @@
"strategy_short_fill_first": "Первый заполненный",
"sessions_show_all": "Показать все ({{count}})",
"sessions_show_less": "Скрыть"
+ },
+ "plugin_quota": {
+ "empty_title": "Нет файлов плагинов",
+ "empty_desc": "Подключите аккаунт плагина, чтобы просмотреть оставшуюся квоту.",
+ "idle": "Нажмите, чтобы обновить квоту",
+ "loading": "Загрузка квоты…",
+ "load_failed": "Не удалось загрузить квоту: {{message}}",
+ "missing_auth_index": "В файле авторизации отсутствует auth_index",
+ "probe_unsupported": "Декларативные проверки квоты недоступны через API управления v8",
+ "plugin_not_found": "Не найден активный плагин, предоставляющий квоту для {{provider}}",
+ "empty_data": "Нет доступных данных о квоте",
+ "plan_label": "План",
+ "remaining_percent": "Осталось {{percent}}%"
}
}
diff --git a/web/src/i18n/locales/vi.json b/web/src/i18n/locales/vi.json
new file mode 100644
index 00000000000..8d5ea4a826f
--- /dev/null
+++ b/web/src/i18n/locales/vi.json
@@ -0,0 +1,2390 @@
+{
+ "common": {
+ "login": "Đăng nhập",
+ "logout": "Đăng xuất",
+ "back": "Quay lại",
+ "cancel": "Hủy",
+ "confirm": "Xác nhận",
+ "leave": "Rời đi",
+ "stay": "Ở lại",
+ "save": "Lưu",
+ "delete": "Xóa",
+ "edit": "Chỉnh sửa",
+ "add": "Thêm",
+ "update": "Cập nhật",
+ "refresh": "Làm mới",
+ "close": "Đóng",
+ "success": "Thành công",
+ "error": "Lỗi",
+ "info": "Thông tin",
+ "warning": "Cảnh báo",
+ "loading": "Đang tải...",
+ "connecting": "Đang kết nối...",
+ "connected": "Đã kết nối",
+ "disconnected": "Mất kết nối",
+ "connecting_status": "Đang kết nối",
+ "connected_status": "Đã kết nối",
+ "disconnected_status": "Mất kết nối",
+ "yes": "Có",
+ "no": "Không",
+ "not_set": "Chưa đặt",
+ "optional": "Tùy chọn",
+ "required": "Bắt buộc",
+ "api_key": "Key",
+ "base_url": "Địa chỉ",
+ "prefix": "Tiền tố",
+ "proxy_url": "Proxy",
+ "priority": "Ưu tiên",
+ "alias": "Bí danh",
+ "failure": "Thất bại",
+ "unknown_error": "Lỗi không xác định",
+ "quota_update_required": "Vui lòng cập nhật phiên bản CPA hoặc kiểm tra bản cập nhật",
+ "quota_check_credential": "Vui lòng kiểm tra trạng thái credential",
+ "copy": "Sao chép",
+ "expand": "Mở rộng",
+ "collapse": "Thu gọn",
+ "status": "Trạng thái",
+ "action": "Hành động",
+ "custom_headers_label": "Header tùy chỉnh",
+ "custom_headers_hint": "Header HTTP tùy chọn gửi kèm yêu cầu. Để trống để xóa.",
+ "custom_headers_add": "Thêm Header",
+ "custom_headers_key_placeholder": "Tên header, ví dụ X-Custom-Header",
+ "custom_headers_value_placeholder": "Giá trị header",
+ "model_name_placeholder": "Tên model, ví dụ claude-3-5-sonnet-20241022",
+ "model_alias_placeholder": "Bí danh model (tùy chọn)",
+ "invalid_provider_index": "Chỉ mục provider không hợp lệ.",
+ "unsaved_changes_title": "Thay đổi chưa lưu",
+ "unsaved_changes_message": "Bạn có thay đổi chưa lưu. Rời đi bây giờ sẽ mất các thay đổi đó. Bạn có muốn rời đi không?"
+ },
+ "title": {
+ "login": "Trung tâm Quản lý CLI Proxy API",
+ "abbr": "CPAMC",
+ "brand": "CLIProxyAPI"
+ },
+ "splash": {
+ "title": "CLI Proxy API",
+ "subtitle": "Trung tâm Quản lý"
+ },
+ "login": {
+ "subtitle": "Vui lòng nhập thông tin kết nối để truy cập giao diện quản lý",
+ "connection_current": "URL hiện tại",
+ "connection_auto_hint": "Hệ thống sẽ tự động dùng URL hiện tại để kết nối",
+ "custom_connection_label": "URL kết nối tùy chỉnh:",
+ "custom_connection_placeholder": "Ví dụ: https://example.com:8317",
+ "custom_connection_hint": "Mặc định dùng URL hiện tại. Ghi đè tại đây nếu cần.",
+ "remember_password_label": "Ghi nhớ mật khẩu",
+ "management_key_label": "Key quản lý:",
+ "management_key_placeholder": "Nhập key quản lý",
+ "submit_button": "Đăng nhập",
+ "submitting": "Đang kết nối...",
+ "error_backend_detail": "Phản hồi từ backend",
+ "error_required": "Vui lòng điền đầy đủ thông tin kết nối",
+ "error_invalid": "Kết nối thất bại, vui lòng kiểm tra địa chỉ máy chủ, Management API và key quản lý",
+ "error_network": "Kết nối mạng thất bại, vui lòng kiểm tra mạng hoặc địa chỉ máy chủ",
+ "error_timeout": "Kết nối hết thời gian chờ, máy chủ không phản hồi",
+ "error_unauthorized": "Xác thực thất bại, key quản lý bị thiếu hoặc không hợp lệ",
+ "error_forbidden": "Truy cập bị từ chối, quản lý từ xa bị tắt, key quản lý chưa được cấu hình, hoặc IP này bị cấm tạm thời",
+ "error_not_found": "Không tìm thấy Management API, hãy xác nhận địa chỉ máy chủ trỏ đến backend CLIProxyAPI",
+ "error_server": "Backend gặp lỗi khi xử lý yêu cầu quản lý, hãy kiểm tra log máy chủ",
+ "error_cors": "Yêu cầu cross-origin bị chặn, vui lòng kiểm tra cấu hình máy chủ",
+ "error_ssl": "Xác minh chứng chỉ SSL/TLS thất bại",
+ "error_legacy_backend": "Backend này chấp nhận Management API v0 nhưng không cung cấp v8. Vui lòng nâng cấp CLIProxyAPI lên v8 hoặc mới hơn để sử dụng trang quản lý này.",
+ "brand_title": "CLIProxyAPI"
+ },
+ "header": {
+ "refresh_all": "Làm mới tất cả",
+ "logout": "Đăng xuất",
+ "local_trusted_session": "Local trusted session"
+ },
+ "connection": {
+ "status": "Trạng thái kết nối:"
+ },
+ "nav": {
+ "dashboard": "Bảng điều khiển",
+ "quick_start": "Bắt đầu nhanh",
+ "ai_providers": "AI Provider",
+ "auth_files": "File xác thực",
+ "oauth": "Đăng nhập OAuth",
+ "quota_management": "Quản lý Quota",
+ "plugins": "Plugin",
+ "plugin_store": "Cửa hàng Plugin",
+ "config_management": "Bảng cấu hình",
+ "logs": "Trình xem Log",
+ "system_info": "Thông tin Trung tâm Quản lý",
+ "routing": "Routing"
+ },
+ "nav_groups": {
+ "operate": "Vận hành",
+ "gateway": "Gateway",
+ "observe": "Giám sát",
+ "plugin_pages": "Plugin",
+ "control": "Điều khiển"
+ },
+ "nav_meta": {
+ "dashboard": "Tổng quan vận hành",
+ "quick_start": "Thiết lập APIKEY.FUN",
+ "ai_providers": "Định tuyến model upstream",
+ "auth_files": "File xác thực & credential",
+ "oauth": "Ủy quyền OAuth",
+ "quota_management": "API key & giới hạn",
+ "plugins": "Bật/tắt & cấu hình plugin",
+ "plugin_store": "Khám phá & cài đặt plugin",
+ "logs": "Truy vết yêu cầu",
+ "config_management": "Cấu hình gateway",
+ "system_info": "Runtime & chẩn đoán",
+ "routing": "Session affinity & routing"
+ },
+ "dashboard": {
+ "hero_verdict_good": "Mọi hệ thống ổn định",
+ "hero_verdict_warning": "Có chút trục trặc nhỏ",
+ "hero_verdict_critical": "Cần chú ý",
+ "hero_verdict_idle": "Tạm thời yên tĩnh",
+ "hero_verdict_offline": "Đang chờ kết nối",
+ "hero_verdict_connecting": "Đang kết nối",
+ "hero_period": ".",
+ "hero_requests_label": "Yêu cầu đã xử lý",
+ "hero_live": "Trực tiếp",
+ "hero_window_meta": "Cửa sổ trượt {{window}} · bucket 10 phút",
+ "hero_spark_label": "Lưu lượng yêu cầu trong {{window}} vừa qua",
+ "cta_manage_providers": "Quản lý provider",
+ "cta_inspect_logs": "Kiểm tra log",
+ "stats_aria": "Chỉ số chính",
+ "success_rate": "Tỷ lệ thành công",
+ "stat_success_hint": "Trên {{total}} yêu cầu trong cửa sổ",
+ "stat_credentials": "Credential",
+ "stat_credentials_hint": "{{active}} đang hoạt động · {{disabled}} không phục vụ",
+ "stat_credentials_empty": "Chưa tìm thấy file credential nào",
+ "stat_provider_keys": "Key provider",
+ "stat_provider_keys_hint": "API key được cấu hình trên tất cả các thương hiệu",
+ "stat_models": "Model",
+ "stat_models_hint": "Được phục vụ qua proxy endpoint",
+ "traffic_eyebrow": "Lưu lượng trực tiếp",
+ "traffic_title": "Thông lượng, từng khoảng mười phút",
+ "traffic_description": "Số lần thành công và thất bại mỗi bucket 10 phút trong {{window}} vừa qua. Di chuột vào cột để xem phân tách chính xác.",
+ "traffic_table": "Bảng dữ liệu",
+ "traffic_table_window": "Cửa sổ",
+ "traffic_chart_summary": "{{total}} yêu cầu trong {{minutes}} phút vừa qua: {{success}} thành công, {{failed}} thất bại.",
+ "traffic_unavailable": "Chưa có lưu lượng nào được ghi nhận",
+ "traffic_unavailable_hint": "Bộ đếm sẽ xuất hiện khi proxy phục vụ yêu cầu đầu tiên.",
+ "fleet_eyebrow": "Toàn cảnh",
+ "fleet_title": "Mọi provider, đặt cạnh nhau",
+ "fleet_description": "Lưu lượng và tỷ lệ thành công của từng provider trong cùng cửa sổ.",
+ "fleet_empty": "Chưa có lưu lượng provider nào được ghi nhận.",
+ "fleet_credentials": "Credential: {{value}}",
+ "fleet_spark_label": "Lưu lượng yêu cầu của {{provider}}",
+ "fleet_requests": "yêu cầu",
+ "provider_unknown": "Chưa xác định",
+ "health_eyebrow": "Sức khỏe",
+ "health_title": "Trạng thái credential",
+ "health_active": "Đang hoạt động",
+ "health_unavailable": "Không khả dụng",
+ "health_disabled": "Đã tắt",
+ "health_by_type": "Theo provider",
+ "health_empty": "Chưa tìm thấy file credential nào.",
+ "health_link": "Mở file xác thực",
+ "runtime_eyebrow": "Runtime",
+ "runtime_title": "Tổng quan cấu hình",
+ "runtime_routing": "Chiến lược định tuyến",
+ "runtime_retry": "Thử lại yêu cầu",
+ "runtime_management_keys": "Key quản lý",
+ "runtime_version": "Phiên bản máy chủ",
+ "runtime_build": "Ngày build",
+ "runtime_proxy": "Proxy upstream",
+ "runtime_debug": "Debug",
+ "runtime_file_logging": "Ghi log ra file",
+ "runtime_request_log": "Log yêu cầu",
+ "runtime_ws_auth": "Xác thực WebSocket",
+ "runtime_model_prefix": "Tiền tố model",
+ "runtime_link": "Chỉnh sửa cấu hình",
+ "cta_eyebrow": "Tiếp theo",
+ "cta_title": "Nên đi đâu từ đây",
+ "cta_providers_desc": "Thêm API key, đặt ưu tiên và kiểm thử các thương hiệu.",
+ "cta_auth_files_desc": "Tải lên, làm mới và vô hiệu hóa credential OAuth.",
+ "cta_config_desc": "Tinh chỉnh định tuyến, thử lại, ghi log và truy cập.",
+ "cta_quota_desc": "Kiểm tra quota còn lại của từng credential.",
+ "cta_logs_desc": "Theo dõi yêu cầu và tải báo cáo lỗi.",
+ "cta_system_desc": "Chi tiết phiên bản và thông tin trung tâm quản lý.",
+ "window_m": "{{minutes}}p",
+ "window_h": "{{hours}}g",
+ "window_hm": "{{hours}}g {{minutes}}p",
+ "page_title": "Dashboard",
+ "requests_title": "Requests",
+ "providers_title": "Providers",
+ "configuration_title": "Configuration",
+ "edit": "Edit",
+ "stat_requests_window": "Requests ({{window}})",
+ "stat_accounts": "Accounts",
+ "runtime_affinity": "Session affinity",
+ "runtime_enabled": "On",
+ "runtime_disabled": "Off",
+ "col_provider": "Provider",
+ "col_accounts": "Accounts",
+ "col_requests": "Requests",
+ "stat_accounts_unavailable_one": "{{count}} unavailable",
+ "stat_accounts_unavailable_other": "{{count}} unavailable"
+ },
+ "basic_settings": {
+ "debug_enable": "Bật chế độ Debug",
+ "proxy_url_label": "URL Proxy:",
+ "retry_count_label": "Số lần thử lại:",
+ "logging_to_file_enable": "Bật ghi log ra file",
+ "request_log_title": "Ghi log yêu cầu",
+ "request_log_enable": "Bật ghi log yêu cầu",
+ "request_log_warning": "Hãy tắt tính năng này trừ khi bạn cần gỡ lỗi chi tiết.",
+ "ws_auth_enable": "Yêu cầu xác thực cho /ws/*",
+ "routing_strategy_round_robin": "round-robin (luân phiên)",
+ "routing_strategy_weighted_round_robin": "weighted-round-robin (luân phiên có trọng số)",
+ "routing_strategy_fill_first": "fill-first (ưu tiên lấp đầy)"
+ },
+ "auth_files": {
+ "title": "Quản lý File xác thực",
+ "meta_total": "{{count}} credential",
+ "meta_active": "{{count}} đang hoạt động",
+ "meta_problem": "{{count}} có vấn đề",
+ "empty_title": "Chưa có credential nào",
+ "empty_desc": "Tải lên file xác thực hoặc kết nối provider qua OAuth để bắt đầu.",
+ "empty_oauth_link": "Kết nối qua OAuth",
+ "no_results_clear": "Xóa bộ lọc",
+ "title_section": "File xác thực",
+ "upload_button": "Tải file lên",
+ "delete_all_button": "Xóa tất cả",
+ "search_empty_title": "Không có file phù hợp",
+ "search_empty_desc": "Hãy thử đổi bộ lọc hoặc xóa ô tìm kiếm.",
+ "file_size": "Kích thước",
+ "file_modified": "Đã sửa",
+ "health_status_label": "Sức khỏe",
+ "health_status_healthy": "Khỏe mạnh",
+ "health_status_warning": "Cảnh báo",
+ "health_status_disabled": "Đã tắt",
+ "download_button": "Tải xuống",
+ "manual_refresh_button": "Làm mới credential OAuth",
+ "manual_refresh_requested": "Đã yêu cầu làm mới credential cho \"{{name}}\"",
+ "manual_refresh_failed": "Không thể yêu cầu làm mới credential cho \"{{name}}\": {{message}}",
+ "delete_button": "Xóa",
+ "delete_confirm": "Bạn có chắc muốn xóa file",
+ "delete_all_confirm": "Bạn có chắc muốn xóa tất cả file xác thực? Thao tác này không thể hoàn tác!",
+ "delete_filtered_confirm": "Bạn có chắc muốn xóa tất cả file xác thực {{type}}? Thao tác này không thể hoàn tác!",
+ "delete_problem_button": "Xóa file có vấn đề",
+ "delete_problem_button_with_type": "Xóa file {{type}} có vấn đề",
+ "delete_problem_confirm": "Bạn có chắc muốn xóa tất cả file xác thực có vấn đề? Thao tác này không thể hoàn tác!",
+ "delete_problem_filtered_confirm": "Bạn có chắc muốn xóa tất cả file xác thực {{type}} có vấn đề? Thao tác này không thể hoàn tác!",
+ "delete_filtered_result_button": "Xóa kết quả đã lọc",
+ "delete_filtered_result_confirm": "Bạn có chắc muốn xóa các file xác thực trong kết quả lọc hiện tại? Thao tác này không thể hoàn tác!",
+ "upload_error_json": "Chỉ chấp nhận file JSON",
+ "upload_error_size": "Kích thước file không được vượt quá {{maxSize}}",
+ "upload_success": "Tải file lên thành công",
+ "download_success": "Tải file xuống thành công",
+ "delete_success": "Xóa file thành công",
+ "delete_all_success": "Đã xóa thành công",
+ "delete_filtered_success": "Đã xóa thành công {{count}} file xác thực {{type}}",
+ "delete_filtered_partial": "Hoàn tất xóa file xác thực {{type}}: {{success}} thành công, {{failed}} thất bại",
+ "delete_filtered_none": "Không có file xác thực nào xóa được trong bộ lọc hiện tại ({{type}})",
+ "delete_problem_success": "Đã xóa thành công {{count}} file xác thực có vấn đề",
+ "delete_problem_filtered_success": "Đã xóa thành công {{count}} file xác thực {{type}} có vấn đề",
+ "delete_problem_partial": "Hoàn tất xóa file xác thực có vấn đề: {{success}} thành công, {{failed}} thất bại",
+ "delete_problem_filtered_partial": "Hoàn tất xóa file xác thực {{type}} có vấn đề: {{success}} thành công, {{failed}} thất bại",
+ "delete_problem_none": "Không có file xác thực có vấn đề nào xóa được trong bộ lọc hiện tại",
+ "delete_problem_filtered_none": "Không có file xác thực {{type}} có vấn đề nào xóa được trong bộ lọc hiện tại",
+ "delete_filtered_result_success": "Đã xóa thành công {{count}} file xác thực từ kết quả lọc",
+ "delete_filtered_result_partial": "Hoàn tất xóa kết quả lọc: {{success}} thành công, {{failed}} thất bại",
+ "delete_filtered_result_none": "Không có file xác thực nào xóa được trong kết quả lọc hiện tại",
+ "pagination_prev": "Trước",
+ "pagination_next": "Sau",
+ "pagination_info": "Trang {{current}} / {{total}} · {{count}} file",
+ "search_label": "Tìm kiếm cấu hình",
+ "search_placeholder": "Lọc theo tên, tài khoản, loại hoặc provider. Dùng * làm ký tự đại diện",
+ "problem_filter_label": "Lọc trạng thái",
+ "problem_filter_all": "Tất cả",
+ "problem_filter_enabled": "Đang bật",
+ "problem_filter_problem": "Có vấn đề",
+ "problem_filter_disabled": "Đã tắt",
+ "display_options_label": "Tùy chọn hiển thị",
+ "compact_mode_label": "Chế độ thu gọn",
+ "sort_label": "Sắp xếp",
+ "sort_default": "Mặc định",
+ "sort_az": "Tên A-Z",
+ "sort_priority": "Ưu tiên",
+ "priority_display": "Ưu tiên",
+ "weight_display": "Trọng số WRR",
+ "page_size_label": "Mỗi trang",
+ "filter_all": "Tất cả",
+ "filter_qwen": "Qwen",
+ "filter_gemini": "Gemini",
+ "filter_kimi": "Kimi",
+ "filter_aistudio": "AIStudio",
+ "filter_claude": "Claude",
+ "filter_codex": "Codex",
+ "filter_antigravity": "Antigravity",
+ "filter_xai": "xAI",
+ "filter_iflow": "iFlow",
+ "filter_vertex": "Vertex",
+ "filter_empty": "Trống",
+ "filter_unknown": "Khác",
+ "type_virtual": "File xác thực ảo",
+ "models_button": "Model",
+ "models_title": "Model được hỗ trợ",
+ "models_loading": "Đang tải danh sách model...",
+ "models_empty": "Không có model khả dụng cho credential này",
+ "models_empty_desc": "Credential này có thể chưa được máy chủ nạp, hoặc chưa có model nào gắn với nó.",
+ "models_unsupported": "Phiên bản hiện tại không hỗ trợ tính năng này",
+ "models_unsupported_desc": "Vui lòng cập nhật CLI Proxy API lên phiên bản mới nhất và thử lại",
+ "models_excluded_badge": "Đã tắt",
+ "models_excluded_hint": "Model OAuth này đã bị tắt",
+ "status_toggle_label": "Đang bật",
+ "status_enabled_success": "\"{{name}}\" đã được bật",
+ "status_disabled_success": "\"{{name}}\" đã được tắt",
+ "batch_status_success": "Đã cập nhật thành công {{count}} file",
+ "batch_status_partial": "{{success}} đã cập nhật, {{failed}} thất bại",
+ "batch_delete_title": "Xóa các file đã chọn",
+ "batch_delete_confirm": "Bạn có chắc muốn xóa {{count}} file?",
+ "batch_selected": "Đã chọn {{count}}",
+ "batch_toolbar_label": "Hành động hàng loạt",
+ "batch_select_all": "Chọn tất cả",
+ "batch_select_page": "Chọn trang này",
+ "batch_select_filtered": "Chọn đã lọc",
+ "batch_invert_page": "Đảo lựa chọn trang",
+ "batch_deselect": "Bỏ chọn",
+ "batch_download": "Tải xuống đã chọn",
+ "batch_download_success": "Đã bắt đầu tải xuống {{count}} file",
+ "batch_download_partial": "Hoàn tất tải xuống: {{success}} thành công, {{failed}} thất bại",
+ "batch_enable": "Bật",
+ "batch_disable": "Tắt",
+ "prefix_proxy_button": "Chi tiết / Chỉnh sửa File xác thực",
+ "prefix_proxy_loading": "Đang tải file xác thực...",
+ "prefix_proxy_info_label": "Thông tin file xác thực (info)",
+ "prefix_proxy_source_label": "JSON file xác thực (xem trước)",
+ "prefix_proxy_invalid_content_label": "Nội dung đã tải (bị cắt)",
+ "prefix_label": "Tiền tố (prefix)",
+ "proxy_url_label": "URL Proxy (proxy_url)",
+ "proxy_url_placeholder": "socks5://username:password@proxy_ip:port/",
+ "priority_label": "Ưu tiên (priority)",
+ "priority_placeholder": "ví dụ 10 hoặc -1",
+ "priority_hint": "Chỉ nhận số nguyên. Giá trị không hợp lệ sẽ bị bỏ qua. Giá trị lớn hơn nghĩa là ưu tiên cao hơn.",
+ "weight_label": "Trọng số điều phối (weight)",
+ "weight_hint": "Mặc định là 1. Giá trị ≤ 0 sẽ loại credential này khỏi điều phối có trọng số; tối đa 1.000.000.",
+ "weight_invalid_integer": "Trọng số phải là số nguyên.",
+ "weight_invalid_max": "Trọng số không được vượt quá 1.000.000.",
+ "disable_cooling_label": "Tắt cooldown lũy thừa (disable_cooling)",
+ "disable_cooling_hint": "Bỏ qua cooldown thất bại và backoff lũy thừa chỉ cho credential này; các credential khác không bị ảnh hưởng.",
+ "websockets_label": "WebSocket (websockets)",
+ "websockets_hint": "Bật truyền tải websocket của Responses API cho credential này.",
+ "using_api_label": "Dùng API chính thức (using_api)",
+ "using_api_hint": "Dùng API xAI chính thức khi bật; dùng chat-proxy Grok CLI khi tắt.",
+ "note_label": "Ghi chú",
+ "note_placeholder": "Nhập ghi chú, ví dụ: Tài khoản của John",
+ "note_hint": "Tùy chọn. Dùng để mô tả mục đích hoặc chủ sở hữu của credential này; để trống nếu không cần.",
+ "excluded_models_label": "Model bị loại trừ (excluded_models)",
+ "headers_label": "Header tùy chỉnh (headers)",
+ "headers_placeholder": "{\n \"Header-Name\": \"value\"\n}",
+ "headers_hint": "Nhập header HTTP tùy chỉnh dưới dạng đối tượng JSON, ví dụ {\"X-My-Header\": \"value\"}",
+ "headers_invalid_json": "Header tùy chỉnh phải là JSON hợp lệ.",
+ "headers_invalid_object": "Header tùy chỉnh phải là một đối tượng JSON.",
+ "headers_invalid_value": "Mỗi giá trị header tùy chỉnh phải là chuỗi.",
+ "prefix_proxy_invalid_json": "File xác thực này không phải đối tượng JSON nên không thể chỉnh sửa các trường.",
+ "prefix_proxy_html_challenge": "Nội dung tải xuống là trang HTML challenge, không phải đối tượng JSON xác thực. Hãy xác thực lại hoặc thay file xác thực này trước khi chỉnh sửa.",
+ "prefix_proxy_saved_success": "Đã cập nhật file xác thực \"{{name}}\" thành công",
+ "quota_refresh_single": "Làm mới quota",
+ "quota_refresh_hint": "Chỉ làm mới quota cho credential này",
+ "quota_refresh_success": "Đã làm mới quota cho \"{{name}}\"",
+ "quota_refresh_failed": "Không thể làm mới quota cho \"{{name}}\": {{message}}",
+ "card_select": "Chọn credential {{name}}",
+ "card_toggle": "Bật credential {{name}}",
+ "card_requests": "Yêu cầu",
+ "cooldown_unknown": "Trạng thái cooldown không xác định",
+ "cooldown_models_one": "{{count}} model đang cooldown",
+ "cooldown_models_other": "{{count}} model đang cooldown",
+ "cooldown_credential": "Cooldown toàn bộ credential",
+ "cooldown_credential_and_models_one": "Credential + {{count}} model đang cooldown",
+ "cooldown_credential_and_models_other": "Credential + {{count}} model đang cooldown",
+ "cooldown_scope_credential": "Toàn bộ credential",
+ "cooldown_earliest": "Sớm nhất kết thúc sau ~{{time}}",
+ "cooldown_elapsed": "Bộ đếm cooldown đã hết hạn",
+ "cooldown_timer_elapsed": "Bộ đếm thời gian đã hết hạn",
+ "cooldown_refresh_hint": "Làm mới danh sách để xác nhận",
+ "cooldown_seconds": "{{count}} giây",
+ "cooldown_minutes": "{{count}} phút",
+ "cooldown_hours": "{{count}} giờ",
+ "cooldown_http_status": "HTTP upstream {{status}}",
+ "cooldown_backoff": "Mức độ backoff {{level}}",
+ "cooldown_deadline": "Hạn chót đếm giờ",
+ "cooldown_observed": "Ảnh chụp nhanh lúc",
+ "cooldown_note": "Ảnh chụp nhanh điều phối cục bộ; thời gian còn lại chỉ là ước tính. Việc hết hạn không đảm bảo credential khả dụng, phục hồi quota hay tự động thử lại. Tên model là key trạng thái nội bộ; mức độ backoff không phải số lần thất bại.",
+ "cooldown_reset_button": "Xóa cooldown",
+ "cooldown_reset_hint": "Xóa cooldown định tuyến cục bộ của credential này",
+ "cooldown_reset_title": "Xóa cooldown của credential?",
+ "cooldown_reset_confirm": "Xóa cooldown định tuyến cục bộ cho “{{name}}”? Điều này có thể khiến credential đủ điều kiện nhận yêu cầu tiếp theo ngay lập tức, nhưng không khôi phục quota ở upstream.",
+ "cooldown_reset_success": "Đã xóa cooldown cho {{name}}.",
+ "cooldown_reset_failed": "Không thể xóa cooldown cho {{name}}: {{message}}",
+ "cooldown_reason_quota": "Hạn chế quota",
+ "cooldown_reason_credential_quota": "Hạn chế quota của credential",
+ "cooldown_reason_cloudflare_challenge": "Thử thách Cloudflare",
+ "cooldown_reason_invalid_grant": "Cấp quyền không hợp lệ",
+ "cooldown_reason_unauthorized": "Chưa được ủy quyền (Unauthorized)",
+ "cooldown_reason_payment_required": "Truy cập bị hạn chế (402/403; không phải chẩn đoán thanh toán)",
+ "cooldown_reason_not_found": "Không tìm thấy tài nguyên",
+ "cooldown_reason_model_not_supported": "Model không được hỗ trợ",
+ "cooldown_reason_transient_error": "Lỗi tạm thời từ upstream",
+ "cooldown_reason_unknown": "Lý do khác hoặc không xác định",
+ "refresh_all_button": "Làm mới tất cả credential",
+ "refresh_all_confirm": "Làm mới tất cả credential đủ điều kiện trên máy chủ (không chỉ các kết quả lọc hiện tại). Backend sẽ bỏ qua các credential bị tắt hoặc không đủ điều kiện. Thao tác này không tải lại danh sách hay đặt lại quota và có thể mất vài phút. Tiếp tục?",
+ "refresh_all_results": "Kết quả làm mới credential",
+ "refresh_all_summary": "Đã làm mới {{success}} mục, thất bại {{failed}} mục.",
+ "refresh_all_empty": "Không có credential nào đủ điều kiện để làm mới.",
+ "refresh_all_failed": "Không thể lấy kết quả làm mới hoàn chỉnh: {{message}}. Một số credential có thể đã được làm mới. Vui lòng kiểm tra danh sách trước khi thử lại.",
+ "refresh_result_success": "Làm mới thành công",
+ "refresh_result_failed": "Làm mới thất bại",
+ "filter_meta": "Muse (Meta)",
+ "filter_devin": "Devin",
+ "weight_tooltip": "Mặc định là 1. Giá trị nhỏ hơn hoặc bằng 0 sẽ loại trừ credential này khỏi điều phối theo trọng số; tối đa 1.000.000. Sau khi nhập giá trị, hãy bật round robin có trọng số để có hiệu lực.",
+ "policy_alias_name": "Bí danh",
+ "policy_alias_display_name": "Tên hiển thị",
+ "policy_alias_fork": "Giữ lại model gốc trong danh sách",
+ "policy_alias_force_mapping": "Viết lại tên model trong phản hồi thành bí danh",
+ "policy_unsupported": "Dữ liệu hiện tại không thể chỉnh sửa bằng biểu mẫu này và sẽ được giữ nguyên. Chọn Kế thừa để xóa dữ liệu, hoặc Thay thế để bắt đầu danh sách mới.",
+ "policy_replace": "Thay thế dữ liệu hiện có",
+ "policy_retry_label": "Số lần thử lại yêu cầu của credential",
+ "policy_inherit": "Kế thừa",
+ "policy_custom": "Tùy chỉnh",
+ "policy_retry_count": "Số lần thử lại",
+ "policy_retry_hint": "Kế thừa sẽ sử dụng cài đặt thử lại yêu cầu toàn cục. Tùy chỉnh bằng 0 sẽ vô hiệu hóa rõ ràng việc thử lại yêu cầu cho credential này.",
+ "policy_aliases_label": "Bí danh model của tài khoản",
+ "policy_aliases_hint": "Bí danh của tài khoản được kiểm tra trước; bí danh không khớp sẽ chuyển về bí danh kênh. Kế thừa hoặc danh sách trống chỉ xóa bí danh của tài khoản.",
+ "policy_rules_label": "Quy tắc lỗi của tài khoản",
+ "policy_rules_hint": "Các quy tắc tùy chỉnh được ưu tiên theo thứ tự danh sách. Kế thừa hoặc danh sách trống sẽ sử dụng quy tắc kế thừa; điều này không vô hiệu hóa chúng. Mẫu biểu thức chính quy (Regex) dùng cú pháp của Go.",
+ "policy_retry_invalid": "Nhập một số nguyên an toàn không âm, hoặc chọn Kế thừa.",
+ "policy_aliases_invalid": "Nhập tên model và bí danh không để trống cho mỗi hàng mới hoặc đã chỉnh sửa.",
+ "policy_rules_invalid": "Hoàn thành mỗi quy tắc đã chỉnh sửa với mã trạng thái dương, một hành động và ít nhất một điều kiện khớp không để trống.",
+ "meta_accounts_one": "{{count}} account",
+ "refresh_status": "Refresh status",
+ "connect_account": "Connect account",
+ "row_status_active": "Active",
+ "row_status_problem": "Needs attention",
+ "row_status_disabled": "Disabled",
+ "meta_accounts_other": "{{count}} accounts",
+ "advanced_section": "Advanced",
+ "meta_problem_one": "{{count}} needs attention",
+ "meta_problem_other": "{{count}} need attention"
+ },
+ "antigravity_subscription": {
+ "plan_unknown": "Không rõ",
+ "plan_free": "Miễn phí",
+ "plan_pro": "Pro",
+ "plan_ultra": "Ultra",
+ "plan_ultra_lite": "Ultra Lite"
+ },
+ "antigravity_quota": {
+ "title": "Quota Antigravity",
+ "empty_title": "Không có File xác thực Antigravity",
+ "empty_desc": "Tải lên credential Antigravity để xem quota còn lại.",
+ "idle": "Nhấn vào đây để làm mới quota",
+ "loading": "Đang tải quota...",
+ "load_failed": "Không thể tải quota: {{message}}",
+ "missing_auth_index": "File xác thực thiếu auth_index",
+ "missing_project_id": "Credential Antigravity thiếu project_id. Đăng nhập lại hoặc làm mới credential để xác định project.",
+ "empty_models": "Chưa có dữ liệu quota",
+ "plan_label": "Gói",
+ "group_gemini_models": "Model Gemini",
+ "group_claude_gpt_models": "Model Claude và GPT",
+ "group_models_description": "Các model trong nhóm này: {{models}}",
+ "weekly_limit": "Giới hạn tuần",
+ "daily_limit": "Giới hạn ngày",
+ "five_hour_limit": "Giới hạn 5 giờ",
+ "monthly_limit": "Giới hạn tháng",
+ "quota_available": "Quota khả dụng",
+ "remaining_percent": "Còn lại {{percent}}%",
+ "refreshes_in": "Làm mới sau {{duration}}",
+ "refresh_available": "Có thể làm mới",
+ "duration_day_hour": "{{days}}n {{hours}}g",
+ "duration_hour_minute": "{{hours}}g {{minutes}}p",
+ "duration_minute": "{{minutes}}p",
+ "duration_less_than_minute": "<1p",
+ "refresh_button": "Làm mới Quota",
+ "fetch_all": "Lấy tất cả"
+ },
+ "plugin_quota": {
+ "empty_title": "Không có File xác thực Plugin",
+ "empty_desc": "Kết nối tài khoản plugin để xem quota còn lại.",
+ "idle": "Nhấn vào đây để làm mới quota",
+ "loading": "Đang tải quota...",
+ "load_failed": "Không thể tải quota: {{message}}",
+ "missing_auth_index": "File xác thực thiếu auth_index",
+ "probe_unsupported": "API quản lý v8 chưa hỗ trợ thăm dò quota khai báo (quota_probe)",
+ "plugin_not_found": "Không tìm thấy plugin đang bật cung cấp quota cho {{provider}}",
+ "empty_data": "Chưa có dữ liệu quota",
+ "plan_label": "Gói",
+ "remaining_percent": "Còn lại {{percent}}%"
+ },
+ "claude_quota": {
+ "title": "Quota Claude",
+ "empty_title": "Không có File OAuth Claude",
+ "empty_desc": "Đăng nhập bằng Claude OAuth để xem quota.",
+ "idle": "Nhấn vào đây để làm mới quota",
+ "loading": "Đang tải quota...",
+ "load_failed": "Không thể tải quota: {{message}}",
+ "missing_auth_index": "File xác thực thiếu auth_index",
+ "empty_windows": "Chưa có dữ liệu quota",
+ "refresh_button": "Làm mới Quota",
+ "fetch_all": "Lấy tất cả",
+ "five_hour": "Giới hạn 5 giờ",
+ "seven_day": "Giới hạn 7 ngày",
+ "seven_day_oauth_apps": "OAuth apps 7 ngày",
+ "seven_day_opus": "Opus 7 ngày",
+ "seven_day_sonnet": "Sonnet 7 ngày",
+ "seven_day_cowork": "Cowork 7 ngày",
+ "iguana_necktie": "Iguana Necktie",
+ "seven_day_fable": "Fable 5 · 7 ngày",
+ "cloud_session_credits": "Tín dụng phiên đám mây",
+ "extra_usage_label": "Sử dụng thêm",
+ "plan_label": "Gói",
+ "plan_unknown": "Không rõ",
+ "plan_free": "Miễn phí",
+ "plan_pro": "Pro",
+ "plan_max": "Max",
+ "plan_max5": "Max 5x",
+ "plan_max20": "Max 20x",
+ "plan_team": "Team"
+ },
+ "codex_quota": {
+ "title": "Quota Codex",
+ "empty_title": "Không có File xác thực Codex",
+ "empty_desc": "Tải lên credential Codex để xem quota.",
+ "idle": "Nhấn vào đây để làm mới quota",
+ "loading": "Đang tải quota...",
+ "load_failed": "Không thể tải quota: {{message}}",
+ "missing_auth_index": "File xác thực thiếu auth_index",
+ "missing_account_id": "Credential Codex thiếu ID tài khoản ChatGPT",
+ "empty_windows": "Chưa có dữ liệu quota",
+ "no_access": "Credential này không có quyền truy cập Codex (gói: free).",
+ "refresh_button": "Làm mới Quota",
+ "fetch_all": "Lấy tất cả",
+ "primary_window": "Giới hạn 5 giờ",
+ "secondary_window": "Giới hạn tuần",
+ "team_secondary_window": "Giới hạn tháng",
+ "code_review_primary_window": "Giới hạn 5 giờ cho code review",
+ "code_review_secondary_window": "Giới hạn tuần cho code review",
+ "code_review_team_secondary_window": "Giới hạn tháng cho code review",
+ "additional_primary_window": "Giới hạn 5 giờ của {{name}}",
+ "additional_secondary_window": "Giới hạn tuần của {{name}}",
+ "additional_team_secondary_window": "Giới hạn tháng của {{name}}",
+ "plan_label": "Gói",
+ "expires_label": "Thời gian gia hạn",
+ "reset_credits_label": "Lượt đặt lại thủ công",
+ "reset_credits_expiry_label": "Hết hạn đặt lại thủ công ({{timezone}})",
+ "reset_credit_number": "Lượt đặt lại {{index}}",
+ "reset_credits_expiry_failed": "Không thể tải thời hạn đặt lại thủ công: {{message}}",
+ "reset_credits_invalid_payload": "Phản hồi thời hạn đặt lại thủ công không hợp lệ",
+ "reset_button": "Đặt lại quota",
+ "reset_confirm_title": "Đặt lại quota Codex",
+ "reset_confirm_message": "Thao tác này sẽ dùng 1 lượt đặt lại thủ công để đặt lại quota Codex cho \"{{name}}\". Tiếp tục?",
+ "reset_confirm_button": "Đặt lại quota",
+ "reset_not_confirmed": "Chưa xác nhận đặt lại quota thành công. Hãy làm mới quota trước khi thử lại.",
+ "reset_cooldown_failed": "Quota đã được đặt lại nhưng không thể xóa thời gian chờ của gateway. Trên kết nối ban đầu, hãy dùng chức năng xóa thời gian chờ ở trang tệp xác thực; không sử dụng thêm lượt đặt lại.",
+ "reset_success": "Đã đặt lại quota Codex cho \"{{name}}\"",
+ "reset_failed": "Không thể đặt lại quota Codex cho \"{{name}}\": {{message}}",
+ "plan_plus": "Plus",
+ "plan_team": "Team",
+ "plan_free": "Miễn phí",
+ "plan_pro": "Pro 20x",
+ "plan_prolite": "Pro 5x",
+ "credit_balance_label": "Số dư Credit",
+ "credit_unlimited": "Không giới hạn",
+ "plan_business_premium": "Business Premium"
+ },
+ "kimi_quota": {
+ "title": "Quota Kimi",
+ "empty_title": "Không có File xác thực Kimi",
+ "empty_desc": "Tải lên credential Kimi để xem quota còn lại.",
+ "idle": "Nhấn vào đây để làm mới quota",
+ "loading": "Đang tải quota...",
+ "load_failed": "Không thể tải quota: {{message}}",
+ "missing_auth_index": "File xác thực thiếu auth_index",
+ "empty_data": "Chưa có dữ liệu quota",
+ "refresh_button": "Làm mới Quota",
+ "fetch_all": "Lấy tất cả",
+ "weekly_limit": "Giới hạn tuần",
+ "limit_window": "Giới hạn {{duration}}",
+ "limit_index": "Giới hạn #{{index}}",
+ "reset_hint": "đặt lại sau {{hint}}",
+ "domain_unavailable": "Không thể đọc miền của credential Kimi. Cần có file xác thực hợp lệ và có thể tải xuống.",
+ "stale_request": "Kết nối hoặc credential đã thay đổi. Vui lòng thử lại.",
+ "monthly_limit": "Giới hạn tháng"
+ },
+ "xai_quota": {
+ "title": "Quota Grok",
+ "empty_title": "Không có File xác thực xAI/Grok",
+ "empty_desc": "Đăng nhập bằng xAI OAuth để xem quota Grok.",
+ "idle": "Nhấn vào đây để làm mới quota",
+ "loading": "Đang tải quota...",
+ "load_failed": "Không thể tải quota: {{message}}",
+ "missing_auth_index": "File xác thực thiếu auth_index",
+ "empty_data": "Chưa có dữ liệu quota",
+ "refresh_button": "Làm mới Quota",
+ "fetch_all": "Lấy tất cả",
+ "weekly_limit": "Giới hạn tuần",
+ "monthly_credits": "Credit tháng",
+ "used_percent": "Đã dùng {{percent}}",
+ "reset_at": "Đặt lại lúc {{time}}",
+ "product_usage": "Mức sử dụng {{product}}",
+ "usage_breakdown": "Chi tiết sử dụng (hạn mức dùng chung)",
+ "plan_label": "Gói",
+ "plan_supergrok": "SuperGrok",
+ "plan_supergrok_heavy": "SuperGrok Heavy",
+ "plan_paid": "Trả phí",
+ "paid_health": "API chat trả phí khả dụng. xAI không công bố tổng quota cho credential OAuth này.",
+ "pay_as_you_go_label": "Trả theo mức sử dụng",
+ "pay_as_you_go_enabled": "Đang bật, giới hạn {{cap}}",
+ "pay_as_you_go_disabled": "Đã tắt",
+ "usage_unavailable": "Dữ liệu mức sử dụng từ xAI hiện không khả dụng",
+ "resets_label": "Đặt lại",
+ "prepaid": "Trả trước"
+ },
+ "vertex_import": {
+ "title": "Đăng nhập Vertex bằng JSON",
+ "description": "Tải lên file JSON service account của Google để lưu thành auth-dir/vertex-.json theo cùng quy tắc với công cụ vertex-import của CLI.",
+ "location_label": "Khu vực (tùy chọn)",
+ "location_placeholder": "us-central1",
+ "location_hint": "Để trống để dùng khu vực mặc định us-central1.",
+ "file_label": "JSON key của service account",
+ "file_hint": "Chỉ chấp nhận file JSON key của service account Google Cloud.",
+ "choose_file": "Chọn File",
+ "import_button": "Nhập Credential Vertex",
+ "file_required": "Hãy chọn file credential .json trước",
+ "success": "Đã nhập credential Vertex thành công",
+ "result_title": "Đã lưu credential",
+ "result_project": "Project ID",
+ "result_email": "Service account",
+ "result_location": "Khu vực",
+ "result_file": "File đã lưu",
+ "drop_hint": "Chọn hoặc kéo thả file JSON",
+ "import_another": "Nhập thêm"
+ },
+ "oauth_excluded": {
+ "title": "Vô hiệu hóa Model OAuth",
+ "description": "Việc vô hiệu hóa model theo từng provider được hiển thị dưới dạng thẻ; nhấn vào thẻ để chỉnh sửa hoặc xóa. Hỗ trợ ký tự đại diện * và phạm vi áp dụng theo bộ lọc file xác thực.",
+ "add": "Thêm vô hiệu hóa",
+ "add_title": "Thêm vô hiệu hóa model của provider",
+ "edit_title": "Chỉnh sửa vô hiệu hóa model cho {{provider}}",
+ "provider_label": "Provider",
+ "provider_placeholder": "ví dụ codex / openai",
+ "provider_hint": "Mặc định theo bộ lọc hiện tại; chọn provider có sẵn hoặc nhập tên mới.",
+ "models_label": "Model cần vô hiệu hóa",
+ "save": "Lưu/Cập nhật",
+ "save_success": "Đã cập nhật vô hiệu hóa model",
+ "save_failed": "Không thể cập nhật vô hiệu hóa model",
+ "delete": "Xóa Provider",
+ "delete_confirm": "Xóa vô hiệu hóa model của {{provider}}?",
+ "delete_success": "Đã xóa vô hiệu hóa model của provider",
+ "delete_failed": "Không thể xóa vô hiệu hóa model",
+ "no_models": "Chưa cấu hình model bị vô hiệu hóa nào",
+ "model_count": "{{count}} model bị vô hiệu hóa",
+ "list_empty_all": "Chưa có vô hiệu hóa model provider nào; nhấn “Thêm vô hiệu hóa” để tạo.",
+ "provider_required": "Vui lòng nhập provider trước",
+ "upgrade_required": "Phiên bản CPA hiện tại không hỗ trợ vô hiệu hóa model OAuth. Vui lòng nâng cấp.",
+ "upgrade_required_title": "Vui lòng nâng cấp CLI Proxy API",
+ "upgrade_required_desc": "Phiên bản máy chủ hiện tại không hỗ trợ lấy danh sách vô hiệu hóa model OAuth. Vui lòng nâng cấp lên phiên bản CPA (CLI Proxy API) mới nhất và thử lại.",
+ "editor_description": "Chọn các model mà provider hiển thị bằng cách chọn riêng lẻ hoặc dùng quy tắc ký tự đại diện (wildcard).",
+ "models_hint": "Mở rộng danh sách để chọn model hoặc nhập quy tắc ký tự đại diện bên dưới."
+ },
+ "excluded_models": {
+ "trigger_summary": "{{excluded}} bị loại trừ · {{available}} khả dụng",
+ "trigger_summary_rules": "{{n}} quy tắc",
+ "trigger_empty": "Không có model nào bị loại trừ",
+ "meter_aria": "{{excluded}} trong {{total}} model bị loại trừ",
+ "search_placeholder": "Tìm model…",
+ "search_aria": "Tìm model để loại trừ",
+ "list_aria": "Model",
+ "no_results": "Không có model nào khớp “{{query}}”",
+ "catalog_loading": "Đang tải model…",
+ "catalog_unavailable": "Không lấy được danh sách model — các quy tắc vẫn được áp dụng.",
+ "catalog_error": "Không thể tải danh sách model.",
+ "catalog_retry": "Thử lại",
+ "catalog_empty": "Không có model nào để liệt kê.",
+ "footer_count": "{{excluded}} / {{total}} bị loại trừ",
+ "select_all": "Loại trừ tất cả",
+ "clear": "Xóa",
+ "clear_aria": "Bỏ chọn các model (giữ lại quy tắc ký tự đại diện)",
+ "badge_wildcard": "Theo quy tắc",
+ "badge_unknown": "Không có trong danh sách",
+ "wildcard_reason": "Khớp quy tắc {{rule}}",
+ "wildcard_locked": "Bị loại trừ bởi quy tắc {{rule}} — hãy sửa quy tắc bên dưới",
+ "also_wildcard": "Cũng khớp {{rule}}",
+ "chips_more": "+{{n}} khác",
+ "chip_remove": "Ngừng loại trừ {{rule}}",
+ "rules_label": "Quy tắc ký tự đại diện",
+ "rules_placeholder": "Mỗi dòng một quy tắc, ví dụ gpt-5-*",
+ "rules_hint": "* khớp mọi ký tự. Không phân biệt hoa thường.",
+ "rules_match_count": "khớp {{n}} model",
+ "rules_match_none": "không khớp model nào trong danh sách",
+ "rules_reserved": "“*” vô hiệu hóa toàn bộ provider — hãy dùng công tắc Đã tắt thay thế"
+ },
+ "oauth_model_alias": {
+ "title": "Bí danh Model OAuth",
+ "add": "Thêm bí danh",
+ "add_title": "Thêm bí danh model của provider",
+ "provider_label": "Provider",
+ "provider_placeholder": "ví dụ codex / vertex",
+ "provider_hint": "Mặc định theo bộ lọc hiện tại; chọn provider có sẵn hoặc nhập tên mới.",
+ "model_source_loading": "Đang tải model...",
+ "model_source_unsupported": "Phiên bản CPA hiện tại không hỗ trợ lấy danh sách model (vẫn có thể nhập thủ công).",
+ "model_source_loaded": "Đã tải {{count}} model. Dùng menu thả trong 'Tên model gốc', hoặc nhập giá trị tùy chỉnh. Lưu danh sách trống sẽ xóa provider đó. Bật 'Giữ tên gốc' để giữ tên gốc trong khi thêm bí danh.",
+ "alias_label": "Bí danh model",
+ "alias_name_placeholder": "Tên model gốc",
+ "alias_placeholder": "Bí danh (bắt buộc)",
+ "duplicate_alias": "Mỗi bí danh phải là duy nhất cho provider này.",
+ "alias_fork_label": "Giữ tên gốc",
+ "add_alias": "Thêm bí danh",
+ "save": "Lưu/Cập nhật",
+ "save_success": "Đã cập nhật bí danh model",
+ "save_failed": "Không thể cập nhật bí danh model",
+ "delete": "Xóa Provider",
+ "delete_confirm": "Xóa bí danh model của {{provider}}?",
+ "delete_link_title": "Bỏ liên kết ánh xạ",
+ "delete_link_confirm": "Bỏ liên kết ánh xạ từ {{sourceModel}} ({{provider}}) sang bí danh {{alias}}?",
+ "delete_alias_title": "Xóa bí danh",
+ "delete_alias_confirm": "Xóa bí danh {{alias}} và bỏ ánh xạ tất cả model liên quan?",
+ "delete_success": "Đã xóa bí danh model",
+ "delete_failed": "Không thể xóa bí danh model",
+ "no_models": "Không có bí danh model",
+ "model_count": "{{count}} bí danh",
+ "list_empty_all": "Chưa có bí danh model nào—dùng “Thêm bí danh” để tạo.",
+ "chart_title": "Tổng quan mọi ánh xạ",
+ "diagram_providers": "Provider",
+ "diagram_source_models": "Model gốc",
+ "diagram_aliases": "Bí danh",
+ "diagram_expand": "Mở rộng",
+ "diagram_collapse": "Thu gọn",
+ "diagram_add_alias": "Thêm bí danh",
+ "diagram_rename": "Đổi tên",
+ "diagram_rename_alias_title": "Đổi tên bí danh",
+ "diagram_rename_alias_label": "Tên bí danh mới",
+ "diagram_rename_placeholder": "Nhập tên bí danh...",
+ "diagram_delete_link": "Bỏ liên kết khỏi {{provider}} / {{name}}",
+ "diagram_delete_alias": "Xóa bí danh",
+ "diagram_please_enter_alias": "Vui lòng nhập tên bí danh.",
+ "diagram_alias_exists": "Bí danh này đã tồn tại.",
+ "diagram_add_alias_title": "Thêm bí danh",
+ "diagram_add_alias_label": "Tên bí danh",
+ "diagram_add_placeholder": "Nhập tên bí danh mới...",
+ "diagram_rename_btn": "Đổi tên",
+ "diagram_add_btn": "Thêm",
+ "diagram_settings": "Cài đặt",
+ "diagram_settings_title": "Cài đặt bí danh — {{alias}}",
+ "diagram_settings_source_title": "Cài đặt model gốc",
+ "diagram_settings_empty": "Chưa có ánh xạ nào cho bí danh này.",
+ "diagram_tap_hint": "Trên thiết bị cảm ứng: chạm vào model gốc, sau đó chạm vào bí danh để liên kết.",
+ "view_mode_diagram": "Sơ đồ",
+ "view_mode_list": "Danh sách",
+ "provider_required": "Vui lòng nhập provider trước",
+ "upgrade_required": "Tính năng này yêu cầu phiên bản CLI Proxy API (CPA) mới hơn. Vui lòng nâng cấp.",
+ "upgrade_required_title": "Vui lòng nâng cấp CLI Proxy API",
+ "upgrade_required_desc": "Máy chủ hiện tại không hỗ trợ API bí danh model OAuth. Vui lòng nâng cấp lên phiên bản CLI Proxy API (CPA) mới nhất.",
+ "editor_description": "Đặt tên gọi nhất quán cho các model của provider để sử dụng trong client của bạn.",
+ "edit_title": "Chỉnh sửa bí danh model cho {{provider}}",
+ "mapping_hint": "Chọn model gốc, sau đó nhập bí danh mà client của bạn sẽ dùng.",
+ "mapping_row": "Ánh xạ bí danh {{number}}",
+ "remove_mapping": "Xóa ánh xạ bí danh {{number}}"
+ },
+ "auth_login": {
+ "recommended_provider_section": "Provider đề xuất",
+ "recommended_provider_badge": "Provider đề xuất",
+ "other_oauth_providers": "Provider OAuth khác",
+ "other_login_methods": "Phương thức đăng nhập khác",
+ "codex_oauth_title": "Codex OAuth",
+ "codex_oauth_button": "Bắt đầu đăng nhập Codex",
+ "codex_oauth_hint": "Đăng nhập dịch vụ Codex qua luồng OAuth, tự động lấy và lưu file xác thực.",
+ "codex_open_link": "Mở liên kết",
+ "codex_copy_link": "Sao chép liên kết",
+ "codex_oauth_status_waiting": "Đang chờ xác thực...",
+ "codex_oauth_status_success": "Xác thực thành công!",
+ "codex_oauth_status_error": "Xác thực thất bại:",
+ "codex_oauth_start_error": "Không thể bắt đầu Codex OAuth:",
+ "codex_oauth_polling_error": "Không thể kiểm tra trạng thái xác thực:",
+ "anthropic_oauth_title": "Anthropic OAuth",
+ "anthropic_oauth_button": "Bắt đầu đăng nhập Anthropic",
+ "anthropic_oauth_hint": "Đăng nhập dịch vụ Anthropic (Claude) qua luồng OAuth, tự động lấy và lưu file xác thực.",
+ "anthropic_open_link": "Mở liên kết",
+ "anthropic_copy_link": "Sao chép liên kết",
+ "anthropic_oauth_status_waiting": "Đang chờ xác thực...",
+ "anthropic_oauth_status_success": "Xác thực thành công!",
+ "anthropic_oauth_status_error": "Xác thực thất bại:",
+ "anthropic_oauth_start_error": "Không thể bắt đầu Anthropic OAuth:",
+ "anthropic_oauth_polling_error": "Không thể kiểm tra trạng thái xác thực:",
+ "antigravity_oauth_title": "Antigravity OAuth",
+ "antigravity_oauth_button": "Bắt đầu đăng nhập Antigravity",
+ "antigravity_oauth_hint": "Đăng nhập dịch vụ Antigravity (tài khoản Google) qua luồng OAuth, tự động lấy và lưu file xác thực.",
+ "antigravity_open_link": "Mở liên kết",
+ "antigravity_copy_link": "Sao chép liên kết",
+ "antigravity_oauth_status_waiting": "Đang chờ xác thực...",
+ "antigravity_oauth_status_success": "Xác thực thành công!",
+ "antigravity_oauth_status_error": "Xác thực thất bại:",
+ "antigravity_oauth_start_error": "Không thể bắt đầu Antigravity OAuth:",
+ "antigravity_oauth_polling_error": "Không thể kiểm tra trạng thái xác thực:",
+ "kimi_oauth_title": "Kimi OAuth",
+ "kimi_oauth_button": "Đăng nhập bằng Kimi",
+ "kimi_sign_up_button": "Đăng ký ngay",
+ "kimi_oauth_hint": "Đăng nhập nhanh vào Kimi qua ủy quyền thiết bị. File xác thực được lấy và lưu tự động.",
+ "kimi_open_link": "Mở liên kết",
+ "kimi_copy_link": "Sao chép liên kết",
+ "kimi_oauth_status_waiting": "Đang chờ xác thực...",
+ "kimi_oauth_status_success": "Xác thực thành công!",
+ "kimi_oauth_status_error": "Xác thực thất bại:",
+ "kimi_oauth_start_error": "Không thể bắt đầu Kimi OAuth:",
+ "kimi_oauth_polling_error": "Không thể kiểm tra trạng thái xác thực:",
+ "xai_oauth_title": "xAI OAuth",
+ "xai_oauth_button": "Bắt đầu đăng nhập xAI",
+ "xai_oauth_hint": "Đăng nhập xAI Grok qua luồng OAuth, tự động lấy và lưu file xác thực.",
+ "xai_open_link": "Mở liên kết",
+ "xai_copy_link": "Sao chép liên kết",
+ "xai_oauth_status_waiting": "Đang chờ xác thực...",
+ "xai_oauth_status_success": "Xác thực thành công!",
+ "xai_oauth_status_error": "Xác thực thất bại:",
+ "xai_oauth_start_error": "Không thể bắt đầu xAI OAuth:",
+ "xai_oauth_polling_error": "Không thể kiểm tra trạng thái xác thực:",
+ "plugin_oauth_title": "{{name}} OAuth",
+ "plugin_oauth_button": "Kết nối",
+ "plugin_oauth_hint": "Đăng nhập {{name}} qua luồng OAuth của plugin, tự động lấy và lưu file xác thực.",
+ "plugin_open_link": "Mở liên kết",
+ "plugin_copy_link": "Sao chép liên kết",
+ "plugin_oauth_status_waiting": "Đang chờ xác thực...",
+ "plugin_oauth_status_success": "Xác thực thành công!",
+ "plugin_oauth_status_error": "Xác thực thất bại:",
+ "plugin_oauth_start_error": "Không thể bắt đầu plugin OAuth:",
+ "xai_callback_label": "URL callback hoặc mã",
+ "xai_callback_placeholder": "Dán mã mà Grok hiển thị, hoặc URL callback đầy đủ",
+ "xai_callback_hint": "Grok có thể chỉ hiển thị mã trên trang. Dán trực tiếp mã đó và ứng dụng sẽ tự động gửi dưới dạng http://127.0.0.1:56121/callback?...",
+ "xai_callback_required": "Vui lòng dán mã Grok hiển thị hoặc URL callback đầy đủ trước.",
+ "xai_callback_state_missing": "Thiếu state cho lần đăng nhập xAI này. Hãy bắt đầu đăng nhập xAI lại, sau đó gửi mã.",
+ "oauth_callback_label": "URL callback",
+ "oauth_callback_placeholder": "http://localhost:1455/auth/callback?code=...&state=...",
+ "oauth_callback_hint": "Chế độ trình duyệt từ xa: sau khi provider chuyển hướng đến http://localhost:..., hãy sao chép URL đầy đủ và gửi tại đây.",
+ "oauth_callback_button": "Gửi URL callback",
+ "oauth_callback_required": "Vui lòng dán URL chuyển hướng đầy đủ trước.",
+ "oauth_callback_success": "Đã gửi URL callback. Tiếp tục chờ xác thực.",
+ "oauth_callback_error": "Không thể gửi URL callback:",
+ "oauth_callback_upgrade_hint": "Vui lòng cập nhật CLI Proxy API hoặc kiểm tra kết nối.",
+ "oauth_callback_status_success": "Đã gửi URL callback, đang chờ xác thực...",
+ "oauth_callback_status_error": "Gửi URL callback thất bại:",
+ "missing_state": "Không thể lấy tham số trạng thái xác thực",
+ "login_another_account": "Đăng nhập tài khoản khác",
+ "view_auth_files": "Xem file xác thực",
+ "iflow_oauth_title": "iFlow OAuth",
+ "iflow_oauth_button": "Bắt đầu đăng nhập iFlow",
+ "iflow_oauth_hint": "Đăng nhập dịch vụ iFlow qua luồng OAuth, tự động lấy và lưu file xác thực.",
+ "iflow_oauth_url_label": "URL ủy quyền:",
+ "iflow_open_link": "Mở liên kết",
+ "iflow_copy_link": "Sao chép liên kết",
+ "iflow_oauth_status_waiting": "Đang chờ xác thực...",
+ "iflow_oauth_status_success": "Xác thực thành công!",
+ "iflow_oauth_status_error": "Xác thực thất bại:",
+ "iflow_oauth_start_error": "Không thể bắt đầu iFlow OAuth:",
+ "iflow_oauth_polling_error": "Không thể kiểm tra trạng thái xác thực:",
+ "remote_access_disabled": "Phương thức đăng nhập này không khả dụng cho truy cập từ xa. Vui lòng truy cập từ localhost.",
+ "kimi_oauth_name": "Kimi Trung Quốc",
+ "kimi_ai_oauth_name": "Kimi quốc tế",
+ "method_device": "Mã thiết bị",
+ "method_browser": "Đăng nhập qua trình duyệt",
+ "method_plugin": "Plugin",
+ "tile_waiting": "Đang chờ xác thực",
+ "tile_success": "Đã thêm credential",
+ "tile_error": "Xác thực thất bại",
+ "meta_providers": "{{count}} provider",
+ "meta_waiting": "{{count}} đang chờ xác thực",
+ "meta_added": "Đã thêm {{count}} trong phiên này",
+ "step_open_auth_page": "Mở trang đăng nhập và cấp quyền",
+ "step_enter_device_code": "Nhập mã này trên trang đăng nhập",
+ "optional_step": "Tùy chọn",
+ "generating_link": "Đang tạo liên kết đăng nhập…",
+ "waiting_background_hint": "Đóng cửa sổ không làm gián đoạn đăng nhập",
+ "restart_login": "Bắt đầu lại",
+ "success_saved_hint": "Đã lưu credential — quản lý trong File xác thực.",
+ "sign_up_prompt": "Chưa có tài khoản?",
+ "copied": "Đã sao chép",
+ "devin_oauth_cancel": "Hủy đăng nhập Devin",
+ "devin_oauth_cancelled": "Đã hủy đăng nhập Devin.",
+ "devin_oauth_cancel_error": "Hủy đăng nhập Devin thất bại:",
+ "devin_oauth_retry_hint": "Máy chủ có thể vẫn đang chờ ủy quyền. Hãy hủy lượt đăng nhập này trước khi bắt đầu lại.",
+ "devin_oauth_title": "Devin OAuth",
+ "devin_oauth_button": "Bắt đầu đăng nhập Devin",
+ "devin_oauth_hint": "Đăng nhập Devin / Cognition qua trình duyệt OAuth để tự động lưu file xác thực. Yêu cầu CLI Proxy API v7.3.1 trở lên; vui lòng hoàn tất ủy quyền trong vòng năm phút.",
+ "devin_copy_link": "Sao chép liên kết",
+ "devin_open_link": "Mở liên kết",
+ "devin_oauth_status_waiting": "Đang chờ xác thực Devin...",
+ "devin_oauth_status_success": "Xác thực Devin thành công!",
+ "devin_oauth_status_error": "Xác thực Devin thất bại:",
+ "devin_oauth_start_error": "Không thể bắt đầu Devin OAuth:",
+ "devin_callback_hint": "Máy chủ từ xa: sao chép URL cuối cùng kết thúc bằng /devin/callback?… từ thanh địa chỉ trình duyệt, ngay cả khi không thể truy cập trang loopback. Giữ nguyên cổng, http/https, code và state. Gửi URL vào đây, sau đó tiếp tục chờ xác thực hoàn tất.",
+ "devin_callback_placeholder": "http://127.0.0.1:/devin/callback?code=...&state=...",
+ "devin_callback_invalid": "Dán URL callback http/https hoàn chỉnh chứa state và mã ủy quyền hoặc thông báo lỗi.",
+ "devin_callback_state_mismatch": "Callback này không thuộc về lượt đăng nhập Devin hiện tại. Vui lòng dùng URL cuối cùng từ lần thử này; không tái sử dụng callback cũ.",
+ "meta_oauth_title": "Muse (Meta) OAuth",
+ "meta_oauth_button": "Đăng nhập bằng Muse",
+ "meta_oauth_hint": "Mở liên kết ủy quyền và nhập mã thiết bị nếu được yêu cầu. File xác thực sẽ tự động được lưu sau khi ủy quyền.",
+ "meta_open_link": "Mở liên kết",
+ "meta_copy_link": "Sao chép liên kết",
+ "meta_oauth_status_waiting": "Đang chờ xác thực...",
+ "meta_oauth_status_success": "Xác thực thành công!",
+ "meta_oauth_status_error": "Xác thực thất bại:",
+ "meta_oauth_start_error": "Không thể bắt đầu Muse OAuth:",
+ "meta_oauth_polling_error": "Không thể kiểm tra trạng thái xác thực:",
+ "device_code_label": "Mã thiết bị:",
+ "device_code_copy": "Sao chép mã thiết bị",
+ "kimi_ai_oauth_title": "Kimi quốc tế (kimi.ai)",
+ "kimi_ai_oauth_button": "Đăng nhập Kimi quốc tế",
+ "kimi_ai_oauth_hint": "Ủy quyền tài khoản kimi.ai quốc tế qua đăng nhập thiết bị. File xác thực kimi-ai độc lập sẽ được lưu tự động. Tài khoản nội địa Trung Quốc và quốc tế không thể dùng thay thế cho nhau.",
+ "kimi_ai_open_link": "Mở liên kết",
+ "kimi_ai_copy_link": "Sao chép liên kết",
+ "kimi_ai_oauth_status_waiting": "Đang chờ xác thực...",
+ "kimi_ai_oauth_status_success": "Xác thực thành công!",
+ "kimi_ai_oauth_status_error": "Xác thực thất bại:",
+ "kimi_ai_oauth_start_error": "Không thể bắt đầu đăng nhập Kimi quốc tế:",
+ "kimi_ai_oauth_polling_error": "Không thể kiểm tra trạng thái xác thực:",
+ "page_title": "Connect account",
+ "page_description": "Sign in to a provider to add its account to the pool.",
+ "back_to_accounts": "Back to accounts"
+ },
+ "stats": {
+ "success": "Thành công",
+ "failure": "Thất bại"
+ },
+ "status_bar": {
+ "success_short": "✓",
+ "failure_short": "✗",
+ "no_requests": "Không có yêu cầu"
+ },
+ "logs": {
+ "title": "Trình xem Log",
+ "refresh_button": "Làm mới Log",
+ "clear_button": "Xóa Log",
+ "fullscreen_button": "Toàn màn hình",
+ "exit_fullscreen_button": "Thoát toàn màn hình",
+ "download_button": "Tải Log xuống",
+ "error_logs_modal_title": "Log yêu cầu lỗi",
+ "error_logs_description": "Chọn file log yêu cầu lỗi để mở hoặc tải xuống (chỉ được tạo khi tính năng ghi log yêu cầu đang tắt).",
+ "error_logs_request_log_enabled": "Ghi log yêu cầu đang bật nên danh sách này sẽ luôn trống. Hãy tắt ghi log yêu cầu và làm mới để xem log lỗi.",
+ "error_logs_empty": "Không tìm thấy file log yêu cầu lỗi nào",
+ "error_logs_load_error": "Không thể tải danh sách log lỗi",
+ "error_logs_size": "Kích thước",
+ "error_logs_modified": "Sửa lần cuối",
+ "error_logs_open": "Mở",
+ "error_logs_download": "Tải xuống",
+ "error_log_view_title": "Chi tiết Log yêu cầu lỗi",
+ "error_log_open_failed": "Không thể mở log lỗi",
+ "error_log_empty_content": "Log lỗi này trống",
+ "error_log_copy_success": "Đã sao chép nội dung log lỗi",
+ "error_log_download_success": "Đã tải log lỗi xuống thành công",
+ "request_log_download_title": "Tải xuống Log yêu cầu",
+ "request_log_download_confirm": "Tải xuống log yêu cầu của ID {{id}}?",
+ "request_log_download_success": "Đã tải log yêu cầu xuống thành công",
+ "empty_title": "Chưa có Log",
+ "empty_desc": "Khi bật \"Ghi log ra file\", log sẽ hiển thị tại đây",
+ "cpa_file_logging_required": "Runtime đang kết nối là CPA. Xem log yêu cầu bật ghi log ra file trước.",
+ "cpa_file_logging_required_title": "Cần bật ghi log ra file",
+ "cpa_file_logging_required_desc": "CPA đọc khung xem log này từ file log cục bộ. Hãy bật logging-to-file trong cấu hình rồi làm mới.",
+ "file_logging_required": "Endpoint log này cần bật ghi log ra file trước khi đọc được file log.",
+ "file_logging_required_title": "Cần bật ghi log ra file",
+ "file_logging_required_desc": "Endpoint log này đọc file log cục bộ. Hãy bật logging-to-file trong cấu hình rồi làm mới.",
+ "log_content": "Nội dung Log",
+ "loading": "Đang tải log...",
+ "load_error": "Không thể tải log",
+ "clear_confirm": "Bạn có chắc muốn xóa toàn bộ log? Thao tác này không thể hoàn tác!",
+ "clear_success": "Đã xóa log thành công",
+ "download_success": "Đã tải log xuống thành công",
+ "auto_refresh": "Tự động làm mới",
+ "load_more_hint": "Cuộn lên để tải thêm",
+ "hidden_lines": "Bị ẩn: {{count}} dòng",
+ "loaded_lines": "Đã tải: {{count}} dòng",
+ "filtered_lines": "Đã lọc: {{count}} dòng",
+ "hide_management_logs": "Ẩn log {{prefix}}",
+ "show_raw_logs": "Hiện Log thô",
+ "show_raw_logs_hint": "Hiện văn bản log gốc để dễ sao chép nhiều dòng",
+ "search_placeholder": "Tìm log theo nội dung hoặc từ khóa",
+ "filter_panel_title": "Bộ lọc cấu trúc",
+ "filter_panel_expand": "Mở bộ lọc cấu trúc",
+ "filter_panel_collapse": "Thu gọn bộ lọc cấu trúc",
+ "filter_panel_active_count": "{{count}} đang hoạt động",
+ "filter_method": "Phương thức",
+ "filter_status": "Trạng thái",
+ "filter_path": "Đường dẫn",
+ "filter_path_empty": "Không có ứng viên đường dẫn",
+ "filter_status_2xx": "2xx",
+ "filter_status_3xx": "3xx",
+ "filter_status_4xx": "4xx",
+ "filter_status_5xx": "5xx",
+ "clear_filters": "Xóa bộ lọc",
+ "search_empty_title": "Không tìm thấy log phù hợp",
+ "search_empty_desc": "Hãy thử từ khóa khác hoặc xóa bộ lọc.",
+ "double_click_copy_hint": "Nhấp đúp để sao chép dòng log thô",
+ "copy_success": "Đã sao chép log vào clipboard",
+ "copy_failed": "Sao chép thất bại",
+ "preview_too_large": "Bản ghi yêu cầu này vượt quá giới hạn xem trước 2 MiB. Vui lòng tải xuống để xem.",
+ "read_status_live": "Đang đọc liên tục",
+ "read_status_paused": "Đã tạm dừng đọc",
+ "read_status_catching_up": "Đang đuổi kịp các bản ghi log tồn đọng",
+ "last_updated": "Cập nhật thành công lần cuối: {{time}}",
+ "buffer_scope": "Chỉ tìm kiếm trong các bản ghi đã tải: {{count}} dòng trong bộ nhớ cache, khớp {{matched}} dòng",
+ "buffer_evicted": "Các bản ghi log cũ hơn đã bị xóa khỏi cache và không thể tìm kiếm tại đây",
+ "cursor_reset_notice": "Bản ghi log đã được xoay vòng hoặc đặt lại. Nội dung mới nhất đã được tải lại.",
+ "history_evicted": "Vị trí đọc của bạn không còn trong cache. Vui lòng chọn vị trí mới.",
+ "resume_following": "Về mới nhất · Dòng mới: {{count}}",
+ "level_filter": "Cấp độ log",
+ "all_levels": "Tất cả cấp độ",
+ "view_request": "Xem log cho yêu cầu {{id}}",
+ "copy_line": "Sao chép dòng này",
+ "request_log_missing": "Không tìm thấy log yêu cầu: có thể chưa được ghi hoặc đã được dọn dẹp. Khi tính năng ghi log yêu cầu bị tắt, thường chỉ các log yêu cầu lỗi mới được giữ lại.",
+ "download_cached": "Tải xuống log trong cache",
+ "clear_application_confirm": "Xóa log ứng dụng trên máy chủ? Các file log yêu cầu sẽ không bị xóa. Hành động này không thể hoàn tác.",
+ "clear_search": "Xóa tìm kiếm",
+ "reading_enabled": "Đọc liên tục",
+ "filter_load_more": "Hiển thị thêm log phù hợp",
+ "wrap_lines": "Tự động xuống dòng dài"
+ },
+ "config_management": {
+ "title": "Bảng cấu hình",
+ "meta_fields": "{{count}} cài đặt",
+ "meta_dirty": "{{count}} chưa lưu",
+ "meta_dirty_source": "Chỉnh sửa nguồn chưa lưu",
+ "meta_errors": "{{count}} lỗi xác thực",
+ "meta_synced": "Đã đồng bộ",
+ "actions": {
+ "discard": "Hủy thay đổi",
+ "save": "Lưu thay đổi"
+ },
+ "discard_confirm_message": "Hủy mọi thay đổi chưa lưu và khôi phục phiên bản máy chủ gần nhất?",
+ "mode": {
+ "label": "Chế độ trình chỉnh sửa",
+ "visual": "Trực quan",
+ "source": "Mã nguồn"
+ },
+ "reload": "Tải lại",
+ "reload_confirm_message": "Tải lại sẽ hủy các thay đổi chưa lưu của bạn. Bạn có muốn tiếp tục không?",
+ "save": "Lưu",
+ "status_loading": "Đang tải cấu hình...",
+ "status_loading_short": "Đang tải",
+ "status_loaded": "Đã tải cấu hình",
+ "status_loaded_short": "Đã tải",
+ "status_dirty": "Thay đổi chưa lưu",
+ "status_dirty_short": "Chưa lưu",
+ "status_disconnected": "Kết nối máy chủ để tải cấu hình",
+ "status_disconnected_short": "Mất kết nối",
+ "status_load_failed": "Tải thất bại",
+ "status_load_failed_short": "Thất bại",
+ "status_saving": "Đang lưu cấu hình...",
+ "status_saving_short": "Đang lưu",
+ "save_success": "Đã lưu cấu hình thành công",
+ "visual_mode_unavailable": "Trình chỉnh sửa trực quan không khả dụng cho đến khi sửa cú pháp YAML",
+ "visual_mode_unavailable_short": "Lỗi YAML",
+ "validation_blocked_short": "Sửa lỗi",
+ "visual_mode_unavailable_detail": "Trình chỉnh sửa trực quan không khả dụng vì cấu hình chứa YAML không hợp lệ: {{message}}",
+ "visual_mode_save_blocked": "Không thể lưu từ chế độ trực quan cho đến khi sửa cú pháp YAML",
+ "visual_mode_latest_yaml_invalid": "Cấu hình máy chủ mới nhất chứa YAML không hợp lệ. Hãy xem lại ở chế độ mã nguồn trước khi lưu thay đổi trực quan: {{message}}",
+ "editor_placeholder": "key: value",
+ "search_placeholder": "Tìm cấu hình...",
+ "search_button": "Tìm",
+ "search_no_results": "Không có kết quả",
+ "search_prev": "Trước",
+ "search_next": "Sau",
+ "diff": {
+ "title": "Xem lại thay đổi",
+ "confirm": "Xác nhận lưu",
+ "no_changes": "Không phát hiện thay đổi"
+ },
+ "visual": {
+ "search": {
+ "placeholder": "Tìm cài đặt (nhãn hoặc key YAML)",
+ "no_results": "Không có cài đặt phù hợp"
+ },
+ "sections": {
+ "common": {
+ "title": "Chung",
+ "description": "Các cài đặt dùng nhiều nhất, dùng chung dữ liệu với các mục đầy đủ"
+ },
+ "connectivity": {
+ "title": "Truy cập & Xác thực",
+ "description": "Địa chỉ máy chủ, cổng, thư mục xác thực và API key"
+ },
+ "logging": {
+ "title": "Ghi log & Chẩn đoán",
+ "description": "Debug, xuất log và thống kê sử dụng"
+ },
+ "advanced": {
+ "antigravity_credits": "Dùng credit Antigravity",
+ "title": "Nâng cao & Thử nghiệm",
+ "description": "Giả mạo header, cache chữ ký, nguồn plugin và các cài đặt ít thay đổi khác",
+ "plugins_title": "Plugin",
+ "signature_title": "Chữ ký Antigravity",
+ "antigravity_title": "Antigravity",
+ "devin_title": "Devin"
+ },
+ "server": {
+ "github_token": "Token GitHub toàn cục",
+ "github_token_hint": "Dùng cho các yêu cầu GitHub từ máy chủ, như cập nhật bảng điều khiển và tải plugin. Ưu tiên hơn GITHUB_TOKEN; để trống để dùng thông tin xác thực từ biến môi trường, hoặc gửi yêu cầu ẩn danh nếu chưa thiết lập. Các quy tắc xác thực phù hợp của kho plugin được ưu tiên.",
+ "host": "Địa chỉ Host",
+ "port": "Cổng"
+ },
+ "tls": {
+ "title": "Cấu hình TLS/SSL",
+ "description": "Cài đặt kết nối HTTPS bảo mật",
+ "enable": "Bật TLS",
+ "enable_desc": "Bật kết nối HTTPS bảo mật",
+ "cert": "Đường dẫn file chứng chỉ",
+ "key": "Đường dẫn file khóa riêng"
+ },
+ "remote": {
+ "title": "Quản lý từ xa",
+ "description": "Truy cập từ xa và cài đặt bảng điều khiển",
+ "allow_remote": "Cho phép truy cập từ xa",
+ "allow_remote_desc": "Cho phép truy cập quản lý từ máy chủ khác",
+ "disable_panel": "Tắt bảng điều khiển",
+ "disable_panel_desc": "Tắt bảng điều khiển web tích hợp",
+ "disable_auto_update_panel": "Tắt tự động cập nhật bảng điều khiển",
+ "disable_auto_update_panel_desc": "Tải bảng điều khiển khi thiếu lần đầu, nhưng không bao giờ tự cập nhật từ GitHub",
+ "secret_key": "Key quản lý",
+ "secret_key_placeholder": "Đặt key quản lý",
+ "panel_repo": "Repository bảng điều khiển"
+ },
+ "auth": {
+ "auth_dir": "Thư mục xác thực (auth-dir)",
+ "auth_dir_hint": "Đường dẫn thư mục chứa file xác thực (hỗ trợ ~)"
+ },
+ "system": {
+ "debug": "Chế độ Debug",
+ "debug_desc": "Bật ghi log debug chi tiết",
+ "commercial_mode": "Chế độ thương mại",
+ "commercial_mode_desc": "Tắt middleware tốn tài nguyên để hỗ trợ đồng thời cao",
+ "logging_to_file": "Ghi log ra file",
+ "logging_to_file_desc": "Lưu log vào file",
+ "plugins_enabled": "Bật hệ thống Plugin",
+ "plugins_enabled_desc": "Bật nạp plugin thư viện động chuẩn; từng phiên bản plugin vẫn được quản lý ở trang Plugin",
+ "plugin_store_sources": "Nguồn Plugin bên thứ ba",
+ "plugin_store_sources_desc": "Thêm nguồn registry plugin store; nguồn chính thức tích hợp luôn được giữ",
+ "plugin_store_sources_label": "URL registry nguồn plugin (plugins.store-sources)",
+ "plugin_store_sources_placeholder": "https://example.com/cliproxy-plugins/registry.json",
+ "plugin_store_sources_hint": "Mỗi dòng một URL registry.json. Dòng trống sẽ bị lọc khi lưu",
+ "plugin_store_auth": "Quy tắc xác thực Plugin Store",
+ "plugin_store_auth_desc": "Cấu hình header xác thực cho registry riêng tư, metadata GitHub Release hoặc tải artifact",
+ "plugin_store_auth_hint": "Chỉ nhập tên biến môi trường, không nhập token thật. Backend đọc giá trị từ môi trường runtime của nó.",
+ "store_auth_empty": "Chưa cấu hình quy tắc xác thực nào. Nguồn plugin công khai không cần.",
+ "store_auth_rule": "Quy tắc xác thực",
+ "store_auth_add": "Thêm quy tắc xác thực",
+ "store_auth_match": "Tiền tố URL khớp",
+ "store_auth_type": "Loại xác thực",
+ "store_auth_apply_to": "Áp dụng cho",
+ "store_auth_apply_to_hint": "Khi không chọn gì, quy tắc áp dụng cho mọi loại yêu cầu.",
+ "store_auth_apply_registry": "Registry",
+ "store_auth_apply_metadata": "Metadata",
+ "store_auth_apply_artifact": "Artifact",
+ "store_auth_type_none": "Không",
+ "store_auth_type_bearer": "Bearer",
+ "store_auth_type_basic": "Basic",
+ "store_auth_type_header": "Header tùy chỉnh",
+ "store_auth_type_github_token": "GitHub token",
+ "store_auth_token_env": "Biến môi trường token",
+ "store_auth_username_env": "Biến môi trường tên đăng nhập",
+ "store_auth_password_env": "Biến môi trường mật khẩu",
+ "store_auth_header_name": "Tên header",
+ "store_auth_header_value_env": "Biến môi trường giá trị header",
+ "store_auth_allow_insecure": "Cho phép URL HTTP không bảo mật",
+ "logs_max_size": "Giới hạn kích thước file log (MB)",
+ "error_logs_max_files": "Số file log lỗi giữ lại",
+ "usage_statistics_enabled": "Bật thống kê sử dụng trong bộ nhớ",
+ "usage_statistics_enabled_desc": "Tổng hợp thống kê sử dụng yêu cầu trong bộ nhớ",
+ "redis_usage_retention": "Thời gian giữ hàng đợi sử dụng Redis (giây)",
+ "redis_usage_retention_hint": "Thời gian giữ trong bộ nhớ cho đầu ra sử dụng RESP LPOP/RPOP, tối đa 3600 giây",
+ "antigravity_signature_cache": "Bật cache chữ ký Antigravity",
+ "antigravity_signature_cache_desc": "Ưu tiên và xác thực chữ ký thinking-block đã cache",
+ "antigravity_signature_strict": "Bỏ qua xác thực chữ ký nghiêm ngặt",
+ "antigravity_signature_strict_desc": "Chỉ áp dụng khi cache chữ ký bị tắt; xác thực toàn bộ cây protobuf Claude",
+ "antigravity_sensitive_words": "Làm rối từ nhạy cảm",
+ "antigravity_sensitive_words_desc": "Chèn ký tự có độ rộng bằng 0 (zero-width) vào các từ khớp trong hướng dẫn hệ thống Antigravity để giảm khả năng so khớp từ khóa chính xác ở upstream",
+ "antigravity_sensitive_words_label": "Từ nhạy cảm OAuth (oauth.providers.antigravity.sensitive-words)",
+ "antigravity_sensitive_words_placeholder": "proxy",
+ "antigravity_sensitive_words_hint": "Mỗi hàng một từ hoặc cụm từ. Không phân biệt chữ hoa chữ thường; các mục trống sẽ bị xóa và các mục ngắn hơn 2 ký tự sẽ bị backend bỏ qua",
+ "devin_sensitive_words": "Từ nhạy cảm trong System Prompt Devin",
+ "devin_sensitive_words_desc": "Chỉ áp dụng trong system prompt Devin: dòng chứa từ đã cấu hình sẽ bị xóa hoàn toàn; phần system prompt còn lại sau đó sẽ được làm rối. Tin nhắn thông thường và tham số công cụ không bị thay đổi",
+ "devin_sensitive_words_label": "Từ nhạy cảm OAuth (oauth.providers.devin.sensitive-words)",
+ "devin_sensitive_words_placeholder": "cụm từ nhạy cảm",
+ "devin_sensitive_words_hint": "Mỗi hàng một từ hoặc cụm từ. Cấu hình cẩn thận: nội dung khớp sẽ khiến toàn bộ dòng system prompt bị xóa; các mục trống sẽ bị xóa khi lưu"
+ },
+ "headers": {
+ "title": "Header mặc định",
+ "description": "Header mặc định cho yêu cầu OAuth Claude và Codex khi client không gửi",
+ "claude_title": "Header mặc định Claude",
+ "codex_title": "Header mặc định Codex",
+ "user_agent": "User-Agent",
+ "package_version": "Phiên bản gói",
+ "runtime_version": "Phiên bản runtime",
+ "os": "Hệ điều hành",
+ "arch": "Kiến trúc",
+ "timeout": "Timeout",
+ "stabilize_device": "Ổn định hồ sơ thiết bị",
+ "stabilize_device_desc": "Cố định OS/Kiến trúc và ổn định vân tay phần mềm theo từng credential/API key",
+ "beta_features": "Tính năng Beta"
+ },
+ "network": {
+ "title": "Cấu hình mạng",
+ "description": "Cài đặt proxy, thử lại và định tuyến",
+ "proxy_url": "URL Proxy",
+ "request_retry": "Số lần thử lại yêu cầu",
+ "max_retry_credentials": "Số credential thử lại tối đa",
+ "max_retry_credentials_hint": "Để trống nếu không muốn đặt. Đặt 0 để giữ hành vi cũ và thử mọi credential khả dụng.",
+ "max_retry_interval": "Khoảng thử lại tối đa (giây)",
+ "auth_auto_refresh_workers": "Số worker tự làm mới xác thực",
+ "auth_auto_refresh_workers_hint": "Khi lớn hơn 0, ghi đè số worker mặc định (16)",
+ "disable_image_generation": "Tắt tạo ảnh",
+ "disable_image_generation_hint": "false để bật; true tắt toàn bộ tạo ảnh; chat tắt inject endpoint phi ảnh; passthrough giữ danh sách tool của client mà không inject",
+ "disable_image_generation_false": "false (đang bật)",
+ "disable_image_generation_true": "true (tắt ở mọi nơi)",
+ "disable_image_generation_chat": "chat (chỉ tắt inject trong chat)",
+ "disable_image_generation_passthrough": "passthrough (giữ danh sách tool của client)",
+ "gpt_image_2_base_model": "Model gốc GPT Image 2",
+ "gpt_image_2_base_model_hint": "Model chính dùng khi proxy yêu cầu ảnh gpt-image-2; backend dùng mặc định nếu trống hoặc không hợp lệ",
+ "routing_strategy": "Chiến lược định tuyến",
+ "routing_strategy_hint": "Chọn chiến lược lựa chọn credential",
+ "strategy_round_robin": "Round Robin",
+ "strategy_weighted_round_robin": "Weighted Round Robin",
+ "strategy_fill_first": "Fill First",
+ "session_affinity_ttl": "TTL Session Affinity",
+ "force_model_prefix": "Bắt buộc tiền tố model",
+ "force_model_prefix_desc": "Yêu cầu model không có tiền tố chỉ dùng credential không có tiền tố",
+ "passthrough_headers": "Chuyển tiếp Header upstream",
+ "passthrough_headers_desc": "Chuyển tiếp header phản hồi upstream đã lọc đến client downstream",
+ "disable_cooling": "Tắt Cooling",
+ "disable_cooling_desc": "Tắt toàn cục cửa sổ cooldown auth/model sau thất bại",
+ "session_affinity": "Định tuyến Session Affinity",
+ "ws_auth": "Xác thực WebSocket",
+ "ws_auth_desc": "Bật xác thực WebSocket (/v1/ws)",
+ "proxy_url_sponsor_hint": "Chưa có proxy phù hợp?",
+ "max_retry_interval_hint": "Đặt thành 0 hoặc số nguyên âm để bỏ qua thời gian chờ cooldown giữa các lượt thử lại."
+ },
+ "streaming": {
+ "title": "Cấu hình Streaming",
+ "description": "Cài đặt keepalive và thử lại bootstrap",
+ "keepalive_seconds": "Số giây Keepalive",
+ "keepalive_hint": "Đặt 0 hoặc để trống để tắt keepalive",
+ "bootstrap_retries": "Số lần thử Bootstrap",
+ "bootstrap_hint": "Số lần thử lại khi khởi động stream (trước byte đầu tiên)",
+ "nonstream_keepalive": "Khoảng keepalive phi stream (giây)",
+ "nonstream_keepalive_hint": "Gửi dòng trống mỗi N giây cho phản hồi phi stream để tránh timeout nhàn rỗi, đặt 0 hoặc để trống để tắt",
+ "disabled": "Đã tắt"
+ },
+ "payload": {
+ "title": "Cấu hình Payload",
+ "description": "Giá trị mặc định, quy tắc JSON thô, quy tắc ghi đè và quy tắc lọc",
+ "default_rules": "Quy tắc mặc định",
+ "default_rules_desc": "Dùng các giá trị mặc định này khi tham số không được chỉ định trong yêu cầu",
+ "default_raw_rules": "Quy tắc thô mặc định",
+ "default_raw_rules_desc": "Khi thiếu tham số, ghi các giá trị này dưới dạng đoạn JSON thô như true, 123, \"high\" hoặc {\"type\":\"object\"}",
+ "override_rules": "Quy tắc ghi đè",
+ "override_rules_desc": "Bắt buộc ghi đè giá trị tham số trong yêu cầu",
+ "override_raw_rules": "Quy tắc thô ghi đè",
+ "override_raw_rules_desc": "Luôn ghi đè giá trị tham số dưới dạng đoạn JSON thô, hữu ích cho response_format, schema và các trường phức tạp khác",
+ "filter_rules": "Quy tắc lọc",
+ "filter_rules_desc": "Lọc trước body yêu cầu upstream qua JSON Path, tự động loại bỏ tham số không tuân thủ/dư thừa (Làm sạch yêu cầu)"
+ }
+ },
+ "api_keys": {
+ "label": "Danh sách API Key (api-keys)",
+ "add": "Thêm API Key",
+ "generate": "Tạo",
+ "empty": "Chưa có API key",
+ "hint": "Mỗi mục là một API key (nhất quán với phong cách trang 'Quản lý API Key')",
+ "edit_title": "Chỉnh sửa API Key",
+ "add_title": "Thêm API Key",
+ "input_label": "API Key",
+ "input_placeholder": "Dán API key của bạn",
+ "input_hint": "Chỉ sửa nội dung file cấu hình cục bộ, không đồng bộ sang giao diện Quản lý API Key",
+ "error_empty": "Vui lòng nhập API key",
+ "error_invalid": "API key chứa ký tự không hợp lệ",
+ "strength": {
+ "label": "Độ mạnh API key",
+ "empty": "Chưa nhập",
+ "weak": "Yếu",
+ "fair": "Khá",
+ "good": "Tốt",
+ "strong": "Mạnh"
+ },
+ "name_label": "Tên / mô tả (tùy chọn)",
+ "name_placeholder": "Ví dụ: Laptop của Alice",
+ "name_hint": "Được lưu ngay trong trình duyệt này, riêng cho từng máy chủ. Không bao gồm trong cấu hình máy chủ. Xóa trường này để xóa tên.",
+ "name_save_error": "Không thể lưu tên vào bộ lưu trữ trình duyệt. Vui lòng kiểm tra cài đặt lưu trữ của trình duyệt."
+ },
+ "payload_rules": {
+ "rule": "Quy tắc",
+ "models": "Model áp dụng",
+ "model_name": "Tên model",
+ "provider_type": "Loại Provider",
+ "add_model": "Thêm model",
+ "params": "Cài đặt tham số",
+ "remove_params": "Xóa tham số",
+ "json_path": "JSON Path (ví dụ temperature)",
+ "json_path_filter": "JSON Path (gjson/sjson), ví dụ generationConfig.thinkingConfig.thinkingBudget",
+ "param_type": "Loại tham số",
+ "param_value": "Giá trị tham số",
+ "add_param": "Thêm tham số",
+ "no_rules": "Chưa có quy tắc",
+ "add_rule": "Thêm quy tắc",
+ "provider_default": "Mặc định",
+ "provider_openai": "OpenAI",
+ "provider_openai_response": "OpenAI Response",
+ "provider_responses": "Responses",
+ "provider_gemini": "Gemini",
+ "provider_claude": "Claude",
+ "provider_codex": "Codex",
+ "provider_antigravity": "Antigravity",
+ "advanced": "Nâng cao",
+ "hide_advanced": "Ẩn nâng cao",
+ "from_protocol": "Giao thức nguồn (from-protocol)",
+ "headers": "Khớp Header yêu cầu",
+ "header_name": "Tên Header",
+ "header_value": "Giá trị Header",
+ "add_header": "Thêm Header",
+ "match": "Khớp bắt buộc (match)",
+ "notMatch": "Khớp cấm (not-match)",
+ "exist": "Đường dẫn bắt buộc (exist)",
+ "notExist": "Đường dẫn cấm (not-exist)",
+ "condition_path": "Đường dẫn khớp",
+ "condition_value": "Giá trị khớp",
+ "add_condition": "Thêm điều kiện",
+ "value_type_string": "Chuỗi",
+ "value_type_number": "Số",
+ "value_type_boolean": "Boolean",
+ "value_type_json": "JSON",
+ "value_string": "Giá trị chuỗi",
+ "value_number": "Giá trị số (ví dụ 0.7)",
+ "value_boolean": "true hoặc false",
+ "value_json": "Giá trị JSON",
+ "value_raw_json": "Đoạn JSON thô, ví dụ true, 123, \"high\" hoặc {\"type\":\"object\"}",
+ "value_default": "Giá trị",
+ "boolean_true": "true",
+ "boolean_false": "false"
+ },
+ "validation": {
+ "validation_blocked": "Hãy sửa lỗi xác thực trước khi lưu",
+ "port_range": "Nhập cổng hợp lệ từ 1 đến 65535",
+ "non_negative_integer": "Nhập số nguyên không âm",
+ "integer_range_1_3600": "Nhập số nguyên từ 1 đến 3600",
+ "payload_invalid_number": "Nhập số hợp lệ",
+ "payload_invalid_boolean": "Chọn true hoặc false",
+ "payload_invalid_json": "Nhập JSON hợp lệ",
+ "invalid_trusted_proxies": "Mỗi proxy đáng tin cậy phải là một địa chỉ IP hoặc CIDR hợp lệ.",
+ "invalid_discovery_service_type": "Sử dụng định dạng _tên._tcp: tên phải gồm 1–15 chữ cái, chữ số hoặc dấu gạch nối, không bắt đầu hoặc kết thúc bằng dấu gạch nối.",
+ "invalid_duration": "Nhập khoảng thời gian hợp lệ, chẳng hạn như 30s hoặc 3h",
+ "positive_duration": "Nhập khoảng thời gian lớn hơn 0",
+ "invalid_timezone": "Nhập múi giờ IANA hợp lệ, chẳng hạn như Asia/Ho_Chi_Minh hoặc Asia/Singapore",
+ "invalid_ip": "Nhập địa chỉ IPv4 hoặc IPv6 hợp lệ",
+ "udp_port_pair": "Đặt cả hai cổng UDP thành 0, hoặc đặt cả hai với giá trị tối thiểu không vượt quá tối đa",
+ "udp_port_capacity": "Phạm vi UDP phải chứa số cổng tối thiểu bằng hai lần số lượng phiên tối đa hiệu dụng (0 phiên sẽ tính là 32)",
+ "invalid_ice_servers": "Mỗi máy chủ ICE cần ít nhất một URL stun:, stuns:, turn:, hoặc turns: hợp lệ",
+ "integer_range_0_65535": "Nhập số nguyên từ 0 đến 65535",
+ "integer": "Nhập một số nguyên"
+ },
+ "common": {
+ "edit": "Chỉnh sửa",
+ "delete": "Xóa",
+ "cancel": "Hủy",
+ "update": "Cập nhật",
+ "add": "Thêm"
+ },
+ "serverExtras": {
+ "trustedProxies": {
+ "label": "Proxy đáng tin cậy",
+ "hint": "Địa chỉ IP hoặc CIDR; để trống nghĩa là các header chuyển tiếp không được tin cậy. Tin cậy dải mạng chứa tất cả địa chỉ có nguy cơ giả mạo IP client. Yêu cầu khởi động lại backend."
+ },
+ "discoveryEnabled": {
+ "label": "Bật khám phá dịch vụ",
+ "hint": "Phát quảng bá qua mDNS / DNS-SD trong mạng cục bộ (LAN). Mặc định tắt; thay đổi có hiệu lực mà không cần khởi động lại."
+ },
+ "discoveryServiceName": {
+ "label": "Tiền tố tên dịch vụ",
+ "hint": "Backend sẽ nối thêm một ID ngắn. Để trống sẽ dùng CPA-."
+ },
+ "discoveryServiceType": {
+ "label": "Loại dịch vụ",
+ "hint": "Để trống sẽ dùng _ai-gateway._tcp."
+ },
+ "discoverySubtypes": {
+ "label": "Phân loại giao thức con",
+ "hint": "Để trống sẽ dùng năm giao thức mặc định. Thiếu tiền tố _ sẽ tự động được thêm; các mục không hợp lệ sẽ bị bỏ qua."
+ },
+ "discoveryInterfacesInclude": {
+ "label": "Bao gồm giao diện mạng",
+ "hint": "Để trống sẽ tự động chọn giao diện mạng LAN vật lý. Dùng tên hoặc mẫu tiền tố kết thúc bằng *."
+ },
+ "discoveryInterfacesExclude": {
+ "label": "Loại trừ giao diện mạng",
+ "hint": "Dùng tên hoặc mẫu tiền tố kết thúc bằng *. Quy tắc loại trừ được ưu tiên hơn quy tắc bao gồm."
+ },
+ "discoveryAuthRequired": {
+ "label": "Quảng bá yêu cầu xác thực",
+ "hint": "Mặc định bật. Chỉ quảng bá siêu dữ liệu (metadata); không thay đổi quy trình xác thực API thực tế."
+ },
+ "discoveryAdvertiseManagement": {
+ "label": "Quảng bá dịch vụ quản lý",
+ "hint": "Mặc định tắt. Chỉ thông báo dịch vụ quản lý tồn tại; không thay đổi quyền truy cập từ xa."
+ },
+ "discoveryTitle": "Khám phá mạng cục bộ (LAN)",
+ "discoveryHint": "Yêu cầu giao diện mạng vật lý hỗ trợ multicast và địa chỉ lắng nghe non-loopback. Docker thường cần host networking; không đảm bảo khả năng tiếp cận."
+ },
+ "additions": {
+ "oauthTitle": "Hành vi của provider OAuth",
+ "oauthHint": "Các cài đặt provider này chỉ áp dụng cho credential OAuth / file xác thực, không áp dụng cho credential API key.",
+ "claudeTitle": "Claude",
+ "codexTitle": "Codex",
+ "antigravityTitle": "Antigravity",
+ "xaiTitle": "xAI",
+ "liveRelayTitle": "Codex Live media relay",
+ "liveRelayHint": "Chuyển tiếp âm thanh WebRTC và lưu lượng DataChannel trong tiến trình proxy. UDP chiều đến phải truy cập được. Không để lộ thông tin xác thực ICE trong ảnh chụp màn hình hoặc log.",
+ "iceAdd": "Thêm máy chủ ICE",
+ "iceRemove": "Xóa máy chủ ICE {{index}}",
+ "iceURLs": "URL STUN/TURN",
+ "iceUsername": "Tên người dùng TURN",
+ "iceCredential": "Mật khẩu TURN",
+ "iceServer": "Máy chủ ICE {{index}}",
+ "routingSessionAffinitySubagents": {
+ "label": "Session affinity cho subagent",
+ "hint": "Mặc định bật; chỉ có hiệu lực khi session affinity được bật. Subagent kế thừa credential của cha để tái sử dụng cache. Tắt để phân bổ subagent trên toàn bộ pool credential nhằm tăng tính đồng thời."
+ },
+ "saveCooldownStatus": {
+ "label": "Lưu trữ bền vững trạng thái cooldown",
+ "hint": "Lưu trạng thái cooldown của từng credential vào các file .cds cạnh file xác thực. Mặc định tắt; nếu tắt trạng thái chỉ được giữ trong bộ nhớ."
+ },
+ "transientErrorCooldownSeconds": {
+ "label": "Thời gian cooldown lỗi tạm thời (giây)",
+ "hint": "Thời gian cooldown cho các lỗi 408/500/502/503/504/520–526 từ upstream. 0 sử dụng mặc định 60 giây; giá trị âm sẽ tắt cooldown này."
+ },
+ "videoResultAuthCacheTTL": {
+ "label": "TTL cache credential của kết quả video",
+ "hint": "Thời gian ID video duy trì liên kết với credential đã tạo ra nó. Nhập khoảng thời gian như 30m hoặc 3h; mặc định: 3h."
+ },
+ "claudeHeaderTimezone": {
+ "label": "Múi giờ dự phòng",
+ "hint": "Múi giờ IANA cho currentDate được ngụy trang, ví dụ: Asia/Ho_Chi_Minh, Asia/Singapore, hoặc Local cho múi giờ của máy chủ backend. Múi giờ trong JSON của credential được ưu tiên."
+ },
+ "claudeModelLevelCooling": {
+ "label": "Cooldown theo cấp độ model",
+ "hint": "Chỉ áp dụng cooldown quota Claude cho model được yêu cầu, thay vì tất cả các model dùng chung credential. Mặc định tắt."
+ },
+ "claudeDisableCloakMode": {
+ "label": "Tắt ngụy trang yêu cầu",
+ "hint": "Tắt ngụy trang danh tính Claude Code CLI và thay thế system prompt; truyền qua system prompt gốc. File credential có thể ghi đè bằng cloak_mode. Mặc định: false (tự động ngụy trang cho client không phải Claude Code)."
+ },
+ "claudeCodeDisableCloakingModelList": {
+ "label": "Tắt ngụy trang ID model",
+ "hint": "Trả về ID model gốc trong phản hồi danh sách model Anthropic thay vì ID đã ngụy trang. Mặc định tắt."
+ },
+ "codexDisableCloaking": {
+ "label": "Tắt ngụy trang yêu cầu",
+ "hint": "Dừng ép buộc header User-Agent và Originator chính thức của Codex trên các yêu cầu HTTP/SSE và WebSocket. Mặc định tắt."
+ },
+ "codexModelLevelCooling": {
+ "label": "Cooldown theo cấp độ model",
+ "hint": "Chỉ áp dụng cooldown quota usage_limit_reached cho model được yêu cầu, thay vì tất cả các model dùng chung credential. Mặc định tắt."
+ },
+ "codexStreamBootstrapBuffering": {
+ "label": "Đệm khởi động stream",
+ "hint": "Tạm giữ các sự kiện rỗng và heartbeat ban đầu để cho phép chuyển đổi credential (failover) khi gặp quá tải sớm hoặc bị từ chối do giới hạn tốc độ. Mặc định tắt. Làm trễ header phản hồi và có thể kích hoạt timeout ở client hoặc reverse proxy; việc đệm có hạn mức frame và byte."
+ },
+ "codexStreamBootstrapTimeout": {
+ "label": "Timeout đệm khởi động stream",
+ "hint": "Giới hạn thời gian đệm tùy chọn, ví dụ: 20s. Mặc định: 0 (không giới hạn thời gian; hạn mức frame và byte vẫn áp dụng). Được kiểm tra khi các frame từ upstream đến; không phải hạn chót cứng cho mọi trường hợp treo mạng. Header vẫn có thể phải chờ đầu ra đã được dịch."
+ },
+ "codexOptimizeMultiAgentV2": {
+ "label": "Tối ưu hóa multi-agent v2",
+ "hint": "Tối ưu hóa các yêu cầu multi-agent chính thức của Codex: làm mới chi tiết model spawn_agent, loại bỏ mã hóa tham số thông điệp, chuẩn hóa nội dung agent_message và chuyển đổi thành tin nhắn người dùng cho các giao thức không phải Codex. Mặc định tắt."
+ },
+ "codexOrphanDelegationCompatibility": {
+ "label": "Tương thích ủy quyền mồ côi (orphan delegation)",
+ "hint": "Đối với yêu cầu X-Openai-Subagent: collab_spawn, chuyển đổi đầu ra mồ côi của codex_app/create_thread và codex_app/send_message_to_thread không có lệnh gọi khớp hợp lệ thành tin nhắn người dùng. Mặc định tắt."
+ },
+ "codexResponseSteering": {
+ "label": "Điều hướng phản hồi (Response steering)",
+ "hint": "Tính năng thử nghiệm WebSocket Codex Responses song công toàn phần (full-duplex). Mỗi socket luôn gắn chặt với một tài khoản và model upstream; đầu vào đã được chấp nhận sẽ không bao giờ phát lại. Mặc định tắt."
+ },
+ "antigravityConnectionPoolEnabled": {
+ "label": "Bật connection pool",
+ "hint": "Tái sử dụng các kết nối HTTP/1.1 upstream. Mặc định: false (kết nối ngắn hạn)."
+ },
+ "antigravityConnectionPoolIdleTimeout": {
+ "label": "Timeout kết nối nhàn rỗi",
+ "hint": "Thời gian kết nối nhàn rỗi tồn tại trong pool. Mặc định: 30s; giới hạn tối đa 210s. Bằng 0 hoặc thời lượng âm sẽ chuyển sang kết nối ngắn hạn."
+ },
+ "antigravityConnectionPoolMaxIdleConnsPerHost": {
+ "label": "Số kết nối nhàn rỗi tối đa trên mỗi host",
+ "hint": "Số kết nối nhàn rỗi tối đa được duy trì cho mỗi host upstream trên mỗi credential. Mặc định: 2; giới hạn tối đa 100. Bằng 0 sẽ dùng mặc định của Go là 2; giá trị âm sẽ chuyển sang kết nối ngắn hạn."
+ },
+ "xaiInjectXSearch": {
+ "label": "Chèn x_search",
+ "hint": "Tự động thêm công cụ x_search gốc của xAI khi thiếu trong yêu cầu, bao gồm tool_choice.allowed_tools khi áp dụng. Mặc định tắt."
+ },
+ "codexLiveMediaRelayEnabled": {
+ "label": "Bật media relay",
+ "hint": "Chấm dứt và chuyển tiếp phương tiện Codex Live WebRTC trong tiến trình này. Yêu cầu UDP chiều đến phải truy cập được. Mặc định tắt để giữ kết nối phương tiện trực tiếp."
+ },
+ "codexLiveMediaRelayMaxSessions": {
+ "label": "Số phiên phương tiện đồng thời tối đa",
+ "hint": "Để trống hoặc 0 sẽ dùng mặc định 32 phiên. Dải cổng UDP tùy chỉnh phải cung cấp ít nhất hai cổng cho mỗi phiên."
+ },
+ "codexLiveMediaRelayDisablePrivateRemoteIPs": {
+ "label": "Chặn ứng viên IP từ xa riêng tư",
+ "hint": "Mặc định: false, cho phép ứng viên địa chỉ riêng tư cho các client mạng cục bộ hoặc đáng tin cậy. Bật để từ chối các ứng viên SDP hạ lưu trỏ tới IP riêng tư, loopback, link-local hoặc chưa chỉ định nhằm giảm nguy cơ lộ mạng nội bộ; các kết nối cục bộ có thể thất bại."
+ },
+ "codexLiveMediaRelayPublicIP": {
+ "label": "IP công khai được thông báo",
+ "hint": "Địa chỉ IPv4 hoặc IPv6 công khai tùy chọn để thông báo khi proxy nằm sau 1:1 NAT. Nhập địa chỉ IP, không phải hostname."
+ },
+ "codexLiveMediaRelayUDPPortMin": {
+ "label": "Cổng UDP tối thiểu",
+ "hint": "Đặt cả hai giới hạn UDP thành 0 để hệ thống tự phân bổ, hoặc chỉ định một dải liên tục bao gồm cả hai đầu với số cổng ít nhất gấp đôi giới hạn phiên hiệu dụng."
+ },
+ "codexLiveMediaRelayUDPPortMax": {
+ "label": "Cổng UDP tối đa",
+ "hint": "Phải lớn hơn hoặc bằng cổng tối thiểu. Cả hai giới hạn phải cùng bằng 0 hoặc cùng khác 0; dải tùy chỉnh cần ít nhất hai cổng cho mỗi phiên (64 cổng với mặc định 32 phiên)."
+ },
+ "codexLiveMediaRelayICEServers": {
+ "label": "Máy chủ ICE",
+ "hint": "Các máy chủ STUN/TURN tùy chọn dùng URL stun:, stuns:, turn:, hoặc turns:. Thông tin xác thực TURN được bỏ qua trong API cấu hình JSON. Nhập thông tin xác thực dưới dạng mật khẩu và không để lộ bí mật trong ảnh chụp màn hình hay log."
+ }
+ }
+ },
+ "source_changes_before_visual": "Lưu hoặc hủy các chỉnh sửa mã nguồn chưa lưu trước khi chuyển sang chế độ trực quan.",
+ "precise_save_incomplete": "Quá trình lưu chính xác chưa hoàn tất; một số thay đổi có thể đã được áp dụng. Bản nháp của bạn được giữ lại. Hãy lưu lại để xem xét các khác biệt còn lại trên máy chủ.",
+ "concurrent_list_conflict": "Danh sách trên máy chủ {{path}} đã thay đổi sau mốc cơ sở bản nháp của bạn. Thao tác lưu bị chặn để tránh ghi đè các thay đổi đó. Bản nháp của bạn được giữ lại; hãy ghi lại các chỉnh sửa, sau đó tải lại cấu hình và hợp nhất.",
+ "precise_save_recovery_required": "Không thể đọc lại kết quả lưu. Đã tạm dừng chỉnh sửa. Lưu lại để khôi phục mốc cơ sở của bản nháp, hoặc tải lại cấu hình.",
+ "tabs_short": {
+ "common": "Common",
+ "connectivity": "Access",
+ "network": "Network",
+ "logging": "Logging",
+ "quota": "Quota fallback",
+ "streaming": "Streaming",
+ "advanced": "Advanced",
+ "payload": "Payload"
+ }
+ },
+ "quota_management": {
+ "title": "Quản lý Quota",
+ "description": "Theo dõi trạng thái quota OAuth của credential Antigravity, Codex, Claude, Kimi và xAI.",
+ "refresh_all_credentials": "Làm mới mọi credential",
+ "sort_label": "Sắp xếp",
+ "sort_default": "Mặc định",
+ "sort_soonest": "Sớm khôi phục nhất",
+ "meta_credentials": "{{count}} credential",
+ "meta_loaded": "{{count}} đã tải",
+ "meta_attention": "{{count}} cần chú ý",
+ "empty_title": "Không có credential hỗ trợ quota",
+ "empty_desc": "Kết nối credential Antigravity, Claude, Codex, xAI hoặc Kimi để theo dõi quota tại đây.",
+ "windows_title": "Cửa sổ quota",
+ "windows_span_weekly": "hai tuần",
+ "windows_span_session": "ba ngày",
+ "windows_current": "hiện tại",
+ "windows_today": "Hôm nay",
+ "windows_prev": "Trước",
+ "windows_next": "Sau",
+ "windows_mode_weekly": "Tuần",
+ "windows_mode_session": "5 giờ",
+ "windows_credential": "Credential",
+ "windows_idle": "không có cửa sổ nào đang đếm ngược",
+ "windows_empty_session": "Không có credential nào trên trang này báo cáo cửa sổ quota 5 giờ.",
+ "windows_legend_current": "cửa sổ hiện tại",
+ "windows_legend_upcoming": "sắp tới",
+ "windows_legend_elapsed": "đã trôi qua",
+ "windows_legend_reset_credit": "hết hạn đặt lại thủ công",
+ "soonest_row_hint": "Khôi phục sớm nhất trên credential này",
+ "windows_reset_credit": "Đặt lại thủ công",
+ "windows_credit_granted": "Được cấp",
+ "windows_credit_expires": "Hết hạn",
+ "windows_note_weekly": "Mỗi thanh là một cửa sổ quota đầy đủ, vẽ từ lúc mở đến lúc đặt lại. Các làn kết thúc cùng lúc sẽ cạnh tranh cùng ngày.",
+ "windows_note_session": "Mỗi thanh là một cửa sổ 5 giờ. Chỉ credential có cửa sổ đang đếm ngược mới được dự báo; các credential khác để trống thay vì bịa đặt.",
+ "weekday_sun": "CN",
+ "weekday_mon": "T2",
+ "weekday_tue": "T3",
+ "weekday_wed": "T4",
+ "weekday_thu": "T5",
+ "weekday_fri": "T6",
+ "weekday_sat": "T7",
+ "search_label": "Tìm kiếm tài khoản",
+ "search_placeholder": "Tìm theo tên file hoặc email",
+ "search_empty_title": "Không có tài khoản phù hợp",
+ "search_empty_desc": "Hãy thử tên file hoặc email khác, hoặc xóa tìm kiếm.",
+ "search_clear": "Xóa tìm kiếm",
+ "view_label": "View",
+ "view_ledger": "Ledger",
+ "view_cards": "Cards",
+ "view_timeline": "Timeline",
+ "show_emails": "Show emails",
+ "show_emails_hint": "Toggle masked email addresses",
+ "summary_of_capacity": "of {{capacity}}%",
+ "summary_show": "Show",
+ "summary_hide": "Hide",
+ "ledger_not_loaded": "Not loaded",
+ "ledger_no_windows": "No windows reported",
+ "ledger_no_reset": "No reset pending",
+ "ledger_show_less": "Show less",
+ "hide_emails": "Hide emails",
+ "summary_credentials_one": "{{count}} credential",
+ "summary_credentials_other": "{{count}} credentials",
+ "ledger_more_one": "+{{count}} more",
+ "ledger_more_other": "+{{count}} more",
+ "meta_credentials_one": "{{count}} account",
+ "meta_credentials_other": "{{count}} accounts",
+ "refresh_quota_tooltip": "Refresh quota",
+ "ledger_use_reset": "Use reset · {{count}}",
+ "ledger_reset": "Reset"
+ },
+ "plugin_management": {
+ "title": "Quản lý Plugin",
+ "description": "Xem plugin đã phát hiện và đăng ký, sau đó quản lý bật/tắt phiên bản, trường cấu hình và liên kết tài nguyên.",
+ "refresh": "Làm mới",
+ "load_failed": "Không thể tải plugin",
+ "config_load_failed": "Không thể đọc cấu hình plugin",
+ "config_not_found": "Không thể đọc cấu hình plugin vì backend không tìm thấy plugin này.",
+ "unsupported_backend": "Backend hiện tại không cung cấp API quản lý plugin. Hãy dùng bản backend mới hơn có endpoint quản lý plugin, sau đó khởi động lại dịch vụ.",
+ "global_status": "Trạng thái toàn cục",
+ "global_enabled": "Đang bật",
+ "global_disabled": "Đã tắt",
+ "global_disabled_hint": "plugins.enabled đang là false nên phiên bản plugin đã bật sẽ không có hiệu lực.",
+ "plugins_dir": "Thư mục plugin",
+ "discovered": "Đã phát hiện",
+ "effective": "Có hiệu lực",
+ "search_placeholder": "Tìm ID, tên, tác giả hoặc tài nguyên plugin...",
+ "search_label": "Tìm plugin",
+ "no_plugins": "Không có plugin",
+ "no_plugins_desc": "Không tìm thấy plugin nào trong thư mục plugin hoặc registry runtime.",
+ "configured": "Đã cấu hình",
+ "not_configured": "Chưa cấu hình",
+ "registered": "Đã đăng ký",
+ "not_registered": "Chưa đăng ký",
+ "oauth": "OAuth",
+ "status_effective": "Có hiệu lực",
+ "status_inactive": "Không hoạt động",
+ "edit_config": "Chỉnh sửa cấu hình",
+ "open_repository": "Mở repository",
+ "config_title": "Cấu hình {{name}}",
+ "base_settings": "Cài đặt cơ bản",
+ "enabled": "Đang bật",
+ "enabled_hint": "Điều khiển trường enabled của phiên bản plugin này trong plugins.configs.",
+ "priority": "Ưu tiên",
+ "config_fields": "Trường cấu hình",
+ "no_config_fields": "Plugin này không khai báo trường cấu hình trực quan.",
+ "select_placeholder": "Chọn",
+ "array_item_placeholder": "Nhập phần tử mảng",
+ "add_array_item": "Thêm phần tử mảng",
+ "remove_array_item": "Xóa phần tử mảng",
+ "delete_plugin": "Xóa",
+ "delete_confirm_title": "Xóa plugin",
+ "delete_confirm_message": "Xóa {{name}} ({{id}})? Thao tác này sẽ xóa file plugin cục bộ và cấu hình đã lưu.",
+ "delete_success": "Đã xóa plugin",
+ "delete_failed": "Không thể xóa plugin",
+ "delete_restart_required": "Plugin đã nạp không thể bị xóa cho đến khi backend khởi động lại.",
+ "toggle_success": "Đã cập nhật trạng thái plugin",
+ "toggle_failed": "Không thể cập nhật trạng thái plugin",
+ "runtime_pending": "Thay đổi plugin đã lưu nhưng trạng thái runtime vẫn đang chờ. Hãy làm mới sau hoặc kiểm tra log backend.",
+ "save_success": "Đã lưu cấu hình plugin",
+ "save_failed": "Không thể lưu cấu hình plugin",
+ "validation_failed": "Hãy sửa lỗi form cấu hình plugin trước",
+ "invalid_priority": "Nhập mức ưu tiên là số nguyên",
+ "invalid_number": "Nhập số hợp lệ",
+ "invalid_integer": "Nhập số nguyên hợp lệ",
+ "invalid_json": "Nhập JSON hợp lệ",
+ "expected_array": "Nhập mảng JSON",
+ "expected_object": "Nhập đối tượng JSON",
+ "invalid_enum": "Chọn một trong các giá trị enum đã khai báo"
+ },
+ "plugin_store": {
+ "title": "Cửa hàng Plugin",
+ "description": "Duyệt registry plugin, sau đó cài đặt hoặc cập nhật plugin cho backend hiện tại.",
+ "description_show_more": "Hiện thêm",
+ "description_show_less": "Ẩn bớt",
+ "source_name": "Nguồn: {{source}}",
+ "cli_proxy_api_source": "Nguồn CLIProxyAPI",
+ "refresh": "Làm mới",
+ "retry": "Thử lại",
+ "load_failed": "Không thể tải cửa hàng plugin",
+ "unsupported_backend": "Backend hiện tại không cung cấp API plugin store. Hãy dùng bản backend mới hơn có endpoint plugin store, sau đó khởi động lại dịch vụ.",
+ "registry_failed": "Không thể kết nối registry plugin",
+ "global_status": "Trạng thái toàn cục",
+ "global_enabled": "Đang bật",
+ "global_disabled": "Đã tắt",
+ "global_disabled_hint": "plugins.enabled đang là false nên plugin đã cài sẽ không có hiệu lực.",
+ "plugins_dir": "Thư mục plugin",
+ "stat_available": "Khả dụng",
+ "search_placeholder": "Tìm ID, tên, tác giả hoặc tag plugin...",
+ "search_label": "Tìm cửa hàng plugin",
+ "filter_label": "Lọc theo trạng thái cài đặt",
+ "filter_all": "Tất cả",
+ "filter_installed": "Đã cài",
+ "filter_not_installed": "Chưa cài",
+ "filter_updates": "Có bản cập nhật",
+ "badge_installed": "Đã cài",
+ "badge_update": "Có bản cập nhật",
+ "badge_effective": "Có hiệu lực",
+ "version_arrow": "v{{from}} → v{{to}}",
+ "install_type": "Cài đặt: {{type}}",
+ "platforms": "Nền tảng: {{platforms}}",
+ "auth_required": "Cần xác thực",
+ "auth_configured": "Đã cấu hình xác thực",
+ "auth_required_hint": "Hãy cấu hình plugins.store-auth trước khi cài từ nguồn hoặc URL artifact này",
+ "source_errors_title": "Một số nguồn plugin không tải được",
+ "install": "Cài đặt",
+ "update": "Cập nhật",
+ "manage": "Quản lý",
+ "install_confirm_title": "Cài đặt plugin",
+ "install_confirm_message": "Tải {{target}} từ registry plugin và cài vào thư mục plugin cục bộ?",
+ "update_confirm_title": "Cập nhật plugin",
+ "update_confirm_message": "Tải và cài đặt {{target}}?",
+ "install_version_label": "Phiên bản",
+ "install_version_latest": "mới nhất",
+ "install_version_latest_mode": "Bản ổn định mới nhất",
+ "install_version_latest_hint": "Backend sẽ phân giải khi cài đặt. Phiên bản đang niêm yết: {{version}}.",
+ "install_version_release_mode": "Chọn bản phát hành",
+ "install_version_release_hint": "Đọc các tag cài được từ GitHub Releases.",
+ "install_version_manual_mode": "Tag phát hành thủ công",
+ "install_version_manual_hint": "Chỉ dùng khi không thể tự động tải danh sách bản phát hành.",
+ "install_versions_loading": "Đang tải GitHub Releases...",
+ "install_versions_load_failed": "Không thể tải danh sách phiên bản phát hành",
+ "install_version_non_github": "Repository plugin này không phải repository GitHub",
+ "install_versions_empty": "Không tìm thấy bản phát hành nào chọn được.",
+ "install_versions_only_prerelease": "Chỉ có phiên bản prerelease. Hãy hiện prerelease để chọn.",
+ "install_version_release_select": "Chọn phiên bản phát hành",
+ "install_version_release_placeholder": "Chọn phiên bản phát hành",
+ "install_version_prerelease_badge": "prerelease",
+ "install_version_assets_count": "{{count}} asset",
+ "install_version_show_prerelease": "Hiện phiên bản prerelease",
+ "install_version_manual_placeholder": "Ví dụ v0.1.4",
+ "install_version_manual_error": "Tag phát hành chỉ được chứa chữ cái, chữ số, dấu chấm, gạch dưới, dấu cộng và dấu gạch nối; không cho phép khoảng trắng và dấu gạch chéo.",
+ "install_version_current_selected": "{{version}} đã được cài. Hãy chọn phiên bản khác.",
+ "install_version_releases_link": "Xem GitHub Releases",
+ "install_success": "Đã cài đặt plugin",
+ "update_success": "Đã cập nhật plugin",
+ "install_failed": "Không thể cài đặt plugin",
+ "update_failed": "Không thể cập nhật plugin",
+ "status_pending": "File plugin đã cập nhật nhưng trạng thái cục bộ chưa làm mới. Hãy làm mới sau hoặc kiểm tra log backend.",
+ "registration_pending": "File plugin đã cập nhật nhưng việc đăng ký vẫn đang chờ. Hãy làm mới sau hoặc kiểm tra log backend.",
+ "restart_required_notice": "Khởi động lại dịch vụ để nạp phiên bản plugin mới",
+ "restart_required_banner": "Khởi động lại dịch vụ để áp dụng phiên bản mới của: {{plugins}}",
+ "open_repository": "Mở repository",
+ "open_homepage": "Mở trang chủ",
+ "no_plugins": "Registry trống",
+ "no_plugins_desc": "Registry plugin không trả về plugin nào.",
+ "no_matches": "Không có plugin phù hợp",
+ "no_matches_desc": "Không có plugin nào khớp tìm kiếm hoặc bộ lọc hiện tại.",
+ "clear_filters": "Xóa bộ lọc",
+ "security_banner_title": "Plugin bên thứ ba chạy với toàn quyền truy cập backend",
+ "security_banner_text": "Plugin thực thi mã bên trong dịch vụ proxy và có thể đọc credential cũng như lưu lượng của bạn. Chỉ cài plugin bạn tin tưởng — đặc biệt cẩn thận với plugin không do tổ chức chính thức router-for-me phát hành.",
+ "badge_untrusted": "Bên thứ ba",
+ "gate_title": "Cài đặt {{name}}",
+ "gate_title_update": "Cập nhật {{name}}",
+ "gate_warning": "Những điều bất ngờ và gây hại có thể xảy ra nếu bạn không đọc phần này.",
+ "gate_effect_runs_code": "Plugin này sẽ chạy mã bên thứ ba chưa được kiểm định trong backend proxy của bạn. Hệ thống không thể cô lập hay kiểm toán hành vi của nó, và nó có thể truy cập credential nhạy cảm, yêu cầu mạng và dữ liệu phản hồi của bạn.",
+ "gate_effect_no_review": "Plugin này không được tổ chức chính thức router-for-me phát hành hay đánh giá. Tổ chức chính thức không bảo hành rõ ràng hay ngụ ý về tính ổn định, bảo mật, tuân thủ hay bất kỳ thay đổi hành vi nào trong các phiên bản tương lai của plugin này.",
+ "gate_effect_restart": "Cài đặt sẽ thay đổi thư mục plugin cục bộ và có thể cần khởi động lại dịch vụ để có hiệu lực.",
+ "gate_untrusted_alert": "Plugin này không thuộc tổ chức chính thức router-for-me. Chỉ tiếp tục nếu bạn hoàn toàn tin tưởng tác giả và nguồn của nó.",
+ "gate_repository_label": "Repository",
+ "gate_source_label": "Nguồn",
+ "gate_step1_action": "Tôi muốn cài plugin này",
+ "gate_step2_action": "Tôi đã đọc và hiểu các rủi ro này",
+ "gate_step3_prompt": "Để xác nhận, nhập \"{{token}}\" vào ô bên dưới",
+ "gate_step3_action": "Cài đặt plugin này",
+ "gate_step3_hint": "Nhập chính xác mã định danh hiển thị ở trên để cho phép cài đặt."
+ },
+ "plugin_resource": {
+ "page_count": "{{count}} trang",
+ "load_failed": "Không thể tải trang plugin",
+ "unavailable": "Trang plugin không khả dụng",
+ "not_found": "Không tìm thấy trang plugin",
+ "not_found_desc": "Trang plugin này không được khai báo trong danh sách plugin backend hiện tại.",
+ "empty_src": "URL trang plugin trống",
+ "empty_src_desc": "Menu plugin này không cung cấp URL trang nhúng được."
+ },
+ "system_info": {
+ "title": "Thông tin Trung tâm Quản lý",
+ "about_title": "Trung tâm Quản lý CLI Proxy API",
+ "models_title": "Model khả dụng",
+ "models_desc": "Hiển thị phản hồi /models và tự động dùng API key đã lưu để xác thực.",
+ "models_loading": "Đang tải model khả dụng...",
+ "models_empty": "/models không trả về model nào",
+ "models_error": "Không thể tải danh sách model",
+ "models_count": "{{count}} model khả dụng",
+ "version_check_button": "Kiểm tra cập nhật",
+ "version_update_available": "Có bản cập nhật: {{version}}",
+ "version_is_latest": "Bạn đang dùng phiên bản mới nhất",
+ "version_check_error": "Kiểm tra cập nhật thất bại",
+ "version_current_missing": "Không có phiên bản máy chủ; không thể so sánh",
+ "version_unknown": "Không rõ",
+ "quick_links_title": "Liên kết nhanh",
+ "quick_links_desc": "Truy cập repository dự án và tài liệu để được trợ giúp và cập nhật.",
+ "link_main_repo": "Repository chính",
+ "link_main_repo_desc": "Mã nguồn chương trình lõi CLI Proxy API",
+ "link_webui_repo": "Repository WebUI",
+ "link_webui_repo_desc": "Mã nguồn frontend Trung tâm Quản lý",
+ "link_docs": "Tài liệu",
+ "link_docs_desc": "Hướng dẫn và tutorial cấu hình",
+ "clear_login_title": "Dữ liệu đăng nhập cục bộ",
+ "clear_login_desc": "Xóa dữ liệu đăng nhập đã lưu cục bộ và đăng xuất.",
+ "clear_login_button": "Xóa dữ liệu đăng nhập",
+ "clear_login_confirm": "Xóa dữ liệu đăng nhập cục bộ và đăng xuất ngay?"
+ },
+ "notification": {
+ "request_log_updated": "Đã cập nhật cài đặt ghi log yêu cầu",
+ "login_storage_cleared": "Đã xóa dữ liệu đăng nhập cục bộ",
+ "data_refreshed": "Đã làm mới dữ liệu thành công",
+ "connection_required": "Vui lòng thiết lập kết nối trước",
+ "refresh_failed": "Làm mới thất bại",
+ "update_failed": "Cập nhật thất bại",
+ "add_failed": "Thêm thất bại",
+ "delete_failed": "Xóa thất bại",
+ "upload_failed": "Tải lên thất bại",
+ "download_failed": "Tải xuống thất bại",
+ "login_failed": "Đăng nhập thất bại",
+ "commercial_mode_restart_required": "Đã đổi cài đặt chế độ thương mại. Vui lòng khởi động lại dịch vụ để có hiệu lực",
+ "copy_failed": "Sao chép thất bại",
+ "link_copied": "Đã sao chép liên kết vào clipboard",
+ "trusted_proxies_restart_required": "Đã lưu cài đặt proxy đáng tin cậy. Hãy khởi động lại backend để áp dụng.",
+ "region_label": "Thông báo",
+ "type_success": "Thành công",
+ "type_info": "Thông tin",
+ "type_warning": "Cảnh báo",
+ "type_error": "Lỗi"
+ },
+ "language": {
+ "switch": "Ngôn ngữ",
+ "chinese": "中文",
+ "chinese_tw": "繁體中文(台灣)",
+ "english": "English",
+ "russian": "Русский",
+ "vietnamese": "Tiếng Việt",
+ "korean": "한국어"
+ },
+ "theme": {
+ "switch": "Giao diện",
+ "light": "Giấy len",
+ "white": "Trắng tinh",
+ "dark": "Tối",
+ "auto": "Theo hệ thống"
+ },
+ "sidebar": {
+ "toggle_expand": "Mở rộng thanh bên",
+ "toggle_collapse": "Thu gọn thanh bên",
+ "expand": "Mở rộng",
+ "collapse": "Thu gọn",
+ "subtitle": "Bảng điều khiển CLI Proxy API",
+ "auth_files_count": "File xác thực: {{count}}",
+ "auth_files_problems": "{{count}} need attention"
+ },
+ "footer": {
+ "api_version": "Phiên bản CLI Proxy API",
+ "build_date": "Thời gian build",
+ "version": "Phiên bản giao diện quản lý"
+ },
+ "providersPage": {
+ "header": {
+ "title": "AI Provider",
+ "activeResources": "{{active}}/{{total}} tài nguyên đang hoạt động",
+ "providerFamilies": "{{count}} nhóm provider",
+ "updatedAt": "Cập nhật {{time}}",
+ "description": "Upstream API keys and compatible endpoints."
+ },
+ "actions": {
+ "refresh": "Làm mới",
+ "syncing": "Đang đồng bộ",
+ "new": "Mới",
+ "edit": "Chỉnh sửa",
+ "view": "Xem",
+ "delete": "Xóa",
+ "cancel": "Hủy",
+ "save": "Lưu",
+ "create": "Tạo",
+ "enable": "Bật",
+ "disable": "Tắt",
+ "add_key": "Add key"
+ },
+ "categories": {
+ "title": "Provider",
+ "quickFill": "Điền nhanh",
+ "activeCount": "{{active}}/{{total}} đang hoạt động"
+ },
+ "providerNames": {
+ "gemini": "Gemini",
+ "interactions": "Interactions API",
+ "codex": "Codex",
+ "xai": "xAI",
+ "claude": "Claude",
+ "claudeApi": "ClaudeAPI",
+ "vertex": "Vertex",
+ "openaiCompatibility": "Tương thích OpenAI",
+ "apikeyFun": "APIKEY.FUN",
+ "code0": "Code0",
+ "fennoAI": "FennoAI",
+ "qiniuCloud": "Qiniu Cloud",
+ "lmuAI": "LMU AI (Linhmou AI)",
+ "infistar": "Infistar",
+ "kimi": "Kimi",
+ "meta": "Muse (Meta)"
+ },
+ "table": {
+ "key": "Key",
+ "baseUrl": "Base URL",
+ "prefix": "Tiền tố",
+ "models": "Model/Header",
+ "status": "Trạng thái",
+ "actions": "Hành động",
+ "metrics": {
+ "models": "Model",
+ "keys": "Key",
+ "headers": "Header"
+ },
+ "websocketsTag": "WebSocket",
+ "cloakTag": "Cloak",
+ "empty": "Chưa có tài nguyên nào, nhấn \"Mới\" để thêm.",
+ "filterPlaceholder": "Tìm key, URL, tiền tố…",
+ "description": "Quản lý tài nguyên trong {{route}}",
+ "cliProfileTag": "Hồ sơ CLI"
+ },
+ "sponsor": {
+ "protocolSummary": "Anthropic / OpenAI / Gemini / Codex API (Responses)",
+ "detailHint": "{{provider}} được lưu vào cấu hình API key tương ứng theo giao thức; khung xem này quản lý chúng cùng nhau.",
+ "registerLink": "Đăng ký tại đây",
+ "registerNow": "Đăng ký ngay",
+ "dashboardLink": "Bảng điều khiển",
+ "emptyRegisterHint": "Chưa có cấu hình nào.",
+ "apiKeyHint": "Key này chỉ được ghi vào cấu hình nhóm/giao thức đã chọn.",
+ "usageCheck": "Kiểm tra mức sử dụng",
+ "usageChecking": "Đang kiểm tra",
+ "usageRemaining": "Còn lại: {{amount}} {{unit}}",
+ "usageBreakdown": "Đã dùng {{used}} / Giới hạn {{limit}}",
+ "usageStatus": "Trạng thái: {{status}}",
+ "usageInvalid": "Key không hợp lệ",
+ "usageEmpty": "Endpoint không trả về dữ liệu sử dụng nào.",
+ "usageApiKeyRequired": "Cần có API key",
+ "aggregationConflict": "Provider được nhóm này chứa nhiều cấu hình backend hoặc key OpenAI. Hãy chỉnh trong cấu hình nguồn để tránh mất dữ liệu.",
+ "partialMutationWarning": "Thao tác thất bại sau khi một hoặc nhiều giao thức có thể đã được cập nhật. Cấu hình mới nhất đã được tải lại; hãy xem lại trước khi thử lại.",
+ "groupedKeysTitle": "Key được nhóm",
+ "groupedKeysHint": "Key nền tảng có thể được gắn vào nhóm khi tạo. Mỗi key được nhóm tại đây quản lý một giao thức, và khám phá model chỉ dùng giao thức đó.",
+ "groupedKey": "Key được nhóm #{{index}}",
+ "addGroupedKey": "Thêm key được nhóm",
+ "removeGroupedKey": "Xóa key được nhóm",
+ "protocol": "Nhóm/giao thức",
+ "protocolHint": "Chọn nhóm/giao thức cho key này.",
+ "protocolEndpoint": "Endpoint giao thức hiện tại",
+ "urlMode": "URL {{provider}}",
+ "urlHint": "Mọi URL dùng cùng quy ước API. Lưu chỉ ghi endpoint của giao thức được nhóm hiện tại.",
+ "urlOptions": {
+ "standard": "URL chuẩn",
+ "direct": "URL trực tiếp",
+ "domestic": "Tuyến Trung Quốc đại lục",
+ "overseas": "Tuyến nước ngoài",
+ "mainlandChina": "Trung Quốc đại lục (khuyến nghị)",
+ "global": "Toàn cầu"
+ },
+ "urlOptionDescriptions": {
+ "domestic": "Dành cho người dùng và khối lượng công việc tại Trung Quốc đại lục; thường có độ trễ thấp hơn trên mạng đại lục.",
+ "overseas": "Dành cho triển khai nước ngoài, truy cập xuyên biên giới hoặc khối lượng công việc cần model nước ngoài.",
+ "mainlandChinaRecommended": "Khuyến nghị cho người dùng và khối lượng công việc trên mạng Trung Quốc đại lục.",
+ "global": "Dành cho người dùng và khối lượng công việc ở mọi khu vực khác."
+ },
+ "modelsTitle": "Cài đặt model giao thức",
+ "modelsHint": "Cấu hình danh sách cho phép hoặc bí danh model riêng cho các tuyến Codex API, Anthropic, Gemini và tương thích OpenAI.",
+ "protocolModels": {
+ "codex": "Model Codex API",
+ "anthropic": "Model Anthropic",
+ "gemini": "Model Gemini",
+ "openai": "Model tương thích OpenAI"
+ },
+ "protocolModelHints": {
+ "codex": "Ghi vào cấu hình model Codex API. Lấy từ /v1/models và đặt bí danh nếu cần.",
+ "anthropic": "Ghi vào cấu hình model Anthropic. Lấy từ /v1/models và đặt bí danh nếu cần.",
+ "gemini": "Ghi vào cấu hình model Gemini. Lấy từ /v1beta/models và đặt bí danh nếu cần.",
+ "openai": "Ghi vào cấu hình model tương thích OpenAI. Lấy từ /models và đặt bí danh nếu cần."
+ },
+ "validation": {
+ "keyRequired": "Nhập API key cho mọi key được nhóm.",
+ "protocolDuplicate": "Mỗi giao thức chỉ có một key được nhóm."
+ },
+ "openaiEntries": "Key tương thích OpenAI",
+ "codexEntries": "Key Codex API",
+ "anthropicEntries": "Key Anthropic",
+ "geminiEntries": "Key Gemini",
+ "protocols": {
+ "anthropic": "Anthropic",
+ "openai": "Tương thích OpenAI",
+ "gemini": "Gemini",
+ "codexResponses": "Codex API (Responses)"
+ },
+ "kimiPromo": "Người dùng mới nạp tiền lần đầu thành công sẽ được tặng hạn mức API trị giá 10% số tiền nạp, tối đa ¥1000. Ưu đãi kết thúc vào ngày 30 tháng 9."
+ },
+ "status": {
+ "active": "Đang hoạt động",
+ "disabled": "Đã tắt",
+ "notSet": "Chưa đặt",
+ "none": "Không",
+ "notConfigured": "Chưa cấu hình",
+ "defaultSuffix": "(mặc định)"
+ },
+ "detail": {
+ "title": "Chi tiết",
+ "metadataTitle": "Metadata",
+ "fields": {
+ "identifier": "Định danh",
+ "baseUrl": "Base URL",
+ "proxyUrl": "URL Proxy",
+ "prefix": "Tiền tố",
+ "models": "Model",
+ "headers": "Header",
+ "authIndex": "Chỉ mục xác thực",
+ "excludedModels": "Model bị loại trừ",
+ "apiKeyEntries": "Mục API key"
+ }
+ },
+ "form": {
+ "createEyebrow": "Mới",
+ "editEyebrow": "Chỉnh sửa",
+ "name": "Tên",
+ "apiKey": "API key",
+ "apiKeyCreatePlaceholder": "Nhập API key",
+ "apiKeyEditPlaceholder": "Để trống nếu không đổi",
+ "baseUrl": "Base URL",
+ "baseUrlRequiredHint": "Bắt buộc với provider này",
+ "proxyUrl": "URL Proxy",
+ "prefix": "Tiền tố",
+ "priority": "Ưu tiên",
+ "weight": "Trọng số điều phối",
+ "weightHint": "Mặc định 1 · ≤ 0 bị loại trừ · tối đa 1.000.000",
+ "disabled": "Tắt mục này",
+ "disabledHint": "Gateway sẽ không dùng mục đã tắt",
+ "websockets": "Bật WebSocket",
+ "testModel": "Model kiểm thử",
+ "testModelHint": "Chỉ dùng để kiểm thử kết nối; không được lưu",
+ "testModelAutoWith": "Tự động · {{name}}",
+ "testModelAutoEmpty": "Tự động (chưa thêm model nào)",
+ "testModelCustom": "{{name}} (tùy chỉnh)",
+ "modelsSection": "Model tùy chỉnh",
+ "addModel": "Thêm model",
+ "headersSection": "Header yêu cầu",
+ "addHeader": "Thêm header",
+ "excludedSection": "Model bị loại trừ",
+ "excludedDisabledNote": "“*” nghĩa là toàn bộ provider bị tắt — hãy dùng công tắc Đã tắt ở trên thay thế.",
+ "cloakSection": "Cài đặt Cloak",
+ "cloakMode": "Chế độ",
+ "cloakStrict": "Chế độ nghiêm ngặt",
+ "cloakSensitiveWords": "Từ nhạy cảm (mỗi dòng một từ)",
+ "apiKeyEntriesSection": "Mục API key",
+ "apiKeyEntry": "Key #{{index}}",
+ "addApiKeyEntry": "Thêm mục key",
+ "showApiKey": "Hiện API key",
+ "hideApiKey": "Ẩn API key",
+ "disableCooling": "Tắt cooling",
+ "disableCoolingHint": "Chỉ tắt cửa sổ cooldown thất bại cho credential hoặc provider này",
+ "modelImage": "Cho phép endpoint ảnh",
+ "modelImageHint": "Cho phép model này trên /v1/images/generations và /v1/images/edits",
+ "showAllEntries": "Hiện tất cả ({{count}})",
+ "showFewerEntries": "Ẩn bớt",
+ "proxyBadge": "Proxy",
+ "modelBadgeImage": "Ảnh",
+ "modelBadgeThinking": "Suy luận",
+ "thinkingConfig": "Mức suy luận được phép",
+ "thinkingExistingHint": "Cấu hình backend hiện tại không đổi cho đến khi bạn đổi lựa chọn; sau đó sẽ được thay bằng các mức chuẩn đã chọn.",
+ "thinkingLevels": {
+ "none": "Tắt suy luận",
+ "minimal": "Tối thiểu",
+ "low": "Thấp",
+ "medium": "Trung bình",
+ "high": "Cao",
+ "xhigh": "Rất cao",
+ "max": "Tối đa",
+ "auto": "Tự động"
+ },
+ "cloakCacheUserId": "Cache user_id",
+ "cloakCacheUserIdHint": "Dùng lại user_id Claude cloak theo từng API key",
+ "experimentalCchSigning": "Ký CCH thử nghiệm",
+ "experimentalCchSigningHint": "Ký body /v1/messages Claude đã cloak cuối cùng bằng CCH",
+ "validation": {
+ "nameRequired": "Tên là bắt buộc",
+ "apiKeyRequired": "Cần ít nhất một API key",
+ "baseUrlRequired": "Base URL là bắt buộc",
+ "weightInteger": "Trọng số điều phối phải là số nguyên",
+ "weightMax": "Trọng số điều phối không được vượt quá {{max}}"
+ },
+ "fingerprintProfile": "Dấu vân tay yêu cầu",
+ "fingerprintProfileDefault": "Mặc định (do phía gọi kiểm soát)",
+ "fingerprintProfileClaudeCodeCli": "Claude Code CLI",
+ "fingerprintProfileHint": "Mặc định giữ nguyên prompt và header của phía gọi, hoặc chọn sử dụng dấu vân tay yêu cầu của Claude Code CLI."
+ },
+ "delete": {
+ "title": "Xóa tài nguyên",
+ "confirm": "Xóa {{name}}? Thao tác này không thể hoàn tác."
+ },
+ "toast": {
+ "created": "Đã tạo",
+ "updated": "Đã cập nhật",
+ "deleted": "Đã xóa",
+ "enabled": "Đã bật",
+ "disabled": "Đã tắt",
+ "toggleFailed": "Không thể cập nhật trạng thái"
+ },
+ "unsavedChanges": {
+ "title": "Hủy thay đổi chưa lưu?",
+ "message": "Bạn có chỉnh sửa chưa lưu trong form này. Đóng sẽ hủy chúng.",
+ "discard": "Hủy thay đổi",
+ "keepEditing": "Tiếp tục chỉnh sửa"
+ },
+ "connectivity": {
+ "test": "Kiểm thử",
+ "testAll": "Kiểm thử tất cả",
+ "success": "Kết nối được",
+ "baseUrlRequired": "Cần có Base URL",
+ "endpointInvalid": "URL endpoint không hợp lệ",
+ "apiKeyRequired": "Cần có API key",
+ "modelRequired": "Cần có model kiểm thử",
+ "timeout": "Hết thời gian sau {{seconds}} giây",
+ "requestFailed": "Yêu cầu thất bại"
+ },
+ "discovery": {
+ "openButton": "Lấy từ endpoint",
+ "searchPlaceholder": "Tìm model",
+ "reload": "Tải lại",
+ "loading": "Đang tải model…",
+ "empty": "Endpoint không trả về model nào",
+ "notLoaded": "Nhấn Tải lại để lấy model",
+ "selectAll": "Chọn tất cả",
+ "clearAll": "Bỏ chọn",
+ "selectedCount": "{{selected}} / {{total}}",
+ "alreadyAdded": "Đã thêm",
+ "close": "Đóng",
+ "apply": "Áp dụng ({{count}})"
+ },
+ "toolbar": {
+ "sortBy": "Sắp xếp theo",
+ "sort": {
+ "name": "Tên",
+ "priority": "Ưu tiên",
+ "recentSuccess": "Thành công gần đây",
+ "directionAsc": "Tăng dần",
+ "directionDesc": "Giảm dần"
+ },
+ "filter": {
+ "allModels": "Mọi model",
+ "selectedModels": "{{selected}}/{{total}} model",
+ "selectAll": "Chọn tất cả",
+ "clear": "Xóa",
+ "empty": "Chưa cấu hình model nào"
+ }
+ },
+ "modelCatalog": {
+ "notLoaded": "Chưa tải"
+ },
+ "behavior": {
+ "title": "Hành vi dành riêng cho provider",
+ "alphaSearch": "Bật Alpha Search",
+ "alphaSearchHint": "Cho phép key Codex này phục vụ Alpha Search. Upstream phải hỗ trợ tính năng này.",
+ "codexCloaking": "Ngụy trang yêu cầu Codex",
+ "codexCloakingHint": "Ghi đè các header định danh Codex chính thức cho API key này. Mặc định sẽ xóa ghi đè của credential; các cài đặt chỉ dành cho OAuth không áp dụng ở đây.",
+ "useDefault": "Dùng mặc định của backend",
+ "cloakingEnabled": "Bật ngụy trang",
+ "cloakingDisabled": "Tắt ngụy trang",
+ "rebuildMidSystemMessage": "Tái cấu trúc thông điệp hệ thống",
+ "rebuildMidSystemMessageHint": "Chuyển các tin nhắn Claude có role là system vào trường system ở cấp cao nhất.",
+ "supportPromptCacheKey": "Chèn prompt cache key",
+ "supportPromptCacheKeyHint": "Tạo và chèn prompt_cache_key cho các yêu cầu tương thích. Chỉ bật khi upstream hỗ trợ trường này."
+ },
+ "modelOptions": {
+ "displayName": "Tên hiển thị",
+ "maxContextLength": "Độ dài ngữ cảnh",
+ "contextHint": "Số nguyên không âm; để trống để dùng giá trị mặc định.",
+ "forceMapping": "Viết lại model trong phản hồi thành bí danh",
+ "isCompat": "Chế độ tương thích",
+ "supportConfigurationUpdate": "Cho phép cập nhật cấu hình",
+ "inputModalitiesText": "Phương thức đầu vào (Modalities)",
+ "outputModalitiesText": "Phương thức đầu ra (Modalities)",
+ "modalitiesHint": "Phân tách các giá trị bằng dấu phẩy hoặc khoảng trắng. Tên phương thức tùy chỉnh được giữ nguyên.",
+ "useMaxCompletionTokens": "Sử dụng max_completion_tokens",
+ "thinkingMode": "Ghi đè cấu hình suy nghĩ (Thinking)",
+ "useDefault": "Dùng mặc định",
+ "custom": "Tùy chỉnh",
+ "thinkingHint": "Mặc định kế thừa hành vi backend; ghi đè tùy chỉnh trống là một đối tượng {} rõ ràng. Ngân sách và mức độ nỗ lực có thể cùng tồn tại. Chỉ khi cả hai ngân sách đều là 0 hoặc để trống thì dải số mới không được chỉ định. Đặt giá trị tối đa ít nhất bằng giá trị tối thiểu dương.",
+ "thinkingMin": "Ngân sách suy nghĩ tối thiểu",
+ "thinkingMax": "Ngân sách suy nghĩ tối đa",
+ "thinkingZeroAllowed": "Cho phép ngân sách bằng 0",
+ "thinkingDynamicAllowed": "Cho phép ngân sách động",
+ "invalidContext": "Độ dài ngữ cảnh phải là một số nguyên an toàn không âm.",
+ "invalidThinking": "Cấu hình suy nghĩ phải là một đối tượng JSON hợp lệ.",
+ "invalidBudget": "Ngân sách suy nghĩ phải là số nguyên an toàn không âm.",
+ "invalidRange": "Ngân sách suy nghĩ tối thiểu không được vượt quá mức tối đa. Giới hạn để trống được tính là 0.",
+ "removeModel": "Xóa model",
+ "modelName": "Tên model",
+ "modelAlias": "Bí danh (tùy chọn)"
+ },
+ "runtimePolicy": {
+ "title": "Chính sách thực thi nâng cao",
+ "description": "Kế thừa sẽ dùng chính sách nhóm cha, sau đó là mặc định của backend. Ghi đè chỉ áp dụng cho mục này.",
+ "cooling": "Chiến lược Cooling",
+ "inherit": "Kế thừa",
+ "coolingEnabled": "Bật cooling",
+ "coolingDisabled": "Tắt cooling",
+ "retry": "Số lần thử lại yêu cầu",
+ "retryHint": "Để trống sẽ kế thừa cài đặt nhóm. Dùng số nguyên: 0 để tắt thử lại; giá trị âm sẽ dùng chính sách thử lại toàn cục thay vì chính sách nhóm.",
+ "errorsMode": "Quy tắc lỗi yêu cầu",
+ "override": "Ghi đè",
+ "errorsHint": "Kế thừa sẽ tuân theo chính sách cấp trên. Ghi đè sẽ thay thế toàn bộ danh sách, có thể để trống. Chuyển đổi chế độ vẫn giữ lại bản nháp quy tắc của bạn.",
+ "invalidRetry": "Số lần thử lại phải là số nguyên an toàn, hoặc để trống để kế thừa."
+ },
+ "errorRules": {
+ "hint": "Áp dụng quy tắc khớp đầu tiên theo thứ tự; với cùng một mã trạng thái, bất kỳ điều kiện nào cũng có thể khớp.",
+ "empty": "Chưa có quy tắc nào. Bạn có thể lưu một danh sách trống.",
+ "rule": "Quy tắc {{number}}",
+ "status": "Mã trạng thái",
+ "action": "Hành động",
+ "selectAction": "Chọn một hành động",
+ "moveUp": "Di chuyển quy tắc lên",
+ "moveDown": "Di chuyển quy tắc xuống",
+ "removeRule": "Xóa quy tắc",
+ "matchType": "Loại khớp",
+ "text": "Chứa văn bản",
+ "regex": "Biểu thức chính quy",
+ "matchValue": "Điều kiện",
+ "regexHint": "Biểu thức chính quy Go",
+ "removeMatch": "Xóa điều kiện",
+ "addMatch": "Thêm điều kiện",
+ "addRule": "Thêm quy tắc",
+ "invalidStatus": "Mã trạng thái phải là một số nguyên an toàn dương.",
+ "invalidAction": "Chọn một hành động hợp lệ.",
+ "invalidMatch": "Điều kiện khớp không được để trống.",
+ "missingMatch": "Thêm ít nhất một điều kiện khớp.",
+ "actions": {
+ "stop": "Dừng",
+ "stop-and-cooldown": "Dừng và cooldown",
+ "continue": "Tiếp tục",
+ "continue-and-cooldown": "Tiếp tục và cooldown"
+ }
+ }
+ },
+ "devin_quota": {
+ "daily": "Còn lại hàng ngày",
+ "weekly": "Còn lại hàng tuần",
+ "plan_label": "Gói cước",
+ "plan_end": "Hết hạn đăng ký",
+ "unavailable": "Không có sẵn dữ liệu",
+ "reset_unknown": "Không có thời gian đặt lại",
+ "observed_at": "Quan sát quota lúc: {{time}}",
+ "observed_unknown": "Không có thời gian quan sát quota",
+ "missing_identity": "Thiếu tên credential hoặc chỉ số xác thực. Vui lòng tải lại danh sách credential.",
+ "stale_request": "Kết nối hoặc credential đã thay đổi. Vui lòng thử lại.",
+ "empty_data": "Devin không trả về dữ liệu quota khả dụng nào.",
+ "loading": "Đang truy vấn quota Devin…",
+ "idle": "Nhấn để truy vấn quota Devin",
+ "load_failed": "Truy vấn quota thất bại: {{message}}",
+ "empty_title": "Không có credential Devin",
+ "empty_desc": "Tải lên file credential Devin hoặc đăng nhập bằng CLI backend để truy vấn quota."
+ },
+ "meta_quota": {
+ "title": "Quota Muse (Meta)",
+ "empty_title": "Không có credential Muse",
+ "empty_desc": "Đăng nhập bằng Muse OAuth hoặc tải lên file credential Meta để truy vấn quota.",
+ "idle": "Nhấn để truy vấn quota Muse",
+ "loading": "Đang truy vấn quota Muse…",
+ "load_failed": "Truy vấn quota thất bại: {{message}}",
+ "missing_auth_index": "File xác thực thiếu auth_index",
+ "empty_data": "Quota không xác định. Có thể bạn chưa thực hiện yêu cầu model nào.",
+ "invalid_response": "Muse trả về phản hồi quota không hợp lệ.",
+ "request_failed": "Yêu cầu quota Muse thất bại. Hãy kiểm tra xem credential DCA có hợp lệ không.",
+ "missing_file": "Tra cứu quota yêu cầu file xác thực Meta có thể tải xuống.",
+ "missing_dca_token": "File xác thực không có dca_token hợp lệ. Vui lòng đăng nhập lại bằng Muse OAuth.",
+ "invalid_auth_file": "File xác thực đã tải xuống không phải là JSON hợp lệ.",
+ "download_failed": "Không thể tải xuống file xác thực để tra cứu quota.",
+ "stale_request": "Kết nối hoặc credential đã thay đổi. Vui lòng thử lại.",
+ "plan": "Gói cước",
+ "active": "Đăng ký đang hoạt động",
+ "inactive": "Đăng ký không hoạt động",
+ "window": "Chu kỳ sử dụng",
+ "window_duration": "Chu kỳ {{minutes}} phút",
+ "weekly": "Quota hàng tuần",
+ "unknown": "Không rõ",
+ "remaining": "Còn lại {{percent}}%"
+ },
+ "claude_reset": {
+ "expiry_title": "Hết hạn đặt lại thủ công ({{timezone}})",
+ "grant_number": "Gói {{index}}",
+ "expiry_unknown": "Chưa rõ thời gian hết hạn",
+ "retry_confirm": "Thử lại lượt đặt lại chưa rõ kết quả cho “{{name}}” với ID yêu cầu ban đầu? Một lượt đặt lại có thể đã được tiêu tốn. Hãy thử lại trong vòng 10 phút; không tải lại trang hoặc bắt đầu nhận ở tab khác.",
+ "remaining": "Lượt đặt lại còn lại",
+ "title": "Lượt đặt lại dự trữ",
+ "scope": "Sử dụng một quyền đặt lại có hạn để xóa chu kỳ sử dụng Claude đủ điều kiện. Chỉ xác nhận khi bạn muốn tiêu tốn một lượt đặt lại. Việc khôi phục chỉ giới hạn trong tab/phiên này; không tải lại hoặc dùng tab khác trong khi kết quả chưa rõ.",
+ "loading": "Đang tải…",
+ "read_error": "Không thể đọc quyền đặt lại. Chưa gửi yêu cầu nào.",
+ "blocked": "Chưa gửi yêu cầu đặt lại: không thể xác minh tính đủ điều kiện, danh tính tài khoản hoặc phiên. Hãy làm mới và kiểm tra lại.",
+ "unknown": "Kết quả chưa xác định. Một lượt đặt lại có thể đã được sử dụng. Thử lại trong vòng 10 phút bằng cùng ID yêu cầu; không bắt đầu yêu cầu khác ở nơi khác.",
+ "expired": "Khoảng thời gian thử lại đã hết hạn. Các yêu cầu tiếp theo bị chặn trong phiên này. Hãy kiểm tra tài khoản Claude của bạn trước khi thực hiện thêm hành động.",
+ "retry": "Thử lại cùng yêu cầu",
+ "empty": "Không có quyền đặt lại dự trữ nào.",
+ "count": "Còn {{left}} / {{total}} lượt đặt lại",
+ "ends": "Hết hạn: {{date}}",
+ "use": "Đặt lại giới hạn",
+ "confirm": "Xác nhận đặt lại",
+ "confirm_text": "Tiêu tốn một lượt đặt lại để xóa giới hạn sử dụng đủ điều kiện cho “{{name}}”? Thao tác này sẽ dùng một quyền đặt lại có hạn.",
+ "reset": "Đã đặt lại giới hạn sử dụng.",
+ "already_used": "Quyền này đã được sử dụng.",
+ "not_limited": "Không đặt lại: tài khoản hiện không bị giới hạn.",
+ "cooldown": "Không đặt lại: đang trong thời gian cooldown.",
+ "ineligible": "Tài khoản này không đủ điều kiện.",
+ "unavailable": "Tính năng đặt lại hiện không khả dụng.",
+ "rate_limited": "Yêu cầu bị giới hạn tốc độ.",
+ "auth_error": "Ủy quyền đã bị từ chối."
+ },
+ "routing": {
+ "title": "Routing",
+ "save_failed": "Failed to save setting",
+ "affinity_on": "affinity on",
+ "affinity_off": "affinity off",
+ "affinity_off_warning": "Session affinity is off — prompt caches can miss across accounts.",
+ "settings_aria": "Routing settings",
+ "settings_title": "Affinity",
+ "affinity_label": "Session affinity",
+ "affinity_hint": "Keeps each conversation on the same upstream account so prompt caches stay warm.",
+ "subagents_label": "Subagent affinity",
+ "subagents_hint": "Subagents inherit their parent's credential to reuse caches; disable to spread them across the pool.",
+ "ttl_label": "Binding TTL",
+ "ttl_hint": "How long a session-to-account binding is retained.",
+ "ttl_custom_placeholder": "e.g. 45m",
+ "ttl_custom_label": "Custom TTL",
+ "strategy_label": "Routing strategy",
+ "strategy_hint": "How requests pick a credential when several match.",
+ "strategy_round_robin_desc": "Cycles through matching credentials evenly.",
+ "strategy_weighted_round_robin_desc": "Cycles proportionally to each credential's weight.",
+ "strategy_fill_first_desc": "Saturates the first credential before moving on.",
+ "file_logging_required": "Affinity activity needs file logging enabled to read routing decisions.",
+ "enable_file_logging": "Enable file logging",
+ "activity_aria": "Affinity activity",
+ "activity_title": "Affinity activity",
+ "logs_error": "Failed to load logs",
+ "stat_hit_rate": "Hit rate",
+ "stat_hit_rate_hint": "Share of requests that reused their bound account.",
+ "stat_hits": "Cache hits",
+ "stat_hits_hint": "Requests served by their bound account.",
+ "stat_binds": "New bindings",
+ "stat_binds_hint": "Sessions bound to an account for the first time.",
+ "stat_rebinds": "Cache lost",
+ "stat_rebinds_hint": "Bound account unavailable — the conversation moved and its cache was lost.",
+ "activity_empty": "No session-affinity events in the loaded logs yet.",
+ "accounts_title": "Accounts",
+ "sessions_title": "Recent sessions",
+ "col_account": "Account",
+ "col_active_sessions": "Active sessions",
+ "col_hits": "Hits",
+ "col_binds": "Binds",
+ "col_rebinds": "Rebinds",
+ "col_last_seen": "Last seen",
+ "col_session": "Session",
+ "col_provider_model": "Provider / model",
+ "col_events": "Events",
+ "col_last_event": "Last event",
+ "kind_hit": "cache hit",
+ "kind_bind": "new binding",
+ "kind_rebind": "rebound",
+ "activity_source": "From the last {{count}} affinity events · since {{since}}",
+ "activity_source_none": "Scanning the last {{limit}} log lines",
+ "strategy_short_round_robin": "Round robin",
+ "strategy_short_weighted_round_robin": "Weighted",
+ "strategy_short_fill_first": "Fill first",
+ "sessions_show_all": "Show all ({{count}})",
+ "sessions_show_less": "Show less"
+ }
+}
diff --git a/web/src/i18n/locales/zh-CN.json b/web/src/i18n/locales/zh-CN.json
index 34ba81ff265..df011acb11b 100644
--- a/web/src/i18n/locales/zh-CN.json
+++ b/web/src/i18n/locales/zh-CN.json
@@ -392,7 +392,7 @@
},
"antigravity_subscription": {
"plan_unknown": "未知",
- "plan_free": "免费版",
+ "plan_free": "Free",
"plan_pro": "Pro",
"plan_ultra": "Ultra",
"plan_ultra_lite": "Ultra Lite"
@@ -448,12 +448,13 @@
"extra_usage_label": "额外用量",
"plan_label": "套餐",
"plan_unknown": "未知",
- "plan_free": "免费版",
- "plan_pro": "专业版",
+ "plan_free": "Free",
+ "plan_pro": "Pro",
"plan_max": "Max",
"plan_max5": "Max 5x",
"plan_max20": "Max 20x",
- "plan_team": "团队版"
+ "plan_team": "Team",
+ "cloud_session_credits": "云端会话额度"
},
"codex_quota": {
"title": "Codex 额度",
@@ -495,9 +496,11 @@
"plan_plus": "Plus",
"plan_team": "Team",
"plan_free": "Free",
- "plan_pro": "Pro 20x",
- "plan_prolite": "Pro 5x",
- "plan_business_premium": "Business Premium"
+ "plan_pro": "Pro 200",
+ "plan_prolite": "Pro 100",
+ "plan_business_premium": "Business Premium",
+ "reset_not_confirmed": "未确认额度重置成功,请刷新额度后再决定是否重试。",
+ "reset_cooldown_failed": "额度已重置,但代理冷却清除失败。请在原连接的认证文件页面使用“清除冷却”,不要再次消耗重置卡。"
},
"devin_quota": {
"daily": "每日剩余额度",
@@ -587,7 +590,8 @@
"paid_health": "付费 API 对话可用。xAI 暂不为此 OAuth 凭证提供额度总量数据。",
"pay_as_you_go_label": "按量付费",
"pay_as_you_go_enabled": "已启用,封顶 {{cap}}",
- "pay_as_you_go_disabled": "未启用"
+ "pay_as_you_go_disabled": "未启用",
+ "usage_breakdown": "用量明细(共享配额)"
},
"vertex_import": {
"title": "Vertex",
@@ -597,7 +601,6 @@
"location_hint": "留空表示使用默认区域 us-central1。",
"file_label": "服务账号密钥 JSON",
"file_hint": "仅支持 Google Cloud service account key JSON 文件,私钥会自动规范化。",
- "file_placeholder": "尚未选择文件",
"choose_file": "选择文件",
"import_button": "导入",
"file_required": "请先选择 .json 凭证文件",
@@ -606,7 +609,9 @@
"result_project": "项目 ID",
"result_email": "服务账号",
"result_location": "区域",
- "result_file": "存储文件"
+ "result_file": "存储文件",
+ "drop_hint": "选择或拖入 JSON 文件",
+ "import_another": "再导入一个"
},
"oauth_excluded": {
"editor_description": "为提供商设置不对外展示的模型,支持精确选择和通配符规则。",
@@ -742,7 +747,6 @@
"devin_oauth_title": "Devin",
"devin_oauth_button": "连接",
"devin_oauth_hint": "Devin 账户浏览器登录,五分钟内完成。",
- "devin_oauth_url_label": "授权链接:",
"devin_copy_link": "复制链接",
"devin_open_link": "打开链接",
"devin_oauth_status_waiting": "等待 Devin 认证中...",
@@ -760,7 +764,6 @@
"codex_oauth_title": "Codex",
"codex_oauth_button": "连接",
"codex_oauth_hint": "ChatGPT 账户浏览器登录。",
- "codex_oauth_url_label": "授权链接:",
"codex_open_link": "打开链接",
"codex_copy_link": "复制链接",
"codex_oauth_status_waiting": "等待认证中...",
@@ -771,7 +774,6 @@
"anthropic_oauth_title": "Anthropic",
"anthropic_oauth_button": "连接",
"anthropic_oauth_hint": "Claude Pro 或 Max 浏览器登录。",
- "anthropic_oauth_url_label": "授权链接:",
"anthropic_open_link": "打开链接",
"anthropic_copy_link": "复制链接",
"anthropic_oauth_status_waiting": "等待认证中...",
@@ -782,7 +784,6 @@
"antigravity_oauth_title": "Antigravity",
"antigravity_oauth_button": "连接",
"antigravity_oauth_hint": "Google 账户浏览器登录。",
- "antigravity_oauth_url_label": "授权链接:",
"antigravity_open_link": "打开链接",
"antigravity_copy_link": "复制链接",
"antigravity_oauth_status_waiting": "等待认证中...",
@@ -793,7 +794,6 @@
"meta_oauth_title": "Muse (Meta)",
"meta_oauth_button": "连接",
"meta_oauth_hint": "Meta 账户设备码登录。",
- "meta_oauth_url_label": "授权链接:",
"meta_open_link": "打开链接",
"meta_copy_link": "复制链接",
"meta_oauth_status_waiting": "等待认证中...",
@@ -806,7 +806,6 @@
"kimi_ai_oauth_title": "Kimi 国际站",
"kimi_ai_oauth_button": "连接",
"kimi_ai_oauth_hint": "kimi.ai 账户设备码登录,与中国站独立。",
- "kimi_ai_oauth_url_label": "授权链接:",
"kimi_ai_open_link": "打开链接",
"kimi_ai_copy_link": "复制链接",
"kimi_ai_oauth_status_waiting": "等待认证中...",
@@ -817,7 +816,6 @@
"kimi_oauth_title": "Kimi 中国站",
"kimi_oauth_button": "连接",
"kimi_oauth_hint": "kimi.com 账户设备码登录。",
- "kimi_oauth_url_label": "授权链接:",
"kimi_open_link": "打开链接",
"kimi_copy_link": "复制链接",
"kimi_oauth_status_waiting": "等待认证中...",
@@ -828,7 +826,6 @@
"xai_oauth_title": "xAI",
"xai_oauth_button": "连接",
"xai_oauth_hint": "Grok 账户浏览器登录。",
- "xai_oauth_url_label": "授权链接:",
"xai_open_link": "打开链接",
"xai_copy_link": "复制链接",
"xai_oauth_status_waiting": "等待认证中...",
@@ -839,7 +836,6 @@
"plugin_oauth_title": "{{name}}",
"plugin_oauth_button": "连接",
"plugin_oauth_hint": "通过插件流程登录 {{name}} 账户。",
- "plugin_oauth_url_label": "授权链接:",
"plugin_open_link": "打开链接",
"plugin_copy_link": "复制链接",
"plugin_oauth_status_waiting": "等待认证中...",
@@ -878,7 +874,27 @@
"remote_access_disabled": "远程访问不支持此登录方式,请从本地 (localhost) 访问",
"page_title": "连接账户",
"page_description": "登录服务商并将其账户加入配额池。",
- "back_to_accounts": "返回账户"
+ "back_to_accounts": "返回账户",
+ "kimi_oauth_name": "Kimi 国内站",
+ "kimi_ai_oauth_name": "Kimi 国际站",
+ "method_device": "设备码",
+ "method_browser": "浏览器授权",
+ "method_plugin": "插件",
+ "tile_waiting": "等待授权",
+ "tile_success": "已添加凭证",
+ "tile_error": "授权失败",
+ "meta_providers": "{{count}} 个提供商",
+ "meta_waiting": "{{count}} 个等待授权",
+ "meta_added": "本次新增 {{count}} 个凭证",
+ "step_open_auth_page": "打开授权页并完成登录",
+ "step_enter_device_code": "在授权页输入设备码",
+ "optional_step": "可选",
+ "generating_link": "正在生成授权链接…",
+ "waiting_background_hint": "关闭窗口不会中断授权",
+ "restart_login": "重新开始",
+ "success_saved_hint": "凭证已保存,可在认证文件页管理。",
+ "sign_up_prompt": "还没有账号?",
+ "copied": "已复制"
},
"stats": {
"success": "成功",
@@ -1210,11 +1226,14 @@
"plugins_title": "插件",
"antigravity_title": "Antigravity",
"devin_title": "Devin",
- "signature_title": "签名校验"
+ "signature_title": "签名校验",
+ "antigravity_credits": "使用Antigravity Credits"
},
"server": {
"host": "主机地址",
- "port": "端口"
+ "port": "端口",
+ "github_token": "全局 GitHub 令牌",
+ "github_token_hint": "用于面板更新、插件下载等服务端 GitHub 请求。优先于 GITHUB_TOKEN;留空时使用环境变量凭据,未设置凭据则匿名请求。插件商店匹配的认证规则优先。"
},
"tls": {
"title": "TLS/SSL 配置",
@@ -1350,14 +1369,6 @@
"ws_auth": "WebSocket 认证",
"ws_auth_desc": "启用 AI Studio WebSocket 连接认证"
},
- "quota": {
- "title": "配额回退",
- "switch_project": "切换项目",
- "switch_project_desc": "配额耗尽时自动切换到其他项目",
- "switch_preview_model": "切换预览模型",
- "switch_preview_model_desc": "配额耗尽时切换到预览版本模型",
- "antigravity_credits": "使用Antigravity Credits"
- },
"streaming": {
"title": "流式传输配置",
"keepalive_seconds": "Keepalive 秒数",
@@ -1782,7 +1793,9 @@
"chinese": "中文",
"chinese_tw": "繁體中文(台灣)",
"english": "English",
- "russian": "Русский"
+ "russian": "Русский",
+ "vietnamese": "Tiếng Việt",
+ "korean": "한국어"
},
"theme": {
"switch": "主题",
@@ -2054,7 +2067,6 @@
"disabledHint": "停用后不会被网关使用",
"websockets": "启用 WebSockets",
"testModel": "测试模型",
- "testModelClaudeHint": "仅用于连通性测试,不会被保存",
"testModelAutoWith": "自动 · {{name}}",
"testModelAutoEmpty": "自动(尚未添加模型)",
"testModelCustom": "{{name}}(自定义)",
@@ -2106,7 +2118,8 @@
"baseUrlRequired": "服务地址必填",
"weightInteger": "调度权重必须是整数",
"weightMax": "调度权重不能超过 {{max}}"
- }
+ },
+ "testModelHint": "仅用于连通性测试,不会被保存"
},
"delete": {
"title": "删除资源",
@@ -2196,7 +2209,10 @@
"ineligible": "此账户不符合资格。",
"unavailable": "重置暂不可用。",
"rate_limited": "请求过于频繁。",
- "auth_error": "授权被拒绝。"
+ "auth_error": "授权被拒绝。",
+ "expiry_title": "主动重置过期时间({{timezone}})",
+ "grant_number": "第 {{index}} 批",
+ "expiry_unknown": "到期时间未知"
},
"routing": {
"title": "路由",
@@ -2255,5 +2271,18 @@
"strategy_short_fill_first": "填满优先",
"sessions_show_all": "显示全部({{count}})",
"sessions_show_less": "收起"
+ },
+ "plugin_quota": {
+ "empty_title": "暂无插件凭证",
+ "empty_desc": "连接插件账户后查看剩余额度。",
+ "idle": "点击此处刷新额度",
+ "loading": "正在加载额度…",
+ "load_failed": "额度加载失败:{{message}}",
+ "missing_auth_index": "认证文件缺少 auth_index",
+ "probe_unsupported": "v8 管理接口暂不支持声明式额度探测(quota_probe)",
+ "plugin_not_found": "未找到为 {{provider}} 提供额度查询的已启用插件",
+ "empty_data": "暂无可用额度数据",
+ "plan_label": "方案",
+ "remaining_percent": "剩余 {{percent}}%"
}
}
diff --git a/web/src/i18n/locales/zh-TW.json b/web/src/i18n/locales/zh-TW.json
index 00370e6d825..fc9ff14f2dc 100644
--- a/web/src/i18n/locales/zh-TW.json
+++ b/web/src/i18n/locales/zh-TW.json
@@ -392,7 +392,7 @@
},
"antigravity_subscription": {
"plan_unknown": "未知",
- "plan_free": "免費版",
+ "plan_free": "Free",
"plan_pro": "Pro",
"plan_ultra": "Ultra",
"plan_ultra_lite": "Ultra Lite"
@@ -448,12 +448,13 @@
"extra_usage_label": "額外用量",
"plan_label": "方案",
"plan_unknown": "未知",
- "plan_free": "免費版",
- "plan_pro": "專業版",
+ "plan_free": "Free",
+ "plan_pro": "Pro",
"plan_max": "Max",
"plan_max5": "Max 5x",
"plan_max20": "Max 20x",
- "plan_team": "團隊版"
+ "plan_team": "Team",
+ "cloud_session_credits": "雲端工作階段額度"
},
"codex_quota": {
"title": "Codex 配額",
@@ -495,9 +496,11 @@
"plan_plus": "Plus",
"plan_team": "Team",
"plan_free": "Free",
- "plan_pro": "Pro 20x",
- "plan_prolite": "Pro 5x",
- "plan_business_premium": "Business Premium"
+ "plan_pro": "Pro 200",
+ "plan_prolite": "Pro 100",
+ "plan_business_premium": "Business Premium",
+ "reset_not_confirmed": "尚未確認額度重置成功,請重新整理額度後再決定是否重試。",
+ "reset_cooldown_failed": "額度已重置,但代理冷卻清除失敗。請在原連線的認證檔案頁面使用「清除冷卻」,不要再次消耗重置卡。"
},
"devin_quota": {
"daily": "每日剩餘額度",
@@ -587,7 +590,8 @@
"paid_health": "付費 API 對話可用。xAI 暫不為此 OAuth 憑證提供配額總量資料。",
"pay_as_you_go_label": "按量付費",
"pay_as_you_go_enabled": "已啟用,封頂 {{cap}}",
- "pay_as_you_go_disabled": "未啟用"
+ "pay_as_you_go_disabled": "未啟用",
+ "usage_breakdown": "用量明細(共用配額)"
},
"vertex_import": {
"title": "Vertex",
@@ -597,7 +601,6 @@
"location_hint": "留空表示使用預設區域 us-central1。",
"file_label": "服務帳號金鑰 JSON",
"file_hint": "僅支援 Google Cloud service account key JSON 檔案,私鑰會自動規範化。",
- "file_placeholder": "尚未選擇檔案",
"choose_file": "選擇檔案",
"import_button": "匯入",
"file_required": "請先選擇 .json 憑證檔案",
@@ -606,7 +609,9 @@
"result_project": "專案 ID",
"result_email": "服務帳號",
"result_location": "區域",
- "result_file": "儲存檔案"
+ "result_file": "儲存檔案",
+ "drop_hint": "選擇或拖入 JSON 檔案",
+ "import_another": "再匯入一個"
},
"oauth_excluded": {
"editor_description": "為供應商設定不對外顯示的模型,支援精確選取和萬用字元規則。",
@@ -742,7 +747,6 @@
"devin_oauth_title": "Devin",
"devin_oauth_button": "連線",
"devin_oauth_hint": "Devin 帳戶瀏覽器登入,五分鐘內完成。",
- "devin_oauth_url_label": "授權連結:",
"devin_copy_link": "複製連結",
"devin_open_link": "開啟連結",
"devin_oauth_status_waiting": "等待 Devin 認證中...",
@@ -760,7 +764,6 @@
"codex_oauth_title": "Codex",
"codex_oauth_button": "連線",
"codex_oauth_hint": "ChatGPT 帳戶瀏覽器登入。",
- "codex_oauth_url_label": "授權連結:",
"codex_open_link": "開啟連結",
"codex_copy_link": "複製連結",
"codex_oauth_status_waiting": "等待驗證中...",
@@ -771,7 +774,6 @@
"anthropic_oauth_title": "Anthropic",
"anthropic_oauth_button": "連線",
"anthropic_oauth_hint": "Claude Pro 或 Max 瀏覽器登入。",
- "anthropic_oauth_url_label": "授權連結:",
"anthropic_open_link": "開啟連結",
"anthropic_copy_link": "複製連結",
"anthropic_oauth_status_waiting": "等待驗證中...",
@@ -782,7 +784,6 @@
"antigravity_oauth_title": "Antigravity",
"antigravity_oauth_button": "連線",
"antigravity_oauth_hint": "Google 帳戶瀏覽器登入。",
- "antigravity_oauth_url_label": "授權連結:",
"antigravity_open_link": "開啟連結",
"antigravity_copy_link": "複製連結",
"antigravity_oauth_status_waiting": "等待驗證中...",
@@ -793,7 +794,6 @@
"meta_oauth_title": "Muse (Meta)",
"meta_oauth_button": "連線",
"meta_oauth_hint": "Meta 帳戶裝置碼登入。",
- "meta_oauth_url_label": "授權連結:",
"meta_open_link": "開啟連結",
"meta_copy_link": "複製連結",
"meta_oauth_status_waiting": "等待驗證中...",
@@ -806,7 +806,6 @@
"kimi_ai_oauth_title": "Kimi 國際站",
"kimi_ai_oauth_button": "連線",
"kimi_ai_oauth_hint": "kimi.ai 帳戶裝置碼登入,與中國站獨立。",
- "kimi_ai_oauth_url_label": "授權連結:",
"kimi_ai_open_link": "開啟連結",
"kimi_ai_copy_link": "複製連結",
"kimi_ai_oauth_status_waiting": "等待驗證中...",
@@ -817,7 +816,6 @@
"kimi_oauth_title": "Kimi 中國站",
"kimi_oauth_button": "連線",
"kimi_oauth_hint": "kimi.com 帳戶裝置碼登入。",
- "kimi_oauth_url_label": "授權連結:",
"kimi_open_link": "開啟連結",
"kimi_copy_link": "複製連結",
"kimi_oauth_status_waiting": "等待驗證中...",
@@ -828,7 +826,6 @@
"xai_oauth_title": "xAI",
"xai_oauth_button": "連線",
"xai_oauth_hint": "Grok 帳戶瀏覽器登入。",
- "xai_oauth_url_label": "授權連結:",
"xai_open_link": "開啟連結",
"xai_copy_link": "複製連結",
"xai_oauth_status_waiting": "等待驗證中...",
@@ -839,7 +836,6 @@
"plugin_oauth_title": "{{name}}",
"plugin_oauth_button": "連線",
"plugin_oauth_hint": "透過外掛流程登入 {{name}} 帳戶。",
- "plugin_oauth_url_label": "授權連結:",
"plugin_open_link": "開啟連結",
"plugin_copy_link": "複製連結",
"plugin_oauth_status_waiting": "等待驗證中...",
@@ -904,7 +900,29 @@
"remote_access_disabled": "遠端存取不支援此登入方式,請從本地(localhost)存取",
"page_title": "連接帳戶",
"page_description": "登入服務商並將其帳戶加入配額池。",
- "back_to_accounts": "返回帳戶"
+ "back_to_accounts": "返回帳戶",
+ "kimi_oauth_name": "Kimi 中國站",
+ "kimi_ai_oauth_name": "Kimi 國際站",
+ "method_device": "裝置碼",
+ "method_browser": "瀏覽器授權",
+ "method_plugin": "外掛",
+ "tile_waiting": "等待授權",
+ "tile_success": "已新增憑證",
+ "tile_error": "授權失敗",
+ "meta_providers": "{{count}} 個提供商",
+ "meta_waiting": "{{count}} 個等待授權",
+ "meta_added": "本次新增 {{count}} 個憑證",
+ "step_open_auth_page": "開啟授權頁並完成登入",
+ "step_enter_device_code": "在授權頁輸入裝置碼",
+ "optional_step": "選填",
+ "generating_link": "正在產生授權連結…",
+ "waiting_background_hint": "關閉視窗不會中斷授權",
+ "restart_login": "重新開始",
+ "success_saved_hint": "憑證已儲存,可在驗證檔案頁管理。",
+ "sign_up_prompt": "還沒有帳號?",
+ "copied": "已複製",
+ "login_another_account": "登入另一個帳號",
+ "view_auth_files": "查看驗證檔案"
},
"stats": {
"success": "成功",
@@ -1236,11 +1254,14 @@
"plugins_title": "外掛",
"antigravity_title": "Antigravity",
"devin_title": "Devin",
- "signature_title": "簽章驗證"
+ "signature_title": "簽章驗證",
+ "antigravity_credits": "使用Antigravity Credits"
},
"server": {
"host": "主機位址",
- "port": "連接埠"
+ "port": "連接埠",
+ "github_token": "全域 GitHub 權杖",
+ "github_token_hint": "用於面板更新、外掛下載等伺服器端 GitHub 請求。優先於 GITHUB_TOKEN;留空時使用環境變數憑證,未設定憑證則匿名請求。外掛商店符合的驗證規則優先。"
},
"tls": {
"title": "TLS/SSL 設定",
@@ -1376,14 +1397,6 @@
"ws_auth": "WebSocket 驗證",
"ws_auth_desc": "啟用 AI Studio WebSocket 連線驗證"
},
- "quota": {
- "title": "配額回退",
- "switch_project": "切換專案",
- "switch_project_desc": "配額耗盡時自動切換到其他專案",
- "switch_preview_model": "切換預覽模型",
- "switch_preview_model_desc": "配額耗盡時切換到預覽版本模型",
- "antigravity_credits": "使用Antigravity Credits"
- },
"streaming": {
"title": "串流傳輸設定",
"keepalive_seconds": "Keepalive 秒數",
@@ -1808,7 +1821,9 @@
"chinese": "簡體中文",
"chinese_tw": "繁體中文(台灣)",
"english": "英文",
- "russian": "俄文"
+ "russian": "俄文",
+ "vietnamese": "Tiếng Việt",
+ "korean": "한국어"
},
"theme": {
"switch": "主題",
@@ -2080,7 +2095,6 @@
"disabledHint": "停用後不會被閘道使用",
"websockets": "啟用 WebSockets",
"testModel": "測試模型",
- "testModelClaudeHint": "僅用於連通性測試,不會被儲存",
"testModelAutoWith": "自動 · {{name}}",
"testModelAutoEmpty": "自動(尚未新增模型)",
"testModelCustom": "{{name}}(自訂)",
@@ -2132,7 +2146,8 @@
"baseUrlRequired": "服務位址必填",
"weightInteger": "調度權重必須是整數",
"weightMax": "調度權重不能超過 {{max}}"
- }
+ },
+ "testModelHint": "僅用於連通性測試,不會被儲存"
},
"delete": {
"title": "刪除資源",
@@ -2222,7 +2237,10 @@
"ineligible": "此帳戶不符合資格。",
"unavailable": "重置暫不可用。",
"rate_limited": "請求過於頻繁。",
- "auth_error": "授權遭拒。"
+ "auth_error": "授權遭拒。",
+ "expiry_title": "主動重置過期時間({{timezone}})",
+ "grant_number": "第 {{index}} 批",
+ "expiry_unknown": "到期時間未知"
},
"routing": {
"title": "路由",
@@ -2281,5 +2299,18 @@
"strategy_short_fill_first": "填滿優先",
"sessions_show_all": "顯示全部({{count}})",
"sessions_show_less": "收起"
+ },
+ "plugin_quota": {
+ "empty_title": "暫無插件憑證",
+ "empty_desc": "連接插件帳戶後即可查看剩餘額度。",
+ "idle": "點擊此處重新整理配額",
+ "loading": "正在載入配額…",
+ "load_failed": "配額取得失敗:{{message}}",
+ "missing_auth_index": "驗證檔案缺少 auth_index",
+ "probe_unsupported": "v8 管理介面暫不支援宣告式配額探測(quota_probe)",
+ "plugin_not_found": "找不到為 {{provider}} 提供配額查詢的已啟用插件",
+ "empty_data": "暫無可用配額資料",
+ "plan_label": "方案",
+ "remaining_percent": "剩餘 {{percent}}%"
}
}
diff --git a/web/src/pages/OAuthPage.module.scss b/web/src/pages/OAuthPage.module.scss
deleted file mode 100644
index 118d80ff91c..00000000000
--- a/web/src/pages/OAuthPage.module.scss
+++ /dev/null
@@ -1,270 +0,0 @@
-@use '../styles/mixins' as *;
-@use '../styles/variables' as *;
-
-.container {
- width: 100%;
-}
-
-.cardTitle {
- display: flex;
- align-items: center;
- gap: $spacing-sm;
-}
-
-.cardTitleIcon {
- width: 24px;
- height: 24px;
- flex: 0 0 auto;
-}
-
-.cardTitleIconFallback {
- width: 24px;
- height: 24px;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- color: var(--text-secondary);
-}
-
-
-.content {
- display: flex;
- flex-direction: column;
- gap: $spacing-xl;
-}
-
-.providerSection {
- display: flex;
- flex-direction: column;
- gap: $spacing-md;
-}
-
-
-
-
-
-
-
-.cardContent {
- display: flex;
- flex-direction: column;
- gap: 14px;
- padding: 12px 0 14px 44px;
-
- :global(.form-group) {
- margin-bottom: 0;
-
- label {
- font-size: 13px;
- font-weight: 500;
- color: var(--text-secondary);
- }
- }
-
- :global(.btn) {
- align-self: flex-start;
- }
-
- :global(.status-badge) {
- margin-bottom: 0;
- align-self: flex-start;
- }
-}
-
-.cardHint {
- margin: 0;
- font-size: 13px;
- line-height: 1.6;
- color: var(--text-secondary);
-}
-
-.cardHintSecondary {
- margin: 0;
- font-size: 12px;
- line-height: 1.5;
- color: var(--text-tertiary);
-}
-
-
-.callbackSection {
- margin-top: 0;
- display: flex;
- flex-direction: column;
- gap: $spacing-sm;
-}
-
-.callbackActions {
- display: flex;
- gap: $spacing-md;
-}
-
-.authUrlBox {
- background: var(--bg-secondary);
- border: 1px dashed var(--border-color);
- border-radius: $radius-md;
- padding: $spacing-md;
- display: flex;
- flex-direction: column;
- gap: $spacing-xs;
-}
-
-.authUrlLabel {
- color: var(--text-secondary);
- font-size: 14px;
-}
-
-.authUrlValue {
- font-weight: 700;
- color: var(--text-primary);
- word-break: break-all;
- overflow-wrap: anywhere;
- line-height: 1.5;
- max-width: 100%;
-}
-
-.authUrlActions {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- gap: $spacing-sm;
- margin-top: $spacing-sm;
-}
-
-.successActions {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- gap: $spacing-sm;
-}
-
-
-
-.formItem {
- display: flex;
- flex-direction: column;
- gap: $spacing-xs;
-}
-
-.formItemLabel {
- margin: 0;
- font-size: 13px;
- font-weight: 500;
- color: var(--text-secondary);
-}
-
-.filePicker {
- display: flex;
- align-items: center;
- gap: $spacing-sm;
- flex-wrap: wrap;
-}
-
-.fileName {
- flex: 1;
- min-width: 220px;
- padding: 10px 12px;
- border: 1px solid var(--border-color);
- border-radius: $radius-md;
- background: var(--bg-primary);
- color: var(--text-primary);
- font-size: 14px;
-}
-
-.fileNamePlaceholder {
- color: var(--text-secondary);
-}
-
-.connectionBox {
- background: var(--bg-secondary);
- border: 1px solid var(--border-color);
- border-radius: $radius-md;
- padding: $spacing-md;
- display: flex;
- flex-direction: column;
- gap: $spacing-sm;
-}
-
-.connectionLabel {
- margin: 0;
- font-size: 14px;
- font-weight: 600;
- color: var(--text-primary);
-}
-
-.keyValueList {
- display: flex;
- flex-direction: column;
- gap: 6px;
-}
-
-.keyValueItem {
- display: grid;
- grid-template-columns: 140px 1fr;
- gap: 10px;
- align-items: start;
-
- @include mobile {
- grid-template-columns: 1fr;
- gap: 2px;
- }
-}
-
-.keyValueKey {
- color: var(--text-secondary);
- font-size: 13px;
-}
-
-.keyValueValue {
- color: var(--text-primary);
- word-break: break-all;
- overflow-wrap: anywhere;
-}
-
-.providerPanel {
- background: var(--bg-primary);
- border: 1px solid var(--border-color);
- border-radius: 8px;
- overflow: hidden;
-}
-
-.providerRow {
- border-bottom: 1px solid var(--border-color);
-
- &:last-child {
- border-bottom: none;
- }
-}
-
-.rowMain {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 12px 16px;
- min-height: 52px;
-}
-
-.rowText {
- display: flex;
- flex-direction: column;
- gap: 1px;
- min-width: 0;
- flex: 1 1 auto;
-}
-
-.rowTitle {
- font-size: 13px;
- font-weight: 500;
- color: var(--text-primary);
-}
-
-.rowHint {
- font-size: 12px;
- color: var(--text-tertiary);
-}
-
-.rowMain .cardTitleIcon,
-.rowMain .cardTitleIconFallback {
- width: 18px;
- height: 18px;
- flex-shrink: 0;
-}
diff --git a/web/src/pages/OAuthPage.tsx b/web/src/pages/OAuthPage.tsx
deleted file mode 100644
index 5de8fd62dcb..00000000000
--- a/web/src/pages/OAuthPage.tsx
+++ /dev/null
@@ -1,951 +0,0 @@
-import { useCallback, useEffect, useMemo, useRef, useState, type ChangeEvent } from 'react';
-import { useTranslation } from 'react-i18next';
-import { useNavigate } from 'react-router-dom';
-import { PageHeader } from '@/components/layout/PageHeader';
-import { Button } from '@/components/ui/Button';
-import { Input } from '@/components/ui/Input';
-import { IconPlug } from '@/components/ui/icons';
-import { useAuthStore, useNotificationStore, useThemeStore } from '@/stores';
-import { oauthApi, pluginsApi, type BuiltInOAuthProvider } from '@/services/api';
-import { vertexApi, type VertexImportResponse } from '@/services/api/vertex';
-import { copyToClipboard } from '@/utils/clipboard';
-import { getErrorMessage, isRecord } from '@/utils/helpers';
-import { notifyAuthFilesChanged } from '@/features/authFiles/authFilesEvents';
-import { getPluginTitle, resolvePluginAssetURL } from '@/features/plugins/pluginResources';
-import type { PluginListEntry } from '@/types';
-import { createOAuthAttempts, type OAuthAttempt } from './oauthAttempts';
-import { validateDevinCallback } from './devinOAuth';
-import styles from './OAuthPage.module.scss';
-import iconMeta from '@/assets/icons/meta.svg';
-import iconCodex from '@/assets/icons/codex.svg';
-import iconClaude from '@/assets/icons/claude.svg';
-import iconAntigravity from '@/assets/icons/antigravity.svg';
-import iconKimiLight from '@/assets/icons/kimi-light.svg';
-import iconKimiDark from '@/assets/icons/kimi-dark.svg';
-import iconVertex from '@/assets/icons/vertex.svg';
-import iconGrok from '@/assets/icons/grok.svg';
-import iconGrokDark from '@/assets/icons/grok-dark.svg';
-import iconDevin from '@/assets/icons/devin.svg';
-import iconDevinDark from '@/assets/icons/devin-dark.svg';
-
-interface ProviderState {
- url?: string;
- userCode?: string;
- state?: string;
- status?: 'idle' | 'waiting' | 'success' | 'error';
- error?: string;
- polling?: boolean;
- cancelling?: boolean;
- cancelError?: string;
- callbackUrl?: string;
- callbackSubmitting?: boolean;
- callbackStatus?: 'success' | 'error';
- callbackError?: string;
-}
-
-interface VertexImportResult {
- projectId?: string;
- email?: string;
- location?: string;
- authFile?: string;
-}
-
-interface VertexImportState {
- open?: boolean;
- file?: File;
- fileName: string;
- location: string;
- loading: boolean;
- error?: string;
- result?: VertexImportResult;
-}
-
-interface BuiltInOAuthProviderCard {
- kind: 'builtin';
- id: BuiltInOAuthProvider;
- titleKey: string;
- icon: string | { light: string; dark: string };
-}
-
-interface PluginOAuthProviderCard {
- kind: 'plugin';
- id: string;
- title: string;
- icon: string;
-}
-
-type OAuthProviderCard = BuiltInOAuthProviderCard | PluginOAuthProviderCard;
-
-function getErrorStatus(error: unknown): number | undefined {
- if (!isRecord(error)) return undefined;
- return typeof error.status === 'number' ? error.status : undefined;
-}
-
-const PROVIDERS: BuiltInOAuthProviderCard[] = [
- {
- kind: 'builtin',
- id: 'meta',
- titleKey: 'auth_login.meta_oauth_title',
- icon: iconMeta,
- },
- {
- kind: 'builtin',
- id: 'kimi',
- titleKey: 'auth_login.kimi_oauth_title',
- icon: { light: iconKimiDark, dark: iconKimiLight },
- },
- {
- kind: 'builtin',
- id: 'kimi-ai',
- titleKey: 'auth_login.kimi_ai_oauth_title',
- icon: { light: iconKimiDark, dark: iconKimiLight },
- },
- {
- kind: 'builtin',
- id: 'codex',
- titleKey: 'auth_login.codex_oauth_title',
- icon: iconCodex,
- },
- {
- kind: 'builtin',
- id: 'anthropic',
- titleKey: 'auth_login.anthropic_oauth_title',
- icon: iconClaude,
- },
- {
- kind: 'builtin',
- id: 'antigravity',
- titleKey: 'auth_login.antigravity_oauth_title',
- icon: iconAntigravity,
- },
- {
- kind: 'builtin',
- id: 'xai',
- titleKey: 'auth_login.xai_oauth_title',
- icon: { light: iconGrok, dark: iconGrokDark },
- },
- {
- kind: 'builtin',
- id: 'devin',
- titleKey: 'auth_login.devin_oauth_title',
- icon: { light: iconDevin, dark: iconDevinDark },
- },
-];
-
-const BUILTIN_PROVIDER_IDS = new Set(PROVIDERS.map((provider) => provider.id));
-const CALLBACK_SUPPORTED = new Set(['codex', 'anthropic', 'antigravity', 'xai', 'devin']);
-const XAI_CALLBACK_URL = 'http://127.0.0.1:56121/callback';
-const SUCCESS_RESET_DELAY_MS = 5000;
-const getProviderI18nPrefix = (provider: string) => provider.replace('-', '_');
-const getAuthKey = (provider: string, suffix: string) =>
- `auth_login.${getProviderI18nPrefix(provider)}_${suffix}`;
-
-const getIcon = (icon: string | { light: string; dark: string }, theme: 'light' | 'dark') => {
- return typeof icon === 'string' ? icon : icon[theme];
-};
-
-function PluginOAuthIcon({ src }: { src: string }) {
- const [failed, setFailed] = useState(false);
- if (src && !failed) {
- return (
- setFailed(true)} />
- );
- }
- return (
-
-
-
- );
-}
-
-function OAuthProviderIcon({
- provider,
- theme,
-}: {
- provider: OAuthProviderCard;
- theme: 'light' | 'dark';
-}) {
- if (provider.kind === 'plugin') {
- return ;
- }
- return ;
-}
-
-const buildPluginOAuthProviderCards = (
- plugins: PluginListEntry[],
- apiBase: string
-): PluginOAuthProviderCard[] => {
- const seenProviders = new Set(BUILTIN_PROVIDER_IDS);
- return plugins.flatMap((plugin) => {
- const provider = plugin.oauthProvider;
- if (
- !plugin.supportsOAuth ||
- !plugin.effectiveEnabled ||
- !provider ||
- seenProviders.has(provider)
- ) {
- return [];
- }
- seenProviders.add(provider);
- return [
- {
- kind: 'plugin' as const,
- id: provider,
- title: getPluginTitle(plugin),
- icon: resolvePluginAssetURL(plugin.logo || plugin.metadata?.logo || '', apiBase),
- },
- ];
- });
-};
-
-const isAbsoluteUrl = (value: string): boolean => {
- try {
- new URL(value);
- return true;
- } catch {
- return false;
- }
-};
-
-const readQueryLikeCallbackInput = (value: string) => {
- const trimmed = value.trim();
- if (!trimmed) return null;
- const queryStart = trimmed.indexOf('?');
- const hashStart = trimmed.indexOf('#');
- const rawParams =
- queryStart >= 0
- ? trimmed.slice(queryStart + 1)
- : hashStart >= 0
- ? trimmed.slice(hashStart + 1)
- : trimmed;
-
- if (!/(^|[?])(code|state|error)=/i.test(rawParams)) return null;
- return new URLSearchParams(rawParams.replace(/^[?#]/, ''));
-};
-
-const extractDisplayedXaiCode = (value: string): string => {
- const trimmed = value.trim();
- const codeMatch = trimmed.match(/\bcode\s*[:=]\s*([^\s&]+)/i);
- return (codeMatch?.[1] ?? trimmed).trim();
-};
-
-const buildXaiCallbackUrl = (input: string, state?: string): string | null => {
- const trimmed = input.trim();
- if (!trimmed) return null;
- if (isAbsoluteUrl(trimmed)) return trimmed;
-
- const params = readQueryLikeCallbackInput(trimmed);
- if (params) {
- const code = params.get('code')?.trim();
- const error = params.get('error')?.trim();
- const errorDescription = params.get('error_description')?.trim();
- const callbackState = params.get('state')?.trim() || state?.trim();
- if (!callbackState) return null;
-
- const callbackUrl = new URL(XAI_CALLBACK_URL);
- callbackUrl.searchParams.set('state', callbackState);
- if (code) callbackUrl.searchParams.set('code', code);
- if (error) callbackUrl.searchParams.set('error', error);
- if (errorDescription) callbackUrl.searchParams.set('error_description', errorDescription);
- return callbackUrl.toString();
- }
-
- const code = extractDisplayedXaiCode(trimmed);
- const callbackState = state?.trim();
- if (!code || !callbackState) return null;
-
- const callbackUrl = new URL(XAI_CALLBACK_URL);
- callbackUrl.searchParams.set('code', code);
- callbackUrl.searchParams.set('state', callbackState);
- return callbackUrl.toString();
-};
-
-const resolveCallbackUrl = (provider: string, input: string, state?: string): string | null => {
- if (provider !== 'xai') return input.trim();
- return buildXaiCallbackUrl(input, state);
-};
-
-export function OAuthPage() {
- const { t } = useTranslation();
- const navigate = useNavigate();
- const apiBase = useAuthStore((state) => state.apiBase);
- const { showNotification } = useNotificationStore();
- const resolvedTheme = useThemeStore((state) => state.resolvedTheme);
- const [states, setStates] = useState>({});
- const [pluginProviders, setPluginProviders] = useState([]);
- const [vertexState, setVertexState] = useState({
- fileName: '',
- location: '',
- loading: false,
- });
- const attempts = useRef(
- createOAuthAttempts({
- setTimeout: (callback, delay) => window.setTimeout(callback, delay),
- clearTimeout: (timer) => window.clearTimeout(timer),
- })
- );
- const vertexFileInputRef = useRef(null);
-
- const clearTimers = useCallback(() => {
- attempts.current.invalidateAll();
- }, []);
-
- useEffect(() => {
- // Invalidate synchronously on connection changes, including a new key on
- // the same server. Never send cleanup requests through the new connection.
- const unsubscribe = useAuthStore.subscribe((current, previous) => {
- if (
- current.apiBase !== previous.apiBase ||
- current.managementKey !== previous.managementKey ||
- current.isAuthenticated !== previous.isAuthenticated
- ) {
- clearTimers();
- setStates({});
- }
- });
- return () => {
- unsubscribe();
- clearTimers();
- };
- }, [clearTimers]);
-
- useEffect(() => {
- let cancelled = false;
-
- const loadPluginProviders = async () => {
- try {
- const response = await pluginsApi.list();
- if (!cancelled) {
- setPluginProviders(buildPluginOAuthProviderCards(response.plugins, apiBase));
- }
- } catch {
- if (!cancelled) {
- setPluginProviders([]);
- }
- }
- };
-
- void loadPluginProviders();
-
- return () => {
- cancelled = true;
- };
- }, [apiBase]);
-
- const providerCards = useMemo(
- () => [...PROVIDERS, ...pluginProviders],
- [pluginProviders]
- );
-
- const getProviderTitleText = (provider: OAuthProviderCard) =>
- provider.kind === 'plugin'
- ? t('auth_login.plugin_oauth_title', { name: provider.title })
- : t(provider.titleKey);
-
- const getProviderText = (provider: OAuthProviderCard, suffix: string) =>
- provider.kind === 'plugin'
- ? t(`auth_login.plugin_${suffix}`, { name: provider.title })
- : t(getAuthKey(provider.id, suffix));
-
- const getProviderTextByID = (provider: string, suffix: string) => {
- const card = providerCards.find((item) => item.id === provider);
- return card ? getProviderText(card, suffix) : t(getAuthKey(provider, suffix));
- };
-
- const updateProviderState = (provider: string, next: Partial) => {
- setStates((prev) => ({
- ...prev,
- [provider]: { ...(prev[provider] ?? {}), ...next },
- }));
- };
-
- const resetProviderAttempt = (provider: string) => {
- attempts.current.get(provider)?.invalidate();
- setStates((prev) => {
- return {
- ...prev,
- [provider]: {},
- };
- });
- };
-
- const completeProviderAuth = (provider: string) => {
- const resetAttempt = attempts.current.begin(provider);
- notifyAuthFilesChanged();
- updateProviderState(provider, {
- url: undefined,
- state: undefined,
- status: 'success',
- error: undefined,
- polling: false,
- cancelling: false,
- cancelError: undefined,
- callbackUrl: '',
- callbackSubmitting: false,
- callbackStatus: undefined,
- callbackError: undefined,
- });
- resetAttempt.schedule(() => {
- resetProviderAttempt(provider);
- }, SUCCESS_RESET_DELAY_MS);
- };
-
- const startPolling = (provider: string, state: string, attempt: OAuthAttempt) => {
- attempt.poll(
- () => oauthApi.getAuthStatus(state, attempt.signal),
- (res) => {
- if (res.status === 'ok') {
- completeProviderAuth(provider);
- showNotification(getProviderTextByID(provider, 'oauth_status_success'), 'success');
- } else if (res.status === 'error') {
- if (provider === 'devin') {
- // Expired, denied and cancelled states cannot accept another callback.
- attempt.invalidate();
- updateProviderState(provider, {
- url: undefined,
- state: undefined,
- callbackUrl: '',
- callbackSubmitting: false,
- callbackStatus: undefined,
- callbackError: undefined,
- });
- }
- updateProviderState(provider, { status: 'error', error: res.error, polling: false });
- showNotification(
- `${getProviderTextByID(provider, 'oauth_status_error')} ${res.error || ''}`,
- 'error'
- );
- }
- return res.status === 'wait';
- },
- (err) => {
- updateProviderState(provider, {
- status: 'error',
- error: getErrorMessage(err),
- polling: false,
- });
- },
- 3000
- );
- };
-
- const cancelAuth = async (provider: string) => {
- const state = states[provider]?.state;
- if (provider !== 'devin' || !state || states[provider]?.cancelling) return;
- // Replace the attempt before DELETE so late polls/callback submissions cannot
- // overwrite the cancellation result or a subsequent login.
- const attempt = attempts.current.begin(provider);
- updateProviderState(provider, {
- cancelling: true,
- cancelError: undefined,
- polling: true,
- callbackSubmitting: false,
- callbackStatus: undefined,
- callbackError: undefined,
- });
- try {
- const result = await oauthApi.cancelSession(state, attempt.signal);
- if (!attempt.isCurrent()) return;
- if (result.cancelled) {
- resetProviderAttempt(provider);
- showNotification(t('auth_login.devin_oauth_cancelled'), 'success');
- return;
- }
- // A completed or expired session returns cancelled=false. Read its real
- // status rather than claiming cancellation or losing a completed login.
- } catch (err: unknown) {
- if (!attempt.isCurrent()) return;
- const message = getErrorMessage(err);
- updateProviderState(provider, { cancelError: message });
- showNotification(`${t('auth_login.devin_oauth_cancel_error')} ${message}`, 'error');
- }
- updateProviderState(provider, {
- cancelling: false,
- status: 'waiting',
- error: undefined,
- });
- startPolling(provider, state, attempt);
- };
-
- const startAuth = async (provider: string) => {
- // A network error can stop polling while the server is still waiting. Require
- // explicit cancellation before replacing that Devin session.
- if (provider === 'devin' && states[provider]?.state) return;
- const attempt = attempts.current.begin(provider);
- updateProviderState(provider, {
- url: undefined,
- userCode: undefined,
- state: undefined,
- status: 'waiting',
- polling: true,
- cancelling: false,
- cancelError: undefined,
- error: undefined,
- callbackStatus: undefined,
- callbackError: undefined,
- callbackUrl: '',
- callbackSubmitting: false,
- });
- try {
- const res = await oauthApi.startAuth(provider, attempt.signal);
- if (!attempt.isCurrent()) return;
- if (!res.state) {
- const message = t('auth_login.missing_state');
- updateProviderState(provider, {
- url: res.url,
- state: undefined,
- status: 'error',
- error: message,
- polling: false,
- });
- showNotification(message, 'error');
- return;
- }
- updateProviderState(provider, {
- url: res.url,
- userCode: res.user_code,
- state: res.state,
- status: 'waiting',
- polling: true,
- });
- startPolling(provider, res.state, attempt);
- } catch (err: unknown) {
- if (!attempt.isCurrent()) return;
- const message = getErrorMessage(err);
- updateProviderState(provider, { status: 'error', error: message, polling: false });
- showNotification(
- `${getProviderTextByID(provider, 'oauth_start_error')}${message ? ` ${message}` : ''}`,
- 'error'
- );
- }
- };
-
- const copyLink = async (url?: string) => {
- if (!url) return;
- const copied = await copyToClipboard(url);
- showNotification(
- t(copied ? 'notification.link_copied' : 'notification.copy_failed'),
- copied ? 'success' : 'error'
- );
- };
-
- const submitCallback = async (provider: string) => {
- const attempt = attempts.current.get(provider);
- if (!attempt?.isCurrent()) return;
- if (
- provider === 'devin' &&
- (states[provider]?.cancelling || states[provider]?.status !== 'waiting')
- ) {
- return;
- }
- const callbackInput = (states[provider]?.callbackUrl || '').trim();
- if (!callbackInput) {
- showNotification(
- t(
- provider === 'xai'
- ? 'auth_login.xai_callback_required'
- : 'auth_login.oauth_callback_required'
- ),
- 'warning'
- );
- return;
- }
- if (provider === 'devin') {
- const callbackError = validateDevinCallback(callbackInput, states[provider]?.state);
- if (callbackError) {
- showNotification(t(`auth_login.devin_callback_${callbackError}`), 'warning');
- return;
- }
- }
- const redirectUrl = resolveCallbackUrl(provider, callbackInput, states[provider]?.state);
- if (!redirectUrl) {
- showNotification(
- t(
- provider === 'xai' ? 'auth_login.xai_callback_state_missing' : 'auth_login.missing_state'
- ),
- 'warning'
- );
- return;
- }
- updateProviderState(provider, {
- callbackSubmitting: true,
- callbackStatus: undefined,
- callbackError: undefined,
- });
- try {
- await oauthApi.submitCallback(provider, redirectUrl, attempt.signal);
- if (!attempt.isCurrent()) return;
- updateProviderState(provider, { callbackSubmitting: false, callbackStatus: 'success' });
- showNotification(t('auth_login.oauth_callback_success'), 'success');
- } catch (err: unknown) {
- if (!attempt.isCurrent()) return;
- const status = getErrorStatus(err);
- const message = getErrorMessage(err);
- const errorMessage =
- status === 404
- ? t('auth_login.oauth_callback_upgrade_hint', {
- defaultValue: 'Please update CLI Proxy API or check the connection.',
- })
- : message || undefined;
- updateProviderState(provider, {
- callbackSubmitting: false,
- callbackStatus: 'error',
- callbackError: errorMessage,
- });
- const notificationMessage = errorMessage
- ? `${t('auth_login.oauth_callback_error')} ${errorMessage}`
- : t('auth_login.oauth_callback_error');
- showNotification(notificationMessage, 'error');
- }
- };
-
- const handleVertexFilePick = () => {
- vertexFileInputRef.current?.click();
- };
-
- const handleVertexFileChange = (event: ChangeEvent) => {
- const file = event.target.files?.[0];
- if (!file) return;
- if (!file.name.endsWith('.json')) {
- showNotification(t('vertex_import.file_required'), 'warning');
- event.target.value = '';
- return;
- }
- setVertexState((prev) => ({
- ...prev,
- file,
- fileName: file.name,
- error: undefined,
- result: undefined,
- }));
- event.target.value = '';
- };
-
- const handleVertexImport = async () => {
- if (!vertexState.file) {
- const message = t('vertex_import.file_required');
- setVertexState((prev) => ({ ...prev, error: message }));
- showNotification(message, 'warning');
- return;
- }
- const location = vertexState.location.trim();
- setVertexState((prev) => ({ ...prev, loading: true, error: undefined, result: undefined }));
- try {
- const res: VertexImportResponse = await vertexApi.importCredential(
- vertexState.file,
- location || undefined
- );
- const result: VertexImportResult = {
- projectId: res.project_id,
- email: res.email,
- location: res.location,
- authFile: res['auth-file'] ?? res.auth_file,
- };
- setVertexState((prev) => ({ ...prev, loading: false, result }));
- notifyAuthFilesChanged();
- showNotification(t('vertex_import.success'), 'success');
- } catch (err: unknown) {
- const message = getErrorMessage(err);
- setVertexState((prev) => ({
- ...prev,
- loading: false,
- error: message || t('notification.upload_failed'),
- }));
- const notification = message
- ? `${t('notification.upload_failed')}: ${message}`
- : t('notification.upload_failed');
- showNotification(notification, 'error');
- }
- };
-
- const renderOAuthProviderRow = (provider: OAuthProviderCard) => {
- const state = states[provider.id] || {};
- const canSubmitCallback =
- (provider.kind === 'plugin' || CALLBACK_SUPPORTED.has(provider.id)) && Boolean(state.url);
- const loginButtonLabel =
- state.status === 'success'
- ? t('auth_login.login_another_account')
- : getProviderText(provider, 'oauth_button');
- const statusBadgeClassName = [
- 'status-badge',
- state.status === 'success' ? 'success' : '',
- state.status === 'error' ? 'error' : '',
- ]
- .filter(Boolean)
- .join(' ');
- const expanded =
- Boolean(state.url) || canSubmitCallback || Boolean(state.status && state.status !== 'idle');
-
- return (
-
-
-
-
- {getProviderTitleText(provider)}
- {getProviderText(provider, 'oauth_hint')}
-
-
startAuth(provider.id)}
- loading={state.polling}
- disabled={provider.id === 'devin' && Boolean(state.state)}
- >
- {loginButtonLabel}
-
-
- {expanded && (
-
- {state.url && (
-
-
- {getProviderText(provider, 'oauth_url_label')}
-
-
{state.url}
- {state.userCode && (
-
-
{t('auth_login.device_code_label')}
-
{state.userCode}
-
copyLink(state.userCode)}>
- {t('auth_login.device_code_copy')}
-
-
- )}
-
- copyLink(state.url!)}>
- {getProviderText(provider, 'copy_link')}
-
- window.open(state.url, '_blank', 'noopener,noreferrer')}
- >
- {getProviderText(provider, 'open_link')}
-
- {provider.id === 'devin' && state.state && (
- cancelAuth(provider.id)}
- loading={state.cancelling}
- >
- {t('auth_login.devin_oauth_cancel')}
-
- )}
-
- {provider.id === 'devin' && state.state && state.status === 'error' && (
-
- {t('auth_login.devin_oauth_retry_hint')}
-
- )}
- {state.cancelError && (
-
- {t('auth_login.devin_oauth_cancel_error')} {state.cancelError}
-
- )}
-
- )}
- {canSubmitCallback && (
-
-
- updateProviderState(provider.id, {
- callbackUrl: e.target.value,
- callbackStatus: undefined,
- callbackError: undefined,
- })
- }
- placeholder={t(
- provider.id === 'xai'
- ? 'auth_login.xai_callback_placeholder'
- : provider.id === 'devin'
- ? 'auth_login.devin_callback_placeholder'
- : 'auth_login.oauth_callback_placeholder'
- )}
- />
-
- submitCallback(provider.id)}
- loading={state.callbackSubmitting}
- disabled={
- provider.id === 'devin' && (state.cancelling || state.status !== 'waiting')
- }
- >
- {t('auth_login.oauth_callback_button')}
-
-
- {state.callbackStatus === 'success' && state.status === 'waiting' && (
-
- {t('auth_login.oauth_callback_status_success')}
-
- )}
- {state.callbackStatus === 'error' && (
-
- {t('auth_login.oauth_callback_status_error')} {state.callbackError || ''}
-
- )}
-
- )}
- {state.status && state.status !== 'idle' && (
-
- {state.status === 'success'
- ? getProviderText(provider, 'oauth_status_success')
- : state.status === 'error'
- ? `${getProviderText(provider, 'oauth_status_error')} ${state.error || ''}`
- : getProviderText(provider, 'oauth_status_waiting')}
-
- )}
- {state.status === 'success' && (
-
- navigate('/auth-files')}>
- {t('auth_login.view_auth_files')}
-
-
- )}
-
- )}
-
- );
- };
-
- return (
-
-
navigate('/auth-files')}>
- {t('auth_login.back_to_accounts')}
-
- }
- />
-
-
-
-
- {providerCards.map((provider) => renderOAuthProviderRow(provider))}
-
-
-
-
- {t('vertex_import.title')}
- {t('vertex_import.description')}
-
-
setVertexState((prev) => ({ ...prev, open: !prev.open }))}
- aria-expanded={vertexState.open === true}
- >
- {t('vertex_import.import_button')}
-
-
- {vertexState.open === true && (
-
-
- setVertexState((prev) => ({
- ...prev,
- location: e.target.value,
- }))
- }
- placeholder={t('vertex_import.location_placeholder')}
- />
-
-
{t('vertex_import.file_label')}
-
-
- {t('vertex_import.choose_file')}
-
-
- {vertexState.fileName || t('vertex_import.file_placeholder')}
-
-
-
{t('vertex_import.file_hint')}
-
- {t('vertex_import.import_button')}
-
-
-
- {vertexState.error &&
{vertexState.error}
}
- {vertexState.result && (
-
-
{t('vertex_import.result_title')}
-
- {vertexState.result.projectId && (
-
-
- {t('vertex_import.result_project')}
-
- {vertexState.result.projectId}
-
- )}
- {vertexState.result.email && (
-
-
- {t('vertex_import.result_email')}
-
- {vertexState.result.email}
-
- )}
- {vertexState.result.location && (
-
-
- {t('vertex_import.result_location')}
-
- {vertexState.result.location}
-
- )}
- {vertexState.result.authFile && (
-
- {t('vertex_import.result_file')}
- {vertexState.result.authFile}
-
- )}
-
-
- )}
-
- )}
-
-
-
-
-
- );
-}
diff --git a/web/src/router/MainRoutes.tsx b/web/src/router/MainRoutes.tsx
index 71ce7a37a35..e6eca2b6c2d 100644
--- a/web/src/router/MainRoutes.tsx
+++ b/web/src/router/MainRoutes.tsx
@@ -4,7 +4,7 @@ import { ProvidersWorkbenchPage } from '@/features/providers/ProvidersWorkbenchP
import { AuthFilesPage } from '@/features/authFiles/AuthFilesPage';
import { AuthFilesOAuthExcludedEditPage } from '@/pages/AuthFilesOAuthExcludedEditPage';
import { AuthFilesOAuthModelAliasEditPage } from '@/pages/AuthFilesOAuthModelAliasEditPage';
-import { OAuthPage } from '@/pages/OAuthPage';
+import { OAuthPage } from '@/features/oauth/OAuthPage';
import { QuotaPage } from '@/features/quota/QuotaPage';
import { RoutingPage } from '@/features/routing/RoutingPage';
import { PluginResourcePage } from '@/features/plugins/PluginResourcePage';
diff --git a/web/src/services/api/authFiles.ts b/web/src/services/api/authFiles.ts
index 3186f8ae31f..58e9c907711 100644
--- a/web/src/services/api/authFiles.ts
+++ b/web/src/services/api/authFiles.ts
@@ -249,6 +249,16 @@ const readRuntimeOnlyField = (entry: AuthFileEntry): boolean => {
return false;
};
+const readBooleanField = (value: unknown): boolean | undefined => {
+ if (typeof value === 'boolean') return value;
+ if (typeof value === 'string') {
+ const normalized = value.trim().toLowerCase();
+ if (normalized === 'true' || normalized === '1') return true;
+ if (normalized === 'false' || normalized === '0') return false;
+ }
+ return undefined;
+};
+
/**
* 契约边界归一化:把后端 kebab/snake_case 生字段填充到 AuthFileItem 声明的
* camelCase 字段上。原始字段全部透传——quota resolvers 仍直接读
@@ -270,12 +280,16 @@ const normalizeAuthFileEntry = (
const modified = readDateField(entry);
const priority = readIntegerField(entry['priority']);
const weight = readIntegerField(entry['weight']);
+ const supportsQuota = readBooleanField(entry['supports_quota'] ?? entry.supportsQuota);
+ const quotaProvider = readTextField(entry, 'quota_provider') || readTextField(entry, 'quotaProvider');
return {
...entry,
cooldownSnapshot: normalizeAuthFileCooldowns(entry.cooldowns, observedAt, receivedAtMs),
runtimeOnly: readRuntimeOnlyField(entry),
authIndex: normalizeRecentRequestAuthIndex(entry['auth_index'] ?? entry.authIndex),
+ ...(supportsQuota !== undefined ? { supportsQuota } : {}),
+ ...(quotaProvider ? { quotaProvider } : {}),
recentRequests: normalizeRecentRequestBuckets(entry.recent_requests ?? entry.recentRequests),
successCount: normalizeUsageTotal(entry.success),
failureCount: normalizeUsageTotal(entry.failed),
diff --git a/web/src/services/api/plugins.ts b/web/src/services/api/plugins.ts
index bdccaf5a4ae..7d87a0ace03 100644
--- a/web/src/services/api/plugins.ts
+++ b/web/src/services/api/plugins.ts
@@ -101,6 +101,7 @@ const normalizePluginEntry = (value: unknown): PluginListEntry | null => {
const configFields = normalizeConfigFields(value.config_fields);
const supportsOAuth = asBoolean(value.supports_oauth);
const oauthProvider = normalizePluginOAuthProvider(value.oauth_provider);
+ const quotaProvider = asString(value.quota_provider).trim().toLowerCase();
return {
id,
@@ -111,6 +112,8 @@ const normalizePluginEntry = (value: unknown): PluginListEntry | null => {
effectiveEnabled: asBoolean(value.effective_enabled),
supportsOAuth,
oauthProvider,
+ supportsQuota: asBoolean(value.supports_quota),
+ ...(quotaProvider ? { quotaProvider } : {}),
logo: asString(value.logo || metadata?.logo).trim(),
configFields: configFields.length > 0 ? configFields : (metadata?.configFields ?? []),
menus: normalizeMenus(value.menus),
diff --git a/web/src/services/api/providers.ts b/web/src/services/api/providers.ts
index 199f0c322ef..448953113c4 100644
--- a/web/src/services/api/providers.ts
+++ b/web/src/services/api/providers.ts
@@ -30,9 +30,6 @@ const serializeModelAliases = (models?: ModelAlias[], includeOpenAIFields = fals
if (model.priority !== undefined) {
payload.priority = model.priority;
}
- if (model.testModel) {
- payload['test-model'] = model.testModel;
- }
if (includeOpenAIFields && model.image) {
payload.image = true;
}
@@ -206,7 +203,6 @@ const serializeOpenAIProvider = (provider: OpenAIProviderConfig) => {
const models = serializeModelAliases(provider.models, true);
if (models && models.length) payload.models = models;
if (provider.priority !== undefined) payload.priority = provider.priority;
- if (provider.testModel) payload['test-model'] = provider.testModel;
if (provider.disableCooling !== undefined) payload['disable-cooling'] = provider.disableCooling;
return payload;
};
@@ -262,8 +258,30 @@ const getGroups = async (family: ProviderFamily) => {
throw conflict();
return readProviderGroups(raw, family);
};
+// Remove the old UI-only field at known config locations, not inside opaque
+// user maps such as headers. Raw snapshots otherwise preserve unknown fields.
+const removeTestModel = (value: Record) => {
+ const next = { ...value };
+ delete next['test-model'];
+ return next;
+};
+const cleanModelTestFields = (value: Record) => {
+ if (!Array.isArray(value.models)) return value;
+ return {
+ ...value,
+ models: value.models.map((model) => (isRecord(model) ? removeTestModel(model) : model)),
+ };
+};
const putGroups = (family: ProviderFamily, groups: Record[]) =>
- apiClient.put(`/config/api-keys/${family}`, groups);
+ apiClient.put(
+ `/config/api-keys/${family}`,
+ groups.map((group) => ({
+ ...cleanModelTestFields(family === 'openai-compatibility' ? removeTestModel(group) : group),
+ keys: (group.keys as unknown[]).map((key) =>
+ isRecord(key) ? cleanModelTestFields(key) : key
+ ),
+ }))
+ );
/** Locate by persisted snapshot, never by flattened row index. Refuse ambiguous duplicates. */
export const locateProviderGroup = (
diff --git a/web/src/services/api/transformers.ts b/web/src/services/api/transformers.ts
index 47646d1a7aa..9b24ef15fa1 100644
--- a/web/src/services/api/transformers.ts
+++ b/web/src/services/api/transformers.ts
@@ -31,7 +31,6 @@ const normalizeModelAliases = (models: unknown): ModelAlias[] => {
if (!name) return null;
const alias = item.alias;
const priority = item.priority;
- const testModel = item['test-model'];
const image = normalizeBoolean(item.image);
const thinking = normalizeModelThinking(item.thinking);
const entry: ModelAlias = { name: String(name), sourceIndex, ...normalizeModelOptions(item) };
@@ -44,9 +43,6 @@ const normalizeModelAliases = (models: unknown): ModelAlias[] => {
entry.priority = parsed;
}
}
- if (testModel) {
- entry.testModel = String(testModel);
- }
if (image !== undefined) {
entry.image = image;
}
@@ -278,7 +274,6 @@ const normalizeOpenAIProvider = (
const headers = normalizeHeaders(provider.headers);
const models = normalizeModelAliases(provider.models);
const priority = provider.priority;
- const testModel = provider['test-model'];
const result: OpenAIProviderConfig = {
name: String(name),
@@ -298,7 +293,6 @@ const normalizeOpenAIProvider = (
if (headers) result.headers = headers;
if (models.length) result.models = models;
if (priority !== undefined) result.priority = Number(priority);
- if (testModel) result.testModel = String(testModel);
const authIndex = normalizeAuthIndex(provider['auth-index']);
if (authIndex) result.authIndex = authIndex;
if (sourceIndex !== undefined) result.sourceIndex = sourceIndex;
@@ -366,10 +360,7 @@ export const normalizeConfigResponse = (raw: unknown): Config => {
config.apiKeys = Array.isArray(keys)
? keys.filter((key): key is string => typeof key === 'string')
: [];
- const quota = at('quota-exceeded');
config.quotaExceeded = {
- switchProject: isRecord(quota) ? normalizeBoolean(quota['switch-project']) : false,
- switchPreviewModel: isRecord(quota) ? normalizeBoolean(quota['switch-preview-model']) : false,
antigravityCredits:
normalizeBoolean(at('oauth.providers.antigravity.antigravity-credits')) ?? false,
};
diff --git a/web/src/stores/useQuotaStore.ts b/web/src/stores/useQuotaStore.ts
index 1dd1ac2642b..3fbd5fe14f6 100644
--- a/web/src/stores/useQuotaStore.ts
+++ b/web/src/stores/useQuotaStore.ts
@@ -11,6 +11,7 @@ import type {
DevinQuotaState,
KimiQuotaState,
MetaQuotaState,
+ PluginQuotaState,
XaiQuotaState,
} from '@/types';
@@ -25,6 +26,7 @@ interface QuotaStoreState {
devinQuota: Record;
kimiQuota: Record;
metaQuota: Record;
+ pluginQuota: Record;
xaiQuota: Record;
setAntigravityQuota: (updater: QuotaUpdater>) => void;
setClaudeQuota: (updater: QuotaUpdater>) => void;
@@ -32,6 +34,7 @@ interface QuotaStoreState {
setDevinQuota: (updater: QuotaUpdater>) => void;
setKimiQuota: (updater: QuotaUpdater>) => void;
setMetaQuota: (updater: QuotaUpdater>) => void;
+ setPluginQuota: (updater: QuotaUpdater>) => void;
setXaiQuota: (updater: QuotaUpdater>) => void;
clearQuotaCache: (names?: string[]) => void;
}
@@ -52,6 +55,7 @@ export const useQuotaStore = create((set) => ({
devinQuota: {},
kimiQuota: {},
metaQuota: {},
+ pluginQuota: {},
xaiQuota: {},
setAntigravityQuota: (updater) =>
set((state) => ({
@@ -75,6 +79,10 @@ export const useQuotaStore = create((set) => ({
})),
setMetaQuota: (updater) =>
set((state) => ({ metaQuota: resolveUpdater(updater, state.metaQuota) })),
+ setPluginQuota: (updater) =>
+ set((state) => ({
+ pluginQuota: resolveUpdater(updater, state.pluginQuota),
+ })),
setXaiQuota: (updater) =>
set((state) => ({
xaiQuota: resolveUpdater(updater, state.xaiQuota),
@@ -105,6 +113,7 @@ export const useQuotaStore = create((set) => ({
devinQuota: omitNames(state.devinQuota),
kimiQuota: omitNames(state.kimiQuota),
metaQuota: omitNames(state.metaQuota),
+ pluginQuota: omitNames(state.pluginQuota),
xaiQuota: omitNames(state.xaiQuota),
};
}
@@ -117,6 +126,7 @@ export const useQuotaStore = create((set) => ({
devinQuota: {},
kimiQuota: {},
metaQuota: {},
+ pluginQuota: {},
xaiQuota: {},
};
}),
diff --git a/web/src/types/authFile.ts b/web/src/types/authFile.ts
index 3d940ffa906..43823f1f2a1 100644
--- a/web/src/types/authFile.ts
+++ b/web/src/types/authFile.ts
@@ -55,6 +55,9 @@ export interface AuthFileItem {
projectId?: string;
size?: number;
authIndex?: string | number | null;
+ /** Generic plugin quota capability advertised by CPA's auth-files API. */
+ supportsQuota?: boolean;
+ quotaProvider?: string;
runtimeOnly?: boolean | string;
disabled?: boolean;
unavailable?: boolean;
diff --git a/web/src/types/common.ts b/web/src/types/common.ts
index 83efd66bc2f..44af55a4dd1 100644
--- a/web/src/types/common.ts
+++ b/web/src/types/common.ts
@@ -4,7 +4,7 @@
export type Theme = 'light' | 'white' | 'dark' | 'auto';
-export type Language = 'zh-CN' | 'zh-TW' | 'en' | 'ru';
+export type Language = 'zh-CN' | 'zh-TW' | 'en' | 'ru' | 'vi' | 'ko';
export type NotificationType = 'info' | 'success' | 'warning' | 'error';
diff --git a/web/src/types/config.ts b/web/src/types/config.ts
index 2dd89298109..de8a38c591f 100644
--- a/web/src/types/config.ts
+++ b/web/src/types/config.ts
@@ -6,8 +6,6 @@
import type { GeminiKeyConfig, ProviderKeyConfig, OpenAIProviderConfig } from './provider';
export interface QuotaExceededConfig {
- switchProject?: boolean;
- switchPreviewModel?: boolean;
antigravityCredits?: boolean;
}
diff --git a/web/src/types/plugin.ts b/web/src/types/plugin.ts
index 4e6efb645c8..2989c02f5c1 100644
--- a/web/src/types/plugin.ts
+++ b/web/src/types/plugin.ts
@@ -40,6 +40,8 @@ export interface PluginListEntry {
effectiveEnabled: boolean;
supportsOAuth: boolean;
oauthProvider?: string;
+ supportsQuota: boolean;
+ quotaProvider?: string;
logo: string;
configFields: PluginConfigField[];
menus: PluginMenu[];
diff --git a/web/src/types/provider.ts b/web/src/types/provider.ts
index 851779fa943..afcea91d693 100644
--- a/web/src/types/provider.ts
+++ b/web/src/types/provider.ts
@@ -40,7 +40,6 @@ export interface ModelAlias {
name: string;
alias?: string;
priority?: number;
- testModel?: string;
image?: boolean;
displayName?: string;
maxContextLength?: number;
@@ -111,7 +110,6 @@ export interface OpenAIProviderConfig extends ProviderRuntimePolicy, ProviderBeh
headers?: Record;
models?: ModelAlias[];
priority?: number;
- testModel?: string;
disableCooling?: boolean;
authIndex?: string;
/** Original index in the backend openai-compatibility array. */
diff --git a/web/src/types/quota.ts b/web/src/types/quota.ts
index 4d0a2dc6baa..2f312c87e44 100644
--- a/web/src/types/quota.ts
+++ b/web/src/types/quota.ts
@@ -100,6 +100,9 @@ export interface CodexUsagePayload {
export interface ClaudeUsageWindow {
utilization: number;
resets_at: string | null;
+ limit_dollars?: number | null;
+ used_dollars?: number | null;
+ remaining_dollars?: number | null;
}
export interface ClaudeUsageLimit {
@@ -226,6 +229,20 @@ export interface AntigravityQuotaState {
errorStatus?: number;
}
+/** A provider-defined numeric/currency value rendered above generic quota windows. */
+export interface PluginQuotaMetric {
+ key: string;
+ label: string;
+ value: number;
+ unit?: string;
+ format?: 'number' | 'currency';
+ currency?: string;
+}
+
+export interface PluginQuotaState extends AntigravityQuotaState {
+ summary: PluginQuotaMetric[];
+}
+
export interface CodexQuotaWindow {
id: string;
label: string;
diff --git a/web/src/types/visualConfig.ts b/web/src/types/visualConfig.ts
index 24b3c6281d7..28203ecbf89 100644
--- a/web/src/types/visualConfig.ts
+++ b/web/src/types/visualConfig.ts
@@ -117,6 +117,7 @@ export type PluginStoreAuthRule = {
/** UI draft keys; YAML persistence uses the v8 tree, not these flattened names. */
export type VisualConfigValues = {
+ githubToken: string;
trustedProxies: string[];
discoveryEnabled: boolean;
discoveryServiceName: string;
@@ -186,8 +187,6 @@ export type VisualConfigValues = {
disableImageGeneration: DisableImageGenerationMode;
gptImage2BaseModel: string;
authAutoRefreshWorkers: string;
- quotaSwitchProject: boolean;
- quotaSwitchPreviewModel: boolean;
/** OAuth-only: oauth.providers.antigravity.antigravity-credits. */
quotaAntigravityCredits: boolean;
routingStrategy: RoutingStrategy;
@@ -221,6 +220,7 @@ export const makeClientId = () => {
};
export const DEFAULT_VISUAL_VALUES: VisualConfigValues = {
+ githubToken: '',
trustedProxies: [],
discoveryEnabled: false,
discoveryServiceName: '',
@@ -289,8 +289,6 @@ export const DEFAULT_VISUAL_VALUES: VisualConfigValues = {
disableImageGeneration: 'false',
gptImage2BaseModel: '',
authAutoRefreshWorkers: '',
- quotaSwitchProject: false,
- quotaSwitchPreviewModel: false,
quotaAntigravityCredits: false,
routingStrategy: 'round-robin',
routingSessionAffinity: false,
diff --git a/web/src/utils/constants.ts b/web/src/utils/constants.ts
index afec117e47c..df715fda42c 100644
--- a/web/src/utils/constants.ts
+++ b/web/src/utils/constants.ts
@@ -34,12 +34,21 @@ export const STORAGE_KEY_THEME = 'cli-proxy-theme';
export const STORAGE_KEY_LANGUAGE = 'cli-proxy-language';
// 语言配置
-export const LANGUAGE_ORDER = defineLanguageOrder(['zh-CN', 'zh-TW', 'en', 'ru'] as const);
+export const LANGUAGE_ORDER = defineLanguageOrder([
+ 'zh-CN',
+ 'zh-TW',
+ 'en',
+ 'ru',
+ 'vi',
+ 'ko',
+] as const);
export const LANGUAGE_LABEL_KEYS: Record = {
'zh-CN': 'language.chinese',
'zh-TW': 'language.chinese_tw',
en: 'language.english',
ru: 'language.russian',
+ vi: 'language.vietnamese',
+ ko: 'language.korean',
};
export const SUPPORTED_LANGUAGES = LANGUAGE_ORDER;
diff --git a/web/src/utils/language.ts b/web/src/utils/language.ts
index 67395ab2437..83d56ae4e4f 100644
--- a/web/src/utils/language.ts
+++ b/web/src/utils/language.ts
@@ -45,6 +45,8 @@ const getBrowserLanguage = (): Language => {
if (TRADITIONAL_CHINESE_PREFIXES.some((prefix) => lower.startsWith(prefix))) return 'zh-TW';
if (lower.startsWith('zh')) return 'zh-CN';
if (lower.startsWith('ru')) return 'ru';
+ if (lower.startsWith('vi')) return 'vi';
+ if (lower.startsWith('ko')) return 'ko';
return 'en';
};
diff --git a/web/src/utils/quota/builders.ts b/web/src/utils/quota/builders.ts
index ff9de0f84e9..324cb49c2e1 100644
--- a/web/src/utils/quota/builders.ts
+++ b/web/src/utils/quota/builders.ts
@@ -86,8 +86,12 @@ export function buildAntigravityQuotaGroups(
const window = normalizeStringValue(bucket.window) ?? undefined;
const rawId =
normalizeStringValue(bucket.bucketId ?? bucket.bucket_id) ??
- `${groupId}-${window ?? `bucket-${bucketIndex + 1}`}`;
- const label = normalizeStringValue(bucket.displayName ?? bucket.display_name) ?? rawId;
+ `${groupId}-${window ?? 'bucket'}-${bucketIndex + 1}`;
+ const label =
+ normalizeStringValue(bucket.displayName ?? bucket.display_name) ??
+ normalizeStringValue(bucket.description) ??
+ window ??
+ rawId;
const resetTime =
normalizeStringValue(bucket.resetTime ?? bucket.reset_time) ?? undefined;
diff --git a/web/src/utils/quota/constants.ts b/web/src/utils/quota/constants.ts
index 896f5972e7d..86bc5dd6708 100644
--- a/web/src/utils/quota/constants.ts
+++ b/web/src/utils/quota/constants.ts
@@ -4,7 +4,7 @@
import type { TypeColorSet } from '@/types';
-// Theme colors for type badges — 与 authFiles/constants.ts 保持同步
+// Theme colors for type badges — keep in sync with authFiles/constants.ts
export const TYPE_COLORS: Record = {
qwen: {
light: { bg: '#ede5fd', text: '#5530c7' },
@@ -160,8 +160,9 @@ export const XAI_SETTINGS_URL = 'https://cli-chat-proxy.grok.com/v1/settings';
export const XAI_API_ME_URL = 'https://api.x.ai/v1/me';
export const XAI_API_CHAT_URL = 'https://api.x.ai/v1/chat/completions';
export const XAI_PAID_HEALTH_MODEL = 'grok-4.5';
-export const XAI_GROK_CLIENT_VERSION = '0.2.91';
-export const XAI_GROK_USER_AGENT = 'grok-pager/0.2.91 grok-shell/0.2.91 (macos; aarch64)';
+// Keep aligned with the backend fallback; Grok rejects versions older than 1.0.13.
+export const XAI_GROK_CLIENT_VERSION = '1.0.46';
+export const XAI_GROK_USER_AGENT = `grok-pager/${XAI_GROK_CLIENT_VERSION} grok-shell/${XAI_GROK_CLIENT_VERSION} (macos; aarch64)`;
export const XAI_REQUEST_HEADERS = {
Authorization: 'Bearer $TOKEN$',
diff --git a/web/src/utils/quota/identity.ts b/web/src/utils/quota/identity.ts
index fbc3d6505e8..1c0f9c8e6fe 100644
--- a/web/src/utils/quota/identity.ts
+++ b/web/src/utils/quota/identity.ts
@@ -1,23 +1,22 @@
import type { AuthFileItem } from '@/types';
import { normalizeRecentRequestAuthIndex } from '@/utils/recentRequests';
-import { isDevinFile } from './validators';
+import { isDevinFile, isPluginQuotaFile } from './validators';
const QUOTA_IDENTITY_SEPARATOR = '\0';
/**
- * Cache identity is filename-based for every existing provider. Devin alone can
- * expose multiple credential identities from one physical file, distinguished
- * by auth_index.
+ * Devin and backend quota providers can expose multiple credential identities
+ * from one physical file, distinguished by auth_index.
*/
export function getQuotaCacheKey(file: AuthFileItem): string {
- if (!isDevinFile(file)) return file.name;
+ if (!isDevinFile(file) && !isPluginQuotaFile(file)) return file.name;
const authIndex = normalizeRecentRequestAuthIndex(file.authIndex);
return `${file.name}${QUOTA_IDENTITY_SEPARATOR}${authIndex ?? ''}`;
}
-/** Disambiguate same-name Devin cards without ever falling back to account (a secret). */
+/** Disambiguate same-name cards without ever falling back to account (a secret). */
export function getQuotaDisplayName(file: AuthFileItem): string {
- if (!isDevinFile(file)) return file.name;
+ if (!isDevinFile(file) && !isPluginQuotaFile(file)) return file.name;
const identity = file.email?.trim() || normalizeRecentRequestAuthIndex(file.authIndex);
return identity ? `${file.name} · ${identity}` : file.name;
}
diff --git a/web/src/utils/quota/planTier.ts b/web/src/utils/quota/planTier.ts
index bcd82d8d23f..af94f3e0233 100644
--- a/web/src/utils/quota/planTier.ts
+++ b/web/src/utils/quota/planTier.ts
@@ -3,8 +3,8 @@ import { normalizePlanType } from './parsers';
/**
* Codex 套餐档位 → 徽章样式的纯映射。
*
- * - elite → 液态铂金徽章(Pro 20x,plan=pro)
- * - premium → 金卡徽章(Pro Lite;Antigravity ultra / xAI paid 亦复用金卡类名)
+ * - elite → 液态铂金徽章(Pro 200,plan=pro)
+ * - premium → 金卡徽章(Pro 100;Antigravity ultra / xAI paid 亦复用金卡类名)
* - plain → 普通文字徽章(plus/team/free/未知)
*/
export type CodexPlanTier = 'elite' | 'premium' | 'plain';
@@ -17,13 +17,13 @@ export const PREMIUM_CODEX_PLAN_TYPES = new Set([
'self_serve_business_prolite',
]);
-// Pro 20x(plan=pro)在金色 premium 之上再进一档:液态铂金徽章,
+// Pro 200(plan=pro)在金色 premium 之上再进一档:液态铂金徽章,
// 见 QuotaPage.module.scss 的 .elitePlanValue。
export const ELITE_CODEX_PLAN_TYPE = 'pro';
/**
* 顺序敏感:'pro' 同时命中 PREMIUM_CODEX_PLAN_TYPES,elite 判断必须在最前,
- * 否则 Pro 20x 会静默退回金卡。契约由 tests/quotaPlanTier.test.ts 守护。
+ * 否则 Pro 200 会静默退回金卡。契约由 tests/quotaPlanTier.test.ts 守护。
*/
export function resolvePlanTier(planType: string | null | undefined): CodexPlanTier {
const normalized = normalizePlanType(planType);
diff --git a/web/src/utils/quota/validators.ts b/web/src/utils/quota/validators.ts
index 273ae58a7cf..ec1552e28d5 100644
--- a/web/src/utils/quota/validators.ts
+++ b/web/src/utils/quota/validators.ts
@@ -37,6 +37,27 @@ export function isXaiFile(file: AuthFileItem): boolean {
return resolveAuthProvider(file) === 'xai';
}
+/** Providers rendered by a dedicated built-in quota card. */
+export const BUILT_IN_QUOTA_PROVIDERS: ReadonlySet = new Set([
+ 'antigravity',
+ 'claude',
+ 'codex',
+ 'devin',
+ 'kimi',
+ 'meta',
+ 'xai',
+]);
+
+/**
+ * Generic plugin quota card for providers without a built-in card. Built-in cards win even
+ * when a plugin also advertises quota for the same provider.
+ */
+export function isPluginQuotaFile(file: AuthFileItem): boolean {
+ if (BUILT_IN_QUOTA_PROVIDERS.has(resolveAuthProvider(file))) return false;
+ const supported = file.supportsQuota ?? file['supports_quota'];
+ return supported === true || supported === 'true' || supported === '1';
+}
+
export function isDisabledAuthFile(file: AuthFileItem): boolean {
const raw = (file as { disabled?: unknown }).disabled;
if (typeof raw === 'boolean') return raw;
diff --git a/web/tests/accountsCooldownRecovery.test.ts b/web/tests/accountsCooldownRecovery.test.ts
new file mode 100644
index 00000000000..985076fcebb
--- /dev/null
+++ b/web/tests/accountsCooldownRecovery.test.ts
@@ -0,0 +1,89 @@
+import { describe, expect, test } from 'bun:test';
+import { createElement } from 'react';
+import { renderToStaticMarkup } from 'react-dom/server';
+import { I18nextProvider } from 'react-i18next';
+import { createInstance } from 'i18next';
+import en from '@/i18n/locales/en.json';
+import { AuthFileRow } from '@/features/authFiles/components/AuthFileRow';
+import type { AuthFileItem } from '@/types';
+
+const translations = createInstance();
+await translations.init({ lng: 'en', resources: { en: { translation: en } } });
+const noop = () => {};
+const file: AuthFileItem = {
+ name: 'claude-reset-account.json',
+ type: 'claude',
+ authIndex: 'reset-account-index',
+ status: 'error',
+ cooldownSnapshot: {
+ observedAt: new Date().toISOString(),
+ receivedAtMs: Date.now(),
+ records: [
+ {
+ scope: 'model',
+ modelKey: 'claude-opus-5-5',
+ reason: 'quota',
+ retryAt: new Date(Date.now() + 3600000).toISOString(),
+ remainingSeconds: 3600,
+ httpStatus: 429,
+ },
+ ],
+ },
+};
+const render = (item: AuthFileItem, pending = false, disableControls = false) =>
+ renderToStaticMarkup(
+ createElement(
+ I18nextProvider,
+ { i18n: translations },
+ createElement(AuthFileRow, {
+ file: item,
+ selected: false,
+ resolvedTheme: 'dark',
+ disableControls,
+ deleting: null,
+ statusUpdating: {},
+ manualRefreshing: {},
+ cooldownResetting: pending ? { 'reset-account-index': true } : {},
+ onCooldownReset: noop,
+ onShowModels: noop,
+ onDownload: noop,
+ onManualRefresh: noop,
+ onOpenPrefixProxyEditor: noop,
+ onDelete: noop,
+ onToggleStatus: noop,
+ onToggleSelect: noop,
+ })
+ )
+ );
+
+describe('Accounts cooldown recovery', () => {
+ test('shows an actionable reset in the account row before the collapsed details', () => {
+ const markup = render(file);
+ const button = markup.match(/]*>[\s\S]*?Clear cooldown[\s\S]*?<\/button>/)?.[0];
+ expect(button).toBeTruthy();
+ expect(button).not.toContain('disabled=""');
+ expect(markup.indexOf('Clear cooldown')).toBeLessThan(markup.indexOf(' {
+ for (const item of [
+ { ...file, cooldownSnapshot: undefined },
+ { ...file, cooldownSnapshot: { ...file.cooldownSnapshot!, records: [] } },
+ { ...file, cooldownSnapshot: { ...file.cooldownSnapshot!, records: null } },
+ { ...file, authIndex: '' },
+ ])
+ expect(render(item)).not.toContain('Clear cooldown');
+ });
+
+ test('blocks duplicate resets and writes while disconnected or disabled', () => {
+ for (const markup of [
+ render(file, true),
+ render(file, false, true),
+ render({ ...file, disabled: true }),
+ ]) {
+ const button = markup.match(/]*title="[^"]*cooldown[^"]*"[^>]*>/)?.[0];
+ expect(button).toContain('disabled=""');
+ }
+ });
+});
diff --git a/web/tests/apiKeyStrengthMeter.test.ts b/web/tests/apiKeyStrengthMeter.test.ts
index 9f8d3c3005f..d899ef53e0f 100644
--- a/web/tests/apiKeyStrengthMeter.test.ts
+++ b/web/tests/apiKeyStrengthMeter.test.ts
@@ -5,8 +5,9 @@ import i18n from '@/i18n';
import { ApiKeyStrengthMeter } from '@/features/config/components/blocks/ApiKeyStrengthMeter';
import { SEGMENT_STAGGER_MS, segmentFillDelayMs } from '@/features/config/components/blocks/shared';
import { generateSecureApiKey } from '@/utils/apiKey';
+import { LANGUAGE_ORDER } from '@/utils/constants';
-const LOCALES = ['en', 'zh-CN', 'zh-TW', 'ru'];
+const LOCALES = LANGUAGE_ORDER;
describe('ApiKeyStrengthMeter', () => {
test('exposes the tier through the progressbar', () => {
@@ -49,7 +50,7 @@ describe('ApiKeyStrengthMeter', () => {
expect(delays(2, 4)).toEqual([0, 0, 0, 0]);
});
- test('every tier label is translated in all locales', async () => {
+ test('every tier label is translated in all supported locales', async () => {
const original = i18n.language;
for (const locale of LOCALES) {
diff --git a/web/tests/authFilesListLogic.test.ts b/web/tests/authFilesListLogic.test.ts
index a85514afa7e..d178b9cb6bf 100644
--- a/web/tests/authFilesListLogic.test.ts
+++ b/web/tests/authFilesListLogic.test.ts
@@ -47,6 +47,21 @@ describe('resolveAuthFileQuotaType', () => {
expect(resolveAuthFileQuotaType(authFile({ type: 'codex' }), 'claude')).toBeNull();
expect(resolveAuthFileQuotaType(authFile({ type: 'codex' }), null)).toBeNull();
});
+
+ test('exposes a plugin quota on its own provider tab', () => {
+ const kiro = authFile({ type: 'kiro', supportsQuota: true, quotaProvider: 'kiro' });
+ expect(resolveAuthFileQuotaType(kiro, 'all')).toBe('plugin');
+ expect(resolveAuthFileQuotaType(kiro, 'kiro')).toBe('plugin');
+ });
+
+ test('exposes a probe-only plugin quota without a provider identifier', () => {
+ expect(resolveAuthFileQuotaType(authFile({ type: 'kiro', supportsQuota: true }), 'all')).toBe(
+ 'plugin'
+ );
+ expect(
+ resolveAuthFileQuotaType(authFile({ type: 'kiro', supportsQuota: true }), 'plugin')
+ ).toBe('plugin');
+ });
});
describe('matchesAuthFileSearch', () => {
diff --git a/web/tests/authFilesResponseNormalization.test.ts b/web/tests/authFilesResponseNormalization.test.ts
index 72a6150f774..d244dc8d938 100644
--- a/web/tests/authFilesResponseNormalization.test.ts
+++ b/web/tests/authFilesResponseNormalization.test.ts
@@ -67,6 +67,15 @@ describe('auth-files response normalization', () => {
expect(result.files[0]?.project_id).toBe(' my-proj ');
});
+ test('normalizes generic plugin quota capability fields', () => {
+ const result = normalizeAuthFilesResponse(
+ responseWithRawFiles([{ name: 'kiro-a.json', supports_quota: true, quota_provider: 'kiro' }])
+ );
+
+ expect(result.files[0]?.supportsQuota).toBe(true);
+ expect(result.files[0]?.quotaProvider).toBe('kiro');
+ });
+
test('recovers a non-empty email from the lower-priority duplicate entry', () => {
const result = normalizeAuthFilesResponse(
responseWithRawFiles([
diff --git a/web/tests/claudeFableQuota.test.ts b/web/tests/claudeFableQuota.test.ts
index 0909ef96484..f9394fcb7ae 100644
--- a/web/tests/claudeFableQuota.test.ts
+++ b/web/tests/claudeFableQuota.test.ts
@@ -39,6 +39,93 @@ describe('Claude Fable quota', () => {
]);
});
+ test('shows a dollar-denominated legacy field as cloud session credits, not Fable', () => {
+ const reset = '2026-11-05T07:59:00+00:00';
+ const windows = buildClaudeQuotaWindows(
+ {
+ iguana_necktie: {
+ utilization: 5.043595,
+ resets_at: reset,
+ limit_dollars: 100,
+ used_dollars: 5.043595,
+ remaining_dollars: 94.956405,
+ },
+ limits: [
+ { kind: 'session', percent: 10, resets_at: modernReset, is_active: true, scope: null },
+ { kind: 'weekly_all', percent: 9, resets_at: legacyReset, is_active: false, scope: null },
+ ],
+ },
+ t
+ );
+
+ expect(windows).toEqual([
+ {
+ id: 'cloud-session-credits',
+ label: 'claude_quota.cloud_session_credits',
+ labelKey: 'claude_quota.cloud_session_credits',
+ usedPercent: 5.043595,
+ resetLabel: formatQuotaResetTime(reset),
+ resetAtMs: Date.parse(reset),
+ periodHours: null,
+ },
+ ]);
+ });
+
+ test('shows both cloud session credits and the scoped Fable limit', () => {
+ const windows = buildClaudeQuotaWindows(
+ {
+ iguana_necktie: {
+ utilization: 5,
+ resets_at: '2026-11-05T07:59:00+00:00',
+ limit_dollars: 100,
+ used_dollars: 5,
+ },
+ limits: [
+ {
+ kind: 'weekly_scoped',
+ percent: 64,
+ resets_at: modernReset,
+ is_active: true,
+ scope: { model: { id: null, display_name: 'Fable' } },
+ },
+ ],
+ },
+ t
+ );
+
+ expect(windows.map((window) => [window.id, window.usedPercent])).toEqual([
+ ['cloud-session-credits', 5],
+ ['seven-day-fable', 64],
+ ]);
+ });
+
+ test('treats a legacy field with only remaining_dollars as cloud session credits', () => {
+ const windows = buildClaudeQuotaWindows(
+ {
+ iguana_necktie: {
+ utilization: 5,
+ resets_at: '2026-11-05T07:59:00+00:00',
+ remaining_dollars: 95,
+ },
+ limits: [
+ {
+ kind: 'weekly_scoped',
+ percent: 64,
+ resets_at: modernReset,
+ is_active: true,
+ scope: { model: { id: null, display_name: 'Fable' } },
+ },
+ ],
+ },
+ t
+ );
+
+ expect(windows.map((window) => [window.id, window.usedPercent])).toEqual([
+ ['cloud-session-credits', 5],
+ ['seven-day-fable', 64],
+ ]);
+ });
+
test('falls back to the legacy Fable field', () => {
const windows = buildClaudeQuotaWindows(
{
diff --git a/web/tests/claudeResetGrantDetails.test.ts b/web/tests/claudeResetGrantDetails.test.ts
new file mode 100644
index 00000000000..12b2f8641be
--- /dev/null
+++ b/web/tests/claudeResetGrantDetails.test.ts
@@ -0,0 +1,92 @@
+import { beforeAll, describe, expect, test } from 'bun:test';
+import { createElement } from 'react';
+import { renderToStaticMarkup } from 'react-dom/server';
+import i18n from '@/i18n';
+import { ClaudeResetGrantDetails } from '@/features/quota/providers/claude/ClaudeResetGrantDetails';
+import { bindQuotaClasses, QUOTA_CLASS_KEYS } from '@/features/quota/types';
+import type { AnthropicResetGrant } from '@/services/api/claudeResetGrants';
+import { formatInstantShort } from '@/utils/quota';
+import { resolveTimeZoneLabel } from '@/utils/time/timezone';
+
+const classes = bindQuotaClasses(
+ Object.fromEntries(QUOTA_CLASS_KEYS.map((key) => [key, key])),
+ 'test-host'
+);
+const expiry = Date.now() + 11 * 86400_000;
+const grant = (overrides: Partial = {}): AnthropicResetGrant => ({
+ id: 'launch',
+ label: 'Launch',
+ resetsTotal: 3,
+ resetsLeft: 2,
+ startsAt: null,
+ endsAt: new Date(expiry).toISOString(),
+ clears: ['five_hour'],
+ paused: false,
+ usableNow: true,
+ useRequiresLimit: true,
+ percentUsed: {},
+ ...overrides,
+});
+const render = (grants: AnthropicResetGrant[]) =>
+ renderToStaticMarkup(createElement(ClaudeResetGrantDetails, { grants, classes }));
+
+beforeAll(async () => {
+ await i18n.changeLanguage('en');
+});
+
+describe('Claude reset grant details', () => {
+ test('uses Codex detail classes, timezone, remaining count and live relative date', () => {
+ const markup = render([grant()]);
+ expect(markup).toContain('class="codexResetCredits"');
+ expect(markup).toContain('class="codexResetCreditRow"');
+ expect(markup).toContain(resolveTimeZoneLabel());
+ expect(markup).toContain('Launch · 2 / 3 resets remaining');
+ expect(markup).toContain(formatInstantShort(expiry));
+ expect(markup).toContain('class="quotaResetRelative"');
+ expect(markup).toContain('in 11 days');
+ });
+
+ test('hides empty and spent grants', () => {
+ expect(render([])).toBe('');
+ expect(render([grant({ resetsLeft: 0 })])).toBe('');
+ expect(render([grant(), grant({ id: 'spent', label: 'Spent', resetsLeft: 0 })])).not.toContain(
+ 'Spent'
+ );
+ });
+
+ test('sorts by deadline without mutating input and keeps unknown dates last', () => {
+ const grants = [
+ grant({ id: 'unknown', label: 'Unknown', endsAt: null }),
+ grant({ id: 'later', label: 'Later', endsAt: new Date(expiry + 86400_000).toISOString() }),
+ grant({ id: 'first', label: 'First' }),
+ ];
+ const markup = render(grants);
+ expect(markup.indexOf('First')).toBeLessThan(markup.indexOf('Later'));
+ expect(markup.indexOf('Later')).toBeLessThan(markup.indexOf('Unknown'));
+ expect(markup).toContain('Expiry unknown');
+ expect(grants.map((item) => item.id)).toEqual(['unknown', 'later', 'first']);
+ });
+
+ test('keeps paused and expired unspent grants visible without implying usability', () => {
+ const markup = render([
+ grant({ paused: true, usableNow: false, endsAt: '2020-01-01T00:00:00Z' }),
+ ]);
+ expect(markup).toContain(formatInstantShort(Date.parse('2020-01-01T00:00:00Z')));
+ expect(markup).not.toContain(' {
+ await i18n.changeLanguage(lng);
+ try {
+ const markup = render([grant({ label: '', endsAt: null })]);
+ expect(markup).toContain(i18n.t('claude_reset.grant_number', { index: 1 }));
+ expect(markup).toContain(i18n.t('claude_reset.expiry_unknown'));
+ expect(markup).not.toContain('claude_reset.');
+ } finally {
+ await i18n.changeLanguage('en');
+ }
+ }
+ );
+});
diff --git a/web/tests/codexQuotaReset.test.ts b/web/tests/codexQuotaReset.test.ts
new file mode 100644
index 00000000000..1896a732ad1
--- /dev/null
+++ b/web/tests/codexQuotaReset.test.ts
@@ -0,0 +1,92 @@
+import { afterEach, describe, expect, spyOn, test } from 'bun:test';
+import type { TFunction } from 'i18next';
+import { CODEX_CONFIG } from '@/features/quota/providers/codex/data';
+import { apiCallApi, authFilesApi, apiClient } from '@/services/api';
+import { CODEX_RATE_LIMIT_RESET_CREDITS_CONSUME_URL } from '@/utils/quota';
+
+const t = ((key: string) => key) as TFunction;
+const file = { name: 'codex-test.json', auth_index: 'test-index', type: 'codex' };
+const response = (body: unknown, statusCode = 200) => ({
+ statusCode,
+ body,
+ bodyText: JSON.stringify(body),
+ header: {},
+});
+const reset = () => CODEX_CONFIG.resetQuota!(file, t);
+const mocks: Array<{ mockRestore(): void }> = [];
+afterEach(() => {
+ for (const mock of mocks.splice(0)) mock.mockRestore();
+});
+
+function setup(body: unknown, statusCode = 200) {
+ const calls: string[] = [];
+ const request = spyOn(apiCallApi, 'request').mockImplementation(async (payload) => {
+ if (payload.url === CODEX_RATE_LIMIT_RESET_CREDITS_CONSUME_URL) {
+ calls.push('consume');
+ return response(body, statusCode);
+ }
+ calls.push('read');
+ return response({});
+ });
+ const clear = spyOn(authFilesApi, 'resetCooldown').mockImplementation(async () => {
+ calls.push('clear');
+ return { status: 'ok', auth_index: 'test-index', models: [] };
+ });
+ mocks.push(request, clear);
+ return { calls, request, clear };
+}
+
+describe('Codex reset gateway cooldown', () => {
+ test.each(['reset', 'already_redeemed'])(
+ 'clears only after confirmed %s, before reads',
+ async (code) => {
+ const { calls, clear } = setup({ code, windows_reset: 0 });
+ await reset();
+ expect(calls.slice(0, 3)).toEqual(['consume', 'clear', 'read']);
+ expect(clear).toHaveBeenCalledTimes(1);
+ expect(clear).toHaveBeenCalledWith('test-index');
+ }
+ );
+
+ test.each(['no_credit', 'nothing_to_reset', 'unknown'])('does not clear for %s', async (code) => {
+ const { calls } = setup({ code });
+ await expect(reset()).rejects.toThrow('codex_quota.reset_not_confirmed');
+ expect(calls).toEqual(['consume']);
+ });
+
+ test('does not clear on HTTP failure', async () => {
+ const { calls } = setup({ code: 'reset' }, 503);
+ await expect(reset()).rejects.toThrow();
+ expect(calls).toEqual(['consume']);
+ });
+
+ test('does not clear on transport failure', async () => {
+ const { request, clear } = setup({});
+ request.mockRejectedValue(new Error('timeout'));
+ await expect(reset()).rejects.toThrow('timeout');
+ expect(clear).not.toHaveBeenCalled();
+ });
+
+ test('directs cooldown failures to manual clearing, without another consume', async () => {
+ const { request, clear } = setup({ code: 'reset' });
+ clear.mockRejectedValue(new Error('offline'));
+ await expect(reset()).rejects.toThrow('codex_quota.reset_cooldown_failed');
+ expect(request).toHaveBeenCalledTimes(1);
+ });
+
+ test('rejects mismatched cooldown acknowledgements', async () => {
+ const { clear } = setup({ code: 'reset' });
+ clear.mockResolvedValue({ status: 'ok', auth_index: 'other-index', models: [] });
+ await expect(reset()).rejects.toThrow('codex_quota.reset_cooldown_failed');
+ });
+
+ test('does not clear after connection changes during redemption', async () => {
+ const { clear } = setup({ code: 'reset' });
+ const revision = spyOn(apiClient, 'getConnectionRevision')
+ .mockReturnValueOnce(1)
+ .mockReturnValue(2);
+ mocks.push(revision);
+ await expect(reset()).rejects.toThrow('codex_quota.reset_cooldown_failed');
+ expect(clear).not.toHaveBeenCalled();
+ });
+});
diff --git a/web/tests/configFieldParity.test.ts b/web/tests/configFieldParity.test.ts
index 375515849b5..6fa576c6023 100644
--- a/web/tests/configFieldParity.test.ts
+++ b/web/tests/configFieldParity.test.ts
@@ -113,7 +113,7 @@ describe('JSX anchor parity (source scan)', () => {
});
describe('registry consistency', () => {
- test('tab id registry is common + the seven canonical sections', () => {
+ test('tab id registry is common + the canonical sections', () => {
expect([...CONFIG_TAB_IDS]).toEqual(['common', ...CONFIG_SECTION_IDS]);
});
@@ -138,16 +138,26 @@ describe('registry consistency', () => {
});
describe('v8 YAML search paths', () => {
+ test('deprecated quota switches are absent from values and search metadata', () => {
+ for (const fieldId of ['quotaSwitchProject', 'quotaSwitchPreviewModel']) {
+ expect(LEAF_VALUE_KEYS.has(fieldId)).toBe(false);
+ expect(findConfigFieldById(fieldId)).toBeUndefined();
+ expect(FIELD_VALUE_KEYS).not.toHaveProperty(fieldId);
+ }
+ });
+
for (const [fieldId, path] of [
['apiKeys', 'access.api-keys'],
['commercialMode', 'server.commercial-mode'],
['requestRetry', 'routing.retry.request-retry'],
['routingStrategy', 'routing.strategy'],
- ['quotaSwitchProject', 'quota-exceeded.switch-project'],
- ['quotaSwitchPreviewModel', 'quota-exceeded.switch-preview-model'],
['quotaAntigravityCredits', 'oauth.providers.antigravity.antigravity-credits'],
['wsAuth', 'oauth.providers.aistudio.ws-auth'],
['codexHeaderUserAgent', 'oauth.providers.codex.header-defaults.user-agent'],
+ ['codexOptimizeMultiAgentV2', 'client.codex.optimize-multi-agent-v2'],
+ ['codexResponseSteering', 'upstream.codex.response-steering'],
+ ['claudeHeaderUserAgent', 'upstream.claude.header-defaults.user-agent'],
+ ['xaiInjectXSearch', 'upstream.xai.inject-x-search'],
['streamingNonstreamKeepalive', 'requests.nonstream-keepalive-interval'],
['payloadDefaultRules', 'requests.payload.default'],
['pluginStoreAuth', 'plugins.store-auth'],
diff --git a/web/tests/configNormalizationV8.test.ts b/web/tests/configNormalizationV8.test.ts
index 00abedf75d4..8747654fbbd 100644
--- a/web/tests/configNormalizationV8.test.ts
+++ b/web/tests/configNormalizationV8.test.ts
@@ -9,12 +9,28 @@ describe('v8 persisted configuration normalization', () => {
).toBe(false);
});
- test('reads Antigravity credits without requiring the unrelated quota-exceeded block', () => {
+ test('reads only Antigravity credits from the OAuth provider path', () => {
+ expect(normalizeConfigResponse({}).quotaExceeded).toEqual({ antigravityCredits: false });
+ for (const enabled of [true, false]) {
+ const oauth = { providers: { antigravity: { 'antigravity-credits': enabled } } };
+ expect(normalizeConfigResponse({ oauth }).quotaExceeded).toEqual({
+ antigravityCredits: enabled,
+ });
+ const config = normalizeConfigResponse({
+ oauth,
+ 'quota-exceeded': {
+ 'switch-project': true,
+ 'switch-preview-model': true,
+ 'antigravity-credits': !enabled,
+ },
+ });
+ expect(config.quotaExceeded).toEqual({ antigravityCredits: enabled });
+ expect(config.quotaExceeded).not.toHaveProperty('switchProject');
+ expect(config.quotaExceeded).not.toHaveProperty('switchPreviewModel');
+ }
expect(
- normalizeConfigResponse({
- oauth: { providers: { antigravity: { 'antigravity-credits': true } } },
- }).quotaExceeded?.antigravityCredits
- ).toBe(true);
+ normalizeConfigResponse({ 'quota-exceeded': { 'antigravity-credits': true } }).quotaExceeded
+ ).toEqual({ antigravityCredits: false });
});
test('does not interpret legacy root settings as v8 values', () => {
diff --git a/web/tests/configOAuthBehaviorUi.test.ts b/web/tests/configOAuthBehaviorUi.test.ts
index 9ff8430529b..6ebdf722561 100644
--- a/web/tests/configOAuthBehaviorUi.test.ts
+++ b/web/tests/configOAuthBehaviorUi.test.ts
@@ -28,8 +28,8 @@ const server = {
};
describe('OAuth behavior configuration UI', () => {
- test('keeps seven canonical tabs and places every addition in its designated section', () => {
- expect(CONFIG_SECTION_IDS).toHaveLength(7);
+ test('keeps six canonical tabs and places every addition in its designated section', () => {
+ expect(CONFIG_SECTION_IDS).toHaveLength(6);
const network = render(createElement(SectionNetwork, props));
const advanced = render(createElement(SectionAdvanced, props));
const additions = CONFIG_FIELD_SEARCH_INDEX.filter((entry) =>
@@ -43,7 +43,7 @@ describe('OAuth behavior configuration UI', () => {
expect(other).not.toContain(`id="cfg-field-${entry.fieldId}"`);
expect(own).toContain(escapeText(translations.t(entry.labelKey)));
expect(own).toContain(escapeText(translations.t(entry.hintKey!)));
- expect(entry.yamlKeys?.join('.')).toMatch(/^(routing|multimedia|oauth)\./);
+ expect(entry.yamlKeys?.join('.')).toMatch(/^(routing|multimedia|oauth|upstream|client)\./);
}
const oauth = render(createElement(SectionOAuthBehavior, props));
expect(oauth).toContain(' {
test('keeps nine searchable anchors in connectivity without adding a tab', () => {
- expect(CONFIG_SECTION_IDS).toHaveLength(7);
+ expect(CONFIG_SECTION_IDS).toHaveLength(6);
expect(extras).toHaveLength(9);
const markup = render(createElement(SectionConnectivity, props));
for (const entry of extras) {
diff --git a/web/tests/configSettingLayout.test.ts b/web/tests/configSettingLayout.test.ts
new file mode 100644
index 00000000000..632a9a4df95
--- /dev/null
+++ b/web/tests/configSettingLayout.test.ts
@@ -0,0 +1,91 @@
+// 两列排布不变量:渲染每个分区,逐个列表检查——任何一行都不会在右侧留下空格。
+// 落单补整行只看 SettingList 直接子元素的 props,包装组件把 wide 藏在内部就会算错奇偶;
+// 这里用真实分区渲染兜住这类回归。
+
+import { describe, expect, mock, test } from 'bun:test';
+import { join } from 'node:path';
+import { createElement, type ComponentType } from 'react';
+import { renderToStaticMarkup } from 'react-dom/server';
+import { DEFAULT_VISUAL_VALUES } from '@/types/visualConfig';
+import { resolveRowSpans } from '@/features/config/components/fields/rowSpans';
+
+// bun 把 CSS Module 解析成路径字符串,类名全是 undefined;改成按原名回显,才能在标记里看到 rowWide。
+mock.module(
+ join(import.meta.dir, '../src/features/config/components/fields/Field.module.scss'),
+ () => ({
+ default: new Proxy({}, { get: (_, key) => (typeof key === 'string' ? key : undefined) }),
+ })
+);
+
+const { I18nextProvider } = await import('react-i18next');
+const { default: i18n } = await import('@/i18n');
+const sections = {
+ common: (await import('@/features/config/components/sections/SectionCommon')).SectionCommon,
+ connectivity: (await import('@/features/config/components/sections/SectionConnectivity'))
+ .SectionConnectivity,
+ network: (await import('@/features/config/components/sections/SectionNetwork')).SectionNetwork,
+ logging: (await import('@/features/config/components/sections/SectionLogging')).SectionLogging,
+ streaming: (await import('@/features/config/components/sections/SectionStreaming'))
+ .SectionStreaming,
+ advanced: (await import('@/features/config/components/sections/SectionAdvanced')).SectionAdvanced,
+} as Record>>;
+
+const translations = i18n.cloneInstance({ lng: 'en' });
+const render = (Section: ComponentType>, tlsEnable: boolean) =>
+ renderToStaticMarkup(
+ createElement(
+ I18nextProvider,
+ { i18n: translations },
+ createElement(Section, {
+ values: { ...DEFAULT_VISUAL_VALUES, tlsEnable },
+ disabled: false,
+ onChange: () => {},
+ })
+ )
+ );
+
+/** 每个列表容器里按顺序排列的行:[fieldId, 是否占整行]。列表之间不嵌套。 */
+function listsOf(markup: string) {
+ return markup
+ .split('class="list"')
+ .slice(1)
+ .map((chunk) =>
+ [...chunk.split('class="group"')[0].matchAll(/ classes.split(' ').includes('row'))
+ .map(([, fieldId, classes]) => ({ fieldId, wide: classes.split(' ').includes('rowWide') }))
+ );
+}
+
+describe('two-column setting layout', () => {
+ for (const [name, Section] of Object.entries(sections)) {
+ for (const tlsEnable of name === 'connectivity' ? [false, true] : [false]) {
+ test(`${name}${tlsEnable ? ' (TLS on)' : ''}: no list leaves a half-empty row`, () => {
+ const lists = listsOf(render(Section, tlsEnable));
+ expect(lists.length).toBeGreaterThan(0);
+ for (const rows of lists) {
+ expect(rows.length).toBeGreaterThan(0);
+ const wide = rows.map((row) => row.wide);
+ // 已经排好的版式再算一遍不应再有需要补整行的落单行
+ expect({ rows: rows.map((row) => row.fieldId), wide: resolveRowSpans(wide) }).toEqual({
+ rows: rows.map((row) => row.fieldId),
+ wide,
+ });
+ }
+ });
+ }
+ }
+
+ test('long URL and master switches keep their deliberate full-width rows', () => {
+ const common = listsOf(render(sections.common, false)).flat();
+ const network = listsOf(render(sections.network, false)).flat();
+ const connectivity = listsOf(render(sections.connectivity, true)).flat();
+ const wideOf = (rows: typeof common, fieldId: string) =>
+ rows.find((row) => row.fieldId === fieldId)?.wide;
+ expect(wideOf(common, 'proxyUrl')).toBe(true);
+ expect(wideOf(network, 'proxyUrl')).toBe(true);
+ expect(wideOf(network, 'requestRetry')).toBe(false);
+ expect(wideOf(connectivity, 'tlsEnable')).toBe(true);
+ expect(wideOf(connectivity, 'tlsCert')).toBe(false);
+ expect(wideOf(connectivity, 'tlsKey')).toBe(false);
+ });
+});
diff --git a/web/tests/configSettingRows.test.ts b/web/tests/configSettingRows.test.ts
new file mode 100644
index 00000000000..e83fdbb6b61
--- /dev/null
+++ b/web/tests/configSettingRows.test.ts
@@ -0,0 +1,185 @@
+// 设置行原语:开关 / 输入 / 下拉 / 区块编辑器共用一副骨架,
+// 两列网格的落单补整行逻辑,以及每种行的标签与描述关联。
+
+import { describe, expect, test } from 'bun:test';
+import { createElement, Fragment } from 'react';
+import { renderToStaticMarkup } from 'react-dom/server';
+import {
+ BlockSetting,
+ SelectSetting,
+ SettingList,
+ TextSetting,
+ ToggleSetting,
+} from '@/features/config/components/fields/FieldPrimitives';
+import { resolveRowSpans } from '@/features/config/components/fields/rowSpans';
+
+const noop = () => {};
+const render = (element: ReturnType
) => renderToStaticMarkup(element);
+const attr = (tag: string, name: string) => tag.match(new RegExp(`\\b${name}="([^"]*)"`))?.[1];
+
+/** 回显 SettingList 注入的 wide,用来观察补整行结果。 */
+function Probe({ name, wide }: { name: string; wide?: boolean }) {
+ return createElement('i', { 'data-name': name, 'data-wide': String(Boolean(wide)) });
+}
+const probe = (name: string, wide?: boolean) => createElement(Probe, { key: name, name, wide });
+const spansOf = (markup: string) =>
+ [...markup.matchAll(/data-name="([^"]+)" data-wide="(true|false)"/g)].map(
+ ([, name, wide]) => `${name}:${wide}`
+ );
+
+describe('two-column row spans', () => {
+ test('pairs rows and lets a trailing orphan fill its row', () => {
+ expect(resolveRowSpans([false, false])).toEqual([false, false]);
+ expect(resolveRowSpans([false, false, false])).toEqual([false, false, true]);
+ expect(resolveRowSpans([false])).toEqual([true]);
+ expect(resolveRowSpans([])).toEqual([]);
+ });
+
+ test('a row left alone before a full-width row spans instead of leaving a hole', () => {
+ // a b / c [wide] / d → c 与 d 都会落单
+ expect(resolveRowSpans([false, false, false, true, false])).toEqual([
+ false,
+ false,
+ true,
+ true,
+ true,
+ ]);
+ // [wide] a b → 显式整行后重新从行首配对
+ expect(resolveRowSpans([true, false, false])).toEqual([true, false, false]);
+ });
+
+ test('SettingList flattens fragments and injects wide only into orphans', () => {
+ const markup = render(
+ createElement(
+ SettingList,
+ null,
+ probe('a'),
+ probe('b'),
+ createElement(Fragment, null, probe('c'), probe('d', true)),
+ null,
+ false,
+ probe('e')
+ )
+ );
+ expect(spansOf(markup)).toEqual(['a:false', 'b:false', 'c:true', 'd:true', 'e:true']);
+ });
+
+ test('renders an optional group heading above the list', () => {
+ const markup = render(
+ createElement(SettingList, { title: 'Codex', description: 'Group hint' }, probe('a'))
+ );
+ expect(markup).toContain(' {
+ test('toggle rows label the switch and describe it with the hint', () => {
+ const markup = render(
+ createElement(ToggleSetting, {
+ fieldId: 'debug',
+ label: 'Debug',
+ description: 'Verbose logs',
+ checked: true,
+ onChange: noop,
+ })
+ );
+ expect(markup).toContain('id="cfg-field-debug"');
+ const input = markup.match(/ ]*type="checkbox"[^>]*>/)?.[0] ?? '';
+ expect(input).toContain('checked=""');
+ const id = attr(input, 'id');
+ expect(id).toBeTruthy();
+ expect(markup).toContain(`for="${id}"`);
+ expect(attr(input, 'aria-describedby')).toBe(`${id}-hint`);
+ expect(markup).toContain(`id="${id}-hint"`);
+ });
+
+ test('text rows put the error before the hint and flag the input invalid', () => {
+ const markup = render(
+ createElement(TextSetting, {
+ fieldId: 'port',
+ label: 'Port',
+ description: 'Listen port',
+ error: 'Invalid port',
+ type: 'number',
+ value: '',
+ onChange: noop,
+ disabled: true,
+ })
+ );
+ const input = markup.match(/ ]*>/)?.[0] ?? '';
+ const id = attr(input, 'id');
+ expect(markup).toContain(`for="${id}"`);
+ expect(attr(input, 'aria-describedby')).toBe(`${id}-error ${id}-hint`);
+ expect(input).toContain('aria-invalid="true"');
+ expect(input).toContain('type="number"');
+ expect(input).toContain('disabled=""');
+ expect(input).not.toContain('min=');
+ expect(markup).toContain('Invalid port');
+ });
+
+ test('adornments render inside the control without replacing the value', () => {
+ const markup = render(
+ createElement(TextSetting, {
+ fieldId: 'streamingKeepaliveSeconds',
+ label: 'Keepalive',
+ value: '0',
+ adornment: 'Disabled',
+ onChange: noop,
+ })
+ );
+ expect(markup).toContain('value="0"');
+ expect(markup).toContain('Disabled');
+ expect(markup).not.toContain('aria-describedby');
+ });
+
+ test('select rows label the trigger button by id and by aria-labelledby', () => {
+ const markup = render(
+ createElement(SelectSetting, {
+ fieldId: 'routingStrategy',
+ label: 'Strategy',
+ value: 'a',
+ options: [
+ { value: 'a', label: 'Alpha' },
+ { value: 'b', label: 'Beta' },
+ ],
+ onChange: noop,
+ })
+ );
+ const button = markup.match(/]*aria-haspopup="listbox"[^>]*>/)?.[0] ?? '';
+ const id = attr(button, 'id');
+ expect(markup).toContain(`for="${id}"`);
+ const labelId = attr(button, 'aria-labelledby');
+ expect(labelId).toContain('routingStrategy-label');
+ expect(markup).toContain(`id="${labelId}"`);
+ expect(markup).toContain('Alpha');
+ });
+
+ test('block rows wrap the editor in a named group and hand describedBy to it', () => {
+ let received: { describedBy?: string; invalid: boolean } | undefined;
+ const markup = render(
+ createElement(BlockSetting, {
+ fieldId: 'trustedProxies',
+ label: 'Trusted proxies',
+ description: 'CIDR list',
+ error: 'Bad CIDR',
+ children: (a11y: { describedBy?: string; invalid: boolean }) => {
+ received = a11y;
+ return createElement('textarea', { 'aria-describedby': a11y.describedBy });
+ },
+ })
+ );
+ const group = markup.match(/]*role="group"[^>]*>/)?.[0] ?? '';
+ const labelId = attr(group, 'aria-labelledby') ?? '';
+ expect(labelId).toContain('trustedProxies-label');
+ expect(markup).toContain(`id="${labelId}"`);
+ expect(group).toContain('aria-invalid="true"');
+ expect(received?.invalid).toBe(true);
+ const ids = received?.describedBy?.split(' ') ?? [];
+ expect(ids).toHaveLength(2);
+ for (const id of ids) expect(markup).toContain(`id="${id}"`);
+ expect(attr(group, 'aria-describedby')).toBe(received?.describedBy);
+ });
+});
diff --git a/web/tests/configUiState.test.ts b/web/tests/configUiState.test.ts
index 9db5b366bb4..e0cbfb5ec74 100644
--- a/web/tests/configUiState.test.ts
+++ b/web/tests/configUiState.test.ts
@@ -1,4 +1,16 @@
import { describe, expect, test } from 'bun:test';
+import {
+ COMMON_FIELD_IDS,
+ CONFIG_SECTION_IDS,
+ CONFIG_TAB_IDS,
+ FIELD_VALUE_KEYS,
+ SECTION_INDEX_LABELS,
+} from '@/features/config/constants';
+import {
+ CONFIG_FIELD_SEARCH_INDEX,
+ findConfigFieldById,
+ searchConfigFields,
+} from '@/features/config/searchIndex';
import {
buildHeaderMeta,
countSectionErrors,
@@ -10,6 +22,7 @@ import {
type ConfigStatusInput,
} from '@/features/config/uiState';
import type { VisualConfigValidationErrors } from '@/types/visualConfig';
+import { LANGUAGE_ORDER } from '@/utils/constants';
const statusInput = (overrides: Partial
= {}): ConfigStatusInput => ({
disconnected: false,
@@ -50,8 +63,8 @@ describe('resolveStatus', () => {
expect(status.tone).toBe('error');
});
- test('every status resolves label keys that exist in all four locales', async () => {
- const locales = ['en', 'zh-CN', 'zh-TW', 'ru'];
+ test('every status resolves label keys that exist in all supported locales', async () => {
+ const locales = LANGUAGE_ORDER;
const inputs: Partial[] = [
{ disconnected: true },
{ loading: true },
@@ -93,7 +106,7 @@ describe('countSectionErrors', () => {
expect(counts.network).toBe(1);
expect(counts.streaming).toBe(1);
expect(counts.logging).toBe(0);
- expect(counts.quota).toBe(0);
+ expect(counts).not.toHaveProperty('quota');
expect(counts.advanced).toBe(0);
expect(counts.payload).toBe(0);
// port 由常用 tab 渲染,同一错误在两个 tab 都要可见
@@ -143,9 +156,10 @@ describe('resolveDirtyTabs', () => {
expect(tabs.has('connectivity')).toBe(true);
expect(tabs.size).toBe(2);
- const quotaTabs = resolveDirtyTabs(new Set(['quotaSwitchProject']));
- expect(quotaTabs.has('common')).toBe(true);
- expect(quotaTabs.has('quota')).toBe(true);
+ expect([...resolveDirtyTabs(new Set(['quotaAntigravityCredits']))]).toEqual(['advanced']);
+ expect(resolveDirtyTabs(new Set(['quotaSwitchProject', 'quotaSwitchPreviewModel'])).size).toBe(
+ 0
+ );
});
test('unknown keys are ignored instead of crashing', () => {
@@ -154,6 +168,72 @@ describe('resolveDirtyTabs', () => {
});
});
+describe('Antigravity credits UI and search', () => {
+ test('removes the quota tab and keeps section numbering contiguous', () => {
+ expect(CONFIG_TAB_IDS).not.toContain('quota');
+ expect(CONFIG_SECTION_IDS.map((id) => SECTION_INDEX_LABELS[id])).toEqual([
+ '01',
+ '02',
+ '03',
+ '04',
+ '05',
+ '06',
+ ]);
+ expect(CONFIG_FIELD_SEARCH_INDEX.some((entry) => String(entry.sectionId) === 'quota')).toBe(
+ false
+ );
+ for (const field of ['quotaSwitchProject', 'quotaSwitchPreviewModel']) {
+ expect(findConfigFieldById(field)).toBeUndefined();
+ expect(FIELD_VALUE_KEYS).not.toHaveProperty(field);
+ expect(COMMON_FIELD_IDS).not.toContain(field);
+ }
+ for (const query of ['switch-project', 'switch-preview-model', 'quota-exceeded']) {
+ expect(searchConfigFields(query, (key) => key)).toEqual([]);
+ }
+ });
+
+ test('credits search targets Advanced in every locale', async () => {
+ const entry = findConfigFieldById('quotaAntigravityCredits');
+ expect(entry?.sectionId).toBe('advanced');
+ expect(entry?.labelKey).toBe('config_management.visual.sections.advanced.antigravity_credits');
+ for (const locale of LANGUAGE_ORDER) {
+ const json = await Bun.file(`src/i18n/locales/${locale}.json`).json();
+ const sections = json.config_management.visual.sections;
+ expect(sections).not.toHaveProperty('quota');
+ expect(typeof sections.advanced.antigravity_credits).toBe('string');
+ const translate = (key: string): string =>
+ key === entry?.labelKey ? sections.advanced.antigravity_credits : key;
+ for (const query of [sections.advanced.antigravity_credits, 'antigravity-credits']) {
+ expect(searchConfigFields(query, translate)).toContainEqual(entry);
+ }
+ }
+ });
+
+ test('renders credits inside the Advanced Antigravity group, not common', async () => {
+ const root = 'src/features/config';
+ const advanced = await Bun.file(`${root}/components/sections/SectionAdvanced.tsx`).text();
+ const group = advanced.slice(
+ advanced.indexOf("label={t('config_management.visual.sections.advanced.antigravity_title')}"),
+ advanced.indexOf("label={t('config_management.visual.sections.advanced.devin_title')}")
+ );
+ expect(group).toContain('fieldId="quotaAntigravityCredits"');
+ expect(group).toContain('checked={values.quotaAntigravityCredits}');
+ expect(group).toContain(
+ 'onChange={(quotaAntigravityCredits) => onChange({ quotaAntigravityCredits })}'
+ );
+ expect(group).toContain('config_management.visual.sections.advanced.antigravity_credits');
+ for (const file of [
+ 'components/sections/SectionCommon.tsx',
+ 'components/fields/sharedFields.tsx',
+ 'ConfigPage.tsx',
+ ]) {
+ const source = await Bun.file(`${root}/${file}`).text();
+ expect(source).not.toMatch(/QuotaSwitch|quotaSwitch|SectionQuota|case 'quota'/);
+ }
+ expect(await Bun.file(`${root}/components/sections/SectionQuota.tsx`).exists()).toBe(false);
+ });
+});
+
describe('buildHeaderMeta', () => {
const base = {
fieldCount: 58,
@@ -215,6 +295,7 @@ describe('localStorage readers', () => {
});
test('readSavedSection falls back to common on stale values', () => {
+ expect(readSavedSection('quota')).toBe('common');
expect(readSavedSection('payload')).toBe('payload');
expect(readSavedSection('common')).toBe('common');
expect(readSavedSection('server')).toBe('common'); // 历史分区 id 不再存在
diff --git a/web/tests/devinOAuthUi.test.ts b/web/tests/devinOAuthUi.test.ts
index b724e9f88d1..accdb93d8f0 100644
--- a/web/tests/devinOAuthUi.test.ts
+++ b/web/tests/devinOAuthUi.test.ts
@@ -4,8 +4,11 @@ import { renderToStaticMarkup } from 'react-dom/server';
import { MemoryRouter } from 'react-router-dom';
import { I18nextProvider } from 'react-i18next';
import { createInstance } from 'i18next';
-import { OAuthPage } from '@/pages/OAuthPage';
-import { validateDevinCallback } from '@/pages/devinOAuth';
+import { OAuthPage } from '@/features/oauth/OAuthPage';
+import { OAuthFlowDialog } from '@/features/oauth/components/OAuthFlowDialog';
+import type { ProviderFlowState } from '@/features/oauth/hooks/useOAuthFlows';
+import { OAUTH_PROVIDERS, supportsManualCallback } from '@/features/oauth/providers';
+import { validateDevinCallback } from '@/features/oauth/devinOAuth';
import en from '@/i18n/locales/en.json';
import zhCN from '@/i18n/locales/zh-CN.json';
import zhTW from '@/i18n/locales/zh-TW.json';
@@ -15,19 +18,60 @@ const i18n = createInstance();
await i18n.init({ lng: 'en', resources: { en: { translation: en } } });
describe('Devin OAuth login UI', () => {
- test('renders a built-in login card with version and expiry guidance', () => {
- const markup = renderToStaticMarkup(
+ test('renders a gallery tile and a dialog with expiry guidance', () => {
+ const page = renderToStaticMarkup(
createElement(
I18nextProvider,
{ i18n },
createElement(MemoryRouter, null, createElement(OAuthPage))
)
);
- expect(markup).toContain('Devin');
- expect(markup).toContain('Connect');
- expect(markup).toContain('browser sign-in');
- expect(markup).toContain('5 minutes');
- expect(markup).not.toContain('auth_login.devin_');
+ expect(page).toContain('Devin');
+ expect(page).not.toContain('auth_login.');
+
+ const devin = OAUTH_PROVIDERS.find((provider) => provider.id === 'devin');
+ expect(devin && supportsManualCallback(devin)).toBe(true);
+ const renderDialog = (state: ProviderFlowState) =>
+ renderToStaticMarkup(
+ createElement(
+ I18nextProvider,
+ { i18n },
+ createElement(OAuthFlowDialog, {
+ open: true,
+ providerId: 'devin',
+ heading: { title: i18n.t(devin!.titleKey), caption: 'Browser sign-in', icon: '' },
+ state,
+ text: (suffix: string) => i18n.t(`auth_login.devin_${suffix}`),
+ supportsCallback: true,
+ onStart: () => {},
+ onCancel: () => {},
+ onCallbackChange: () => {},
+ onCallbackSubmit: () => {},
+ onViewAuthFiles: () => {},
+ onClose: () => {},
+ })
+ )
+ );
+
+ const idle = renderDialog({});
+ expect(idle).toContain('Devin');
+ expect(idle).toContain(en.auth_login.devin_oauth_button);
+ expect(idle).toContain(en.auth_login.devin_oauth_hint);
+ expect(idle).toContain('5 minutes');
+ expect(idle).not.toContain('auth_login.devin_');
+
+ // 服务端会话还挂着(网络失败停了轮询):必须先取消,回调输入锁定
+ const stalled = renderDialog({
+ status: 'error',
+ error: 'network',
+ url: 'https://devin.example/authorize',
+ state: 'st',
+ });
+ expect(stalled).toContain(en.auth_login.devin_oauth_retry_hint);
+ expect(stalled).toContain(en.auth_login.devin_oauth_cancel);
+ expect(stalled).not.toContain(en.auth_login.restart_login);
+ expect(stalled).toMatch(/ ]*disabled/);
+ expect(stalled).toContain('/devin/callback');
});
test('supplies every Devin label and hint in all four languages', () => {
@@ -37,7 +81,7 @@ describe('Devin OAuth login UI', () => {
for (const key of keys) {
expect((locale.auth_login as Record)[key]?.trim()).toBeTruthy();
}
- expect(locale.auth_login.devin_oauth_hint).toMatch(/\S/);
+ expect(locale.auth_login.devin_oauth_hint).toMatch(/5|五|пят/);
expect(locale.auth_login.devin_callback_hint).toContain('/devin/callback');
}
});
diff --git a/web/tests/fixtures/visualConfig-v8.yaml b/web/tests/fixtures/visualConfig-v8.yaml
index 6107bc8f740..4a2909c2683 100644
--- a/web/tests/fixtures/visualConfig-v8.yaml
+++ b/web/tests/fixtures/visualConfig-v8.yaml
@@ -61,9 +61,6 @@ oauth:
sensitive-words: [fixture-word]
devin:
sensitive-words: [fixture-devin]
-quota-exceeded:
- switch-project: false
- switch-preview-model: false
multimedia:
disable-image-generation: false
gpt-image-2-base-model: fixture-base
diff --git a/web/tests/kimiOAuth.test.ts b/web/tests/kimiOAuth.test.ts
index ec875846e17..9811acae580 100644
--- a/web/tests/kimiOAuth.test.ts
+++ b/web/tests/kimiOAuth.test.ts
@@ -2,7 +2,8 @@ import { describe, expect, spyOn, test } from 'bun:test';
import { readFileSync } from 'node:fs';
import { apiClient } from '@/services/api/client';
import { oauthApi } from '@/services/api/oauth';
-import { createOAuthAttempts } from '@/pages/oauthAttempts';
+import { createOAuthAttempts } from '@/features/oauth/oauthAttempts';
+import { isSponsor, OAUTH_PROVIDERS } from '@/features/oauth/providers';
describe('Kimi regional login', () => {
test('uses separate provider parameters and preserves cancellation', async () => {
@@ -37,11 +38,12 @@ describe('Kimi regional login', () => {
}
});
- test('renders both regional providers without affiliate links', () => {
- const source = readFileSync('src/pages/OAuthPage.tsx', 'utf8');
- expect(source).toContain("id: 'kimi-ai'");
- expect(source).toContain("id: 'kimi'");
- expect(source).not.toContain('AFFILIATE_URL');
+ test('offers both regional providers without affiliate links', () => {
+ const kimi = OAUTH_PROVIDERS.find((provider) => provider.id === 'kimi');
+ const kimiAi = OAUTH_PROVIDERS.find((provider) => provider.id === 'kimi-ai');
+ expect(kimi).toMatchObject({ flow: 'device', domain: 'kimi.com' });
+ expect(kimiAi).toMatchObject({ flow: 'device', domain: 'kimi.ai' });
+ expect(OAUTH_PROVIDERS.filter(isSponsor)).toEqual([]);
});
for (const locale of ['en', 'zh-CN', 'zh-TW', 'ru']) {
@@ -53,9 +55,9 @@ describe('Kimi regional login', () => {
if (key.startsWith('kimi_ai_') || key === 'kimi_sign_up_button') continue;
expect(messages[key.replace('kimi_', 'kimi_ai_')]).toBeTruthy();
}
- expect(messages.kimi_oauth_hint).toContain('kimi.com');
- expect(messages.kimi_ai_oauth_hint).toContain('kimi.ai');
- expect(messages.kimi_ai_oauth_hint.length).toBeGreaterThan(10);
+ expect(messages.kimi_oauth_title).toBeTruthy();
+ expect(messages.kimi_ai_oauth_title).toBeTruthy();
+ expect(messages.kimi_ai_oauth_title).not.toBe(messages.kimi_oauth_title);
});
}
});
diff --git a/web/tests/koreanLocale.test.ts b/web/tests/koreanLocale.test.ts
new file mode 100644
index 00000000000..f4830807d77
--- /dev/null
+++ b/web/tests/koreanLocale.test.ts
@@ -0,0 +1,32 @@
+import { describe, expect, test } from 'bun:test';
+
+const flattenLeaves = (value: unknown, prefix = ''): Record => {
+ if (!value || typeof value !== 'object' || Array.isArray(value)) {
+ return prefix ? { [prefix]: String(value ?? '') } : {};
+ }
+
+ return Object.entries(value).reduce>((leaves, [key, child]) => {
+ const path = prefix ? `${prefix}.${key}` : key;
+ return { ...leaves, ...flattenLeaves(child, path) };
+ }, {});
+};
+
+const interpolationTokens = (value: string): string[] => value.match(/\{\{[^}]+\}\}/g) ?? [];
+
+describe('Korean locale', () => {
+ test('covers every current English key with matching interpolation tokens', async () => {
+ const english = flattenLeaves(await Bun.file('src/i18n/locales/en.json').json());
+ const korean = flattenLeaves(await Bun.file('src/i18n/locales/ko.json').json());
+ const missing = Object.keys(english).filter((key) => !(key in korean));
+ const mismatches = Object.keys(english)
+ .filter((key) => key in korean)
+ .filter(
+ (key) =>
+ interpolationTokens(english[key]).sort().join('|') !==
+ interpolationTokens(korean[key]).sort().join('|')
+ );
+
+ expect(missing).toEqual([]);
+ expect(mismatches).toEqual([]);
+ });
+});
diff --git a/web/tests/metaOAuthProvider.test.ts b/web/tests/metaOAuthProvider.test.ts
index 7c9f42ea9a6..817e1d996b9 100644
--- a/web/tests/metaOAuthProvider.test.ts
+++ b/web/tests/metaOAuthProvider.test.ts
@@ -1,5 +1,16 @@
import { describe, expect, spyOn, test } from 'bun:test';
import { readFileSync } from 'node:fs';
+import { createElement } from 'react';
+import { renderToStaticMarkup } from 'react-dom/server';
+import { I18nextProvider } from 'react-i18next';
+import { createInstance } from 'i18next';
+import en from '@/i18n/locales/en.json';
+import { OAuthFlowDialog } from '@/features/oauth/components/OAuthFlowDialog';
+import {
+ CALLBACK_SUPPORTED,
+ OAUTH_PROVIDERS,
+ supportsManualCallback,
+} from '@/features/oauth/providers';
import {
getAuthFileIcon,
OAUTH_PROVIDER_PRESETS,
@@ -14,6 +25,9 @@ import { oauthApi, type BuiltInOAuthProvider } from '@/services/api/oauth';
import { classifyModels } from '@/utils/models';
import { normalizeOAuthProviderKey } from '@/utils/providerKeys';
+const i18n = createInstance();
+await i18n.init({ lng: 'en', resources: { en: { translation: en } } });
+
describe('Muse (Meta) provider and device OAuth', () => {
test('uses the backend meta device endpoint and preserves the device code', async () => {
const provider: BuiltInOAuthProvider = 'meta';
@@ -63,21 +77,46 @@ describe('Muse (Meta) provider and device OAuth', () => {
});
test('registers device-code UI but not a manual OAuth callback', () => {
- const source = readFileSync('src/pages/OAuthPage.tsx', 'utf8');
- expect(source).toContain("id: 'meta'");
- expect(source).toContain('userCode: res.user_code');
- expect(source).toContain("t('auth_login.device_code_copy')");
- const callbackProviders = source.match(
- /const CALLBACK_SUPPORTED = new Set\(([^;]+)\);/
+ const meta = OAUTH_PROVIDERS.find((provider) => provider.id === 'meta');
+ expect(meta).toMatchObject({ flow: 'device', label: 'Muse (Meta)' });
+ expect(CALLBACK_SUPPORTED.has('meta')).toBe(false);
+ expect(meta && supportsManualCallback(meta)).toBe(false);
+ expect(readFileSync('src/features/oauth/hooks/useOAuthFlows.ts', 'utf8')).toContain(
+ 'userCode: res.user_code'
+ );
+
+ // 设备码步骤真实渲染:码本身 + 复制按钮,且没有回调步骤
+ const markup = renderToStaticMarkup(
+ createElement(
+ I18nextProvider,
+ { i18n },
+ createElement(OAuthFlowDialog, {
+ open: true,
+ providerId: 'meta',
+ heading: { title: en.auth_login.meta_oauth_title, caption: 'Device code', icon: '' },
+ state: { status: 'waiting', url: 'https://meta.example/device', userCode: 'WDJB-MJHT' },
+ text: (suffix: string) => i18n.t(`auth_login.meta_${suffix}`),
+ supportsCallback: false,
+ onStart: () => {},
+ onCancel: () => {},
+ onCallbackChange: () => {},
+ onCallbackSubmit: () => {},
+ onViewAuthFiles: () => {},
+ onClose: () => {},
+ })
+ )
);
- expect(callbackProviders?.[1]).not.toContain("'meta'");
+ expect(markup).toContain('WDJB-MJHT');
+ expect(markup).toContain(en.auth_login.device_code_copy);
+ expect(markup).toContain(en.auth_login.step_enter_device_code);
+ expect(markup).not.toContain(en.auth_login.oauth_callback_label);
+ expect(markup).not.toContain('auth_login.');
for (const locale of ['en', 'zh-CN', 'zh-TW', 'ru']) {
const translations = JSON.parse(readFileSync(`src/i18n/locales/${locale}.json`, 'utf8'));
for (const suffix of [
'oauth_title',
'oauth_button',
'oauth_hint',
- 'oauth_url_label',
'open_link',
'copy_link',
'oauth_status_waiting',
diff --git a/web/tests/oauthAttempts.test.ts b/web/tests/oauthAttempts.test.ts
index 7e0c652ea82..ccf589b11de 100644
--- a/web/tests/oauthAttempts.test.ts
+++ b/web/tests/oauthAttempts.test.ts
@@ -1,5 +1,5 @@
import { describe, expect, test } from 'bun:test';
-import { createOAuthAttempts } from '../src/pages/oauthAttempts';
+import { createOAuthAttempts } from '@/features/oauth/oauthAttempts';
function deferred() {
let resolve!: (value: T) => void;
@@ -210,6 +210,65 @@ describe('OAuth attempt lifecycle', () => {
}
});
+ test('a failed status request ends polling and the same attempt can resume it', async () => {
+ const { attempts, tasks, tick } = setup();
+ const responses: Array<() => Promise> = [
+ async () => {
+ throw new Error('Request failed with status code 502');
+ },
+ async () => 'wait',
+ async () => 'ok',
+ ];
+ const results: string[] = [];
+ let errors = 0;
+ const attempt = attempts.begin('codex');
+ const poll = () =>
+ attempt.poll(
+ () => responses.shift()!(),
+ (result) => {
+ results.push(result);
+ return result === 'wait';
+ },
+ () => errors++,
+ 3000
+ );
+ expect(attempt.isPolling()).toBe(false);
+ poll();
+ expect(attempt.isPolling()).toBe(true);
+ tick();
+ await flush();
+ expect(errors).toBe(1);
+ expect(attempt.isPolling()).toBe(false);
+ expect(tasks.size).toBe(0);
+
+ // An accepted callback resumes polling on the attempt that still owns the login.
+ poll();
+ expect(attempt.isPolling()).toBe(true);
+ tick();
+ await flush();
+ expect(attempt.isPolling()).toBe(true);
+ tick();
+ await flush();
+ expect(results).toEqual(['wait', 'ok']);
+ expect(attempt.isPolling()).toBe(false);
+ expect(tasks.size).toBe(0);
+ });
+
+ test('an invalidated attempt never reports an active poll', () => {
+ const { attempts } = setup();
+ const old = attempts.begin('codex');
+ old.poll(
+ async () => 'wait',
+ () => true,
+ () => {},
+ 3000
+ );
+ expect(old.isPolling()).toBe(true);
+ const next = attempts.begin('codex');
+ expect(old.isPolling()).toBe(false);
+ expect(next.isPolling()).toBe(false);
+ });
+
test('terminal results and request errors do not schedule another poll', async () => {
for (const fail of [false, true]) {
const { attempts, tasks, tick } = setup();
diff --git a/web/tests/oauthPage.test.ts b/web/tests/oauthPage.test.ts
new file mode 100644
index 00000000000..2c08b621dd2
--- /dev/null
+++ b/web/tests/oauthPage.test.ts
@@ -0,0 +1,163 @@
+import { describe, expect, test } from 'bun:test';
+import { createElement } from 'react';
+import { renderToStaticMarkup } from 'react-dom/server';
+import { MemoryRouter } from 'react-router-dom';
+import { I18nextProvider } from 'react-i18next';
+import { createInstance } from 'i18next';
+import en from '@/i18n/locales/en.json';
+import zhCN from '@/i18n/locales/zh-CN.json';
+import zhTW from '@/i18n/locales/zh-TW.json';
+import ru from '@/i18n/locales/ru.json';
+import ko from '@/i18n/locales/ko.json';
+import vi from '@/i18n/locales/vi.json';
+import { OAuthPage } from '@/features/oauth/OAuthPage';
+import { resolveCallbackUrl, XAI_CALLBACK_URL } from '@/features/oauth/callbackUrl';
+import { resolveFlowView, splitAuthUrl } from '@/features/oauth/flowView';
+import { buildPluginOAuthProviderCards, OAUTH_PROVIDERS } from '@/features/oauth/providers';
+import {
+ KIMI_CHINESE_AFFILIATE_URL,
+ KIMI_INTERNATIONAL_AFFILIATE_URL,
+} from '@/features/providers/kimi';
+import type { PluginListEntry } from '@/types';
+
+describe('OAuth dialog view resolution', () => {
+ test('maps every flow state to exactly one view', () => {
+ expect(resolveFlowView({})).toBe('idle');
+ // 正在生成链接:已进入步骤视图(骨架占位)
+ expect(resolveFlowView({ status: 'waiting' })).toBe('flow');
+ expect(resolveFlowView({ status: 'waiting', url: 'https://a.test' })).toBe('flow');
+ expect(resolveFlowView({ status: 'success' })).toBe('success');
+ // 轮询网络失败但链接仍在:留在步骤视图,手动回调仍可恢复
+ expect(resolveFlowView({ status: 'error', url: 'https://a.test' })).toBe('flow');
+ // 链接已失效(启动失败 / Devin 终态失败):失败视图
+ expect(resolveFlowView({ status: 'error', error: 'denied' })).toBe('failed');
+ });
+
+ test('highlights the host of the authorization link', () => {
+ expect(splitAuthUrl('https://auth.openai.com/oauth/authorize?x=1')).toEqual({
+ host: 'auth.openai.com',
+ rest: '/oauth/authorize?x=1',
+ });
+ expect(splitAuthUrl('http://127.0.0.1:8317/cb')).toEqual({
+ host: '127.0.0.1:8317',
+ rest: '/cb',
+ });
+ expect(splitAuthUrl('not a url')).toEqual({ host: '', rest: 'not a url' });
+ });
+});
+
+describe('manual callback input', () => {
+ test('submits non-xAI input verbatim (trimmed)', () => {
+ expect(resolveCallbackUrl('codex', ' http://localhost:1455/auth/callback?code=c ')).toBe(
+ 'http://localhost:1455/auth/callback?code=c'
+ );
+ });
+
+ test('passes absolute xAI callback URLs through', () => {
+ const url = 'http://127.0.0.1:56121/callback?code=c&state=s';
+ expect(resolveCallbackUrl('xai', url, 'other')).toBe(url);
+ });
+
+ test('builds the xAI loopback URL from a displayed code and the attempt state', () => {
+ const built = new URL(resolveCallbackUrl('xai', 'abc123', 'st-1')!);
+ expect(`${built.origin}${built.pathname}`).toBe(XAI_CALLBACK_URL);
+ expect(built.searchParams.get('code')).toBe('abc123');
+ expect(built.searchParams.get('state')).toBe('st-1');
+ expect(new URL(resolveCallbackUrl('xai', 'code: xyz', 'st-1')!).searchParams.get('code')).toBe(
+ 'xyz'
+ );
+ });
+
+ test('prefers the pasted query state and keeps provider errors', () => {
+ const built = new URL(
+ resolveCallbackUrl('xai', '?error=access_denied&error_description=no&state=pasted', 'st')!
+ );
+ expect(built.searchParams.get('state')).toBe('pasted');
+ expect(built.searchParams.get('error')).toBe('access_denied');
+ expect(built.searchParams.get('error_description')).toBe('no');
+ });
+
+ test('refuses to invent a state for xAI', () => {
+ expect(resolveCallbackUrl('xai', 'abc123')).toBeNull();
+ expect(resolveCallbackUrl('xai', 'code=abc123')).toBeNull();
+ expect(resolveCallbackUrl('xai', ' ', 'st')).toBeNull();
+ });
+});
+
+const plugin = (overrides: Partial): PluginListEntry => ({
+ id: 'example',
+ path: '/plugins/example',
+ configured: true,
+ registered: true,
+ enabled: true,
+ effectiveEnabled: true,
+ supportsOAuth: true,
+ oauthProvider: 'example',
+ supportsQuota: false,
+ logo: '',
+ configFields: [],
+ menus: [],
+ metadata: null,
+ ...overrides,
+});
+
+describe('plugin OAuth tiles', () => {
+ test('appends enabled OAuth plugins once and never shadows built-in providers', () => {
+ const cards = buildPluginOAuthProviderCards(
+ [
+ plugin({ id: 'a', oauthProvider: 'acme' }),
+ plugin({ id: 'a-dup', oauthProvider: 'acme' }),
+ plugin({ id: 'b', oauthProvider: 'codex' }),
+ plugin({ id: 'c', oauthProvider: 'off', effectiveEnabled: false }),
+ plugin({ id: 'd', oauthProvider: 'nooauth', supportsOAuth: false }),
+ plugin({ id: 'e', oauthProvider: undefined }),
+ ],
+ 'http://127.0.0.1:8317'
+ );
+ expect(cards.map((card) => [card.id, card.title])).toEqual([['acme', 'a']]);
+ });
+});
+
+describe('OAuth provider gallery', () => {
+ const locales = { en, 'zh-CN': zhCN, 'zh-TW': zhTW, ru, ko, vi } as const;
+
+ for (const [lng, translation] of Object.entries(locales)) {
+ test(`renders every provider tile without raw keys (${lng})`, async () => {
+ const i18n = createInstance();
+ await i18n.init({ lng, resources: { [lng]: { translation } } });
+ const markup = renderToStaticMarkup(
+ createElement(
+ I18nextProvider,
+ { i18n },
+ createElement(MemoryRouter, null, createElement(OAuthPage))
+ )
+ );
+ for (const provider of OAUTH_PROVIDERS) {
+ const label =
+ typeof provider.label === 'string' ? provider.label : i18n.t(provider.label.key);
+ expect(markup).toContain(label);
+ }
+ expect(markup).toContain('Vertex AI');
+ expect(markup).not.toMatch(/auth_login\.|vertex_import\./);
+ // 每个磁贴都是打开对话框的按钮
+ expect(markup.match(/aria-haspopup="dialog"/g)?.length).toBe(OAUTH_PROVIDERS.length + 1);
+ });
+ }
+
+ test('keeps the fork free of affiliate links', async () => {
+ const i18n = createInstance();
+ await i18n.init({ lng: 'en', resources: { en: { translation: en } } });
+ const markup = renderToStaticMarkup(
+ createElement(
+ I18nextProvider,
+ { i18n },
+ createElement(MemoryRouter, null, createElement(OAuthPage))
+ )
+ );
+ for (const url of [KIMI_CHINESE_AFFILIATE_URL, KIMI_INTERNATIONAL_AFFILIATE_URL]) {
+ expect(markup).not.toContain(url.replace(/&/g, '&'));
+ }
+ expect(markup).toContain('kimi.com');
+ expect(markup).toContain('kimi.ai');
+ });
+});
diff --git a/web/tests/oauthRequestCancellation.test.ts b/web/tests/oauthRequestCancellation.test.ts
index 42ed963fdf2..2ed260faf1c 100644
--- a/web/tests/oauthRequestCancellation.test.ts
+++ b/web/tests/oauthRequestCancellation.test.ts
@@ -1,7 +1,7 @@
import { describe, expect, test } from 'bun:test';
import { AxiosError, type AxiosResponse } from 'axios';
import { apiClient } from '@/services/api/client';
-import { createOAuthAttempts } from '@/pages/oauthAttempts';
+import { createOAuthAttempts } from '@/features/oauth/oauthAttempts';
// Use the real Axios interceptor chain with a deferred transport response.
// Abandoned requests must not emit old server metadata or log out a new session.
diff --git a/web/tests/pluginLogo.test.ts b/web/tests/pluginLogo.test.ts
new file mode 100644
index 00000000000..b396319beb9
--- /dev/null
+++ b/web/tests/pluginLogo.test.ts
@@ -0,0 +1,54 @@
+import { describe, expect, test } from 'bun:test';
+import { getPluginLogo } from '../src/features/plugins/pluginLogo';
+import type { PluginListEntry, PluginStoreEntry } from '../src/types';
+
+const plugin = (overrides: Partial = {}) =>
+ ({ id: 'example', logo: '', metadata: null, ...overrides }) as PluginListEntry;
+const entry = (overrides: Partial = {}) =>
+ ({
+ id: 'example',
+ logo: 'https://example.com/store.png',
+ repository: 'owner/repo',
+ ...overrides,
+ }) as PluginStoreEntry;
+
+describe('management plugin logos', () => {
+ test('uses the store logo for unregistered plugins or missing runtime logos', () => {
+ expect(getPluginLogo(plugin({ registered: false }), [entry()])).toBe(entry().logo);
+ expect(getPluginLogo(plugin({ registered: true }), [entry()])).toBe(entry().logo);
+ });
+
+ test('prefers runtime logo, then metadata logo over store metadata', () => {
+ const metadata = {
+ name: '',
+ version: '',
+ author: '',
+ githubRepository: '',
+ logo: 'metadata.png',
+ configFields: [],
+ };
+ expect(getPluginLogo(plugin({ logo: 'runtime.png', metadata }), [entry()])).toBe('runtime.png');
+ expect(getPluginLogo(plugin({ logo: ' ', metadata }), [entry()])).toBe('metadata.png');
+ });
+
+ test('does not use unrelated or ambiguous registry entries', () => {
+ expect(getPluginLogo(plugin(), [entry({ id: 'other' })])).toBe('');
+ expect(getPluginLogo(plugin(), [entry(), entry({ repository: 'other/repo' })])).toBe('');
+ expect(getPluginLogo(plugin(), [])).toBe('');
+ });
+
+ test('matches repository metadata when multiple sources declare the same ID', () => {
+ const metadata = {
+ name: '',
+ version: '',
+ author: '',
+ githubRepository: 'https://github.com/owner/repo.git',
+ logo: '',
+ configFields: [],
+ };
+ expect(
+ getPluginLogo(plugin({ metadata }), [entry(), entry({ repository: 'other/repo' })])
+ ).toBe(entry().logo);
+ expect(getPluginLogo(plugin({ metadata }), [entry({ repository: 'other/repo' })])).toBe('');
+ });
+});
diff --git a/web/tests/pluginQuota.test.ts b/web/tests/pluginQuota.test.ts
new file mode 100644
index 00000000000..013715a4f60
--- /dev/null
+++ b/web/tests/pluginQuota.test.ts
@@ -0,0 +1,376 @@
+import { afterEach, beforeEach, describe, expect, spyOn, test } from 'bun:test';
+import type { Mock } from 'bun:test';
+import { createElement } from 'react';
+import { renderToStaticMarkup } from 'react-dom/server';
+import i18n from '@/i18n';
+import { normalizeAuthFilesResponse } from '@/services/api/authFiles';
+import { resolveAuthFileQuotaType } from '@/features/authFiles/logic';
+import { classifyQuotaFiles, resolveQuotaProviderType } from '@/features/quota/logic';
+import { QUOTA_ADAPTERS } from '@/features/quota/providers';
+import { PluginQuotaBody } from '@/features/quota/providers/plugin/PluginQuotaBody';
+import { QUOTA_CLASS_KEYS, bindQuotaClasses } from '@/features/quota/types';
+import type { PluginListEntry, PluginListResponse, PluginQuotaState } from '@/types';
+import { pluginsApi } from '@/services/api/plugins';
+import { getQuotaCacheKey } from '@/utils/quota/identity';
+import { apiClient } from '@/services/api/client';
+import {
+ BUILT_IN_QUOTA_PROVIDERS,
+ buildAntigravityQuotaGroups,
+ isPluginQuotaFile,
+} from '@/utils/quota';
+import { QUOTA_TAB_ORDER } from '@/features/quota/constants';
+import {
+ fetchPluginQuota,
+ normalizePluginQuotaSummary,
+ resetPluginQuotaRouteCache,
+ resolveQuotaPluginId,
+} from '@/features/quota/providers/plugin/data';
+
+const quotaPlugin = (overrides: Partial = {}): PluginListEntry => ({
+ id: 'kiro-quota',
+ path: '/plugins/kiro-quota',
+ configured: true,
+ registered: true,
+ enabled: true,
+ effectiveEnabled: true,
+ supportsOAuth: false,
+ supportsQuota: true,
+ quotaProvider: 'kiro',
+ logo: '',
+ configFields: [],
+ menus: [],
+ metadata: null,
+ ...overrides,
+});
+
+const pluginList = (plugins: PluginListEntry[]): PluginListResponse => ({
+ pluginsEnabled: true,
+ pluginsDir: 'plugins',
+ plugins,
+});
+
+const classes = bindQuotaClasses(
+ Object.fromEntries(QUOTA_CLASS_KEYS.map((key) => [key, key])),
+ 'test'
+);
+const renderQuota = (quota: PluginQuotaState) =>
+ renderToStaticMarkup(createElement(PluginQuotaBody, { quota, classes }));
+
+describe('generic plugin quota', () => {
+ let list: Mock;
+ beforeEach(() => {
+ resetPluginQuotaRouteCache();
+ list = spyOn(pluginsApi, 'list').mockResolvedValue(pluginList([quotaPlugin()]));
+ });
+ afterEach(() => {
+ list.mockRestore();
+ resetPluginQuotaRouteCache();
+ });
+
+ test('keeps built-in quota cards when a plugin also advertises quota', () => {
+ const builtIns = QUOTA_TAB_ORDER.filter((type) => type !== 'plugin');
+ expect([...BUILT_IN_QUOTA_PROVIDERS].sort()).toEqual([...builtIns].sort());
+ for (const type of builtIns) {
+ for (const capability of [
+ { quota_probe: { url: 'https://quota.example.test/usage' } },
+ { quota_provider: type },
+ {},
+ ]) {
+ const raw = {
+ name: `${type}.json`,
+ type,
+ supports_quota: true,
+ auth_index: '7',
+ ...capability,
+ };
+ const file = normalizeAuthFilesResponse({ files: [raw] }).files[0];
+ for (const candidate of [raw, file]) {
+ expect(isPluginQuotaFile(candidate)).toBe(false);
+ expect(resolveQuotaProviderType(candidate)).toBe(type);
+ expect(resolveAuthFileQuotaType(candidate, 'all')).toBe(type);
+ expect(resolveAuthFileQuotaType(candidate, type)).toBe(type);
+ expect(resolveAuthFileQuotaType(candidate, 'plugin')).toBeNull();
+ }
+ expect(getQuotaCacheKey(file)).toBe(
+ type === 'devin' ? `${type}.json${String.fromCharCode(0)}7` : `${type}.json`
+ );
+ expect(classifyQuotaFiles([file]).map((entry) => entry.type)).toEqual([type]);
+ }
+ }
+ });
+
+ test('routes advertised quotas for providers without a built-in card', async () => {
+ const post = spyOn(apiClient, 'post').mockResolvedValue({});
+ try {
+ for (const capability of [
+ { quota_probe: { url: 'https://quota.example.test/usage' } },
+ { quota_provider: 'kiro' },
+ ]) {
+ post.mockClear();
+ const raw = {
+ name: 'kiro.json',
+ type: 'kiro',
+ supports_quota: true,
+ auth_index: '7',
+ ...capability,
+ };
+ const file = normalizeAuthFilesResponse({ files: [raw] }).files[0];
+ for (const candidate of [raw, file]) {
+ expect(resolveQuotaProviderType(candidate)).toBe('plugin');
+ expect(resolveAuthFileQuotaType(candidate, 'all')).toBe('plugin');
+ expect(resolveAuthFileQuotaType(candidate, 'kiro')).toBe('plugin');
+ expect(resolveAuthFileQuotaType(candidate, 'plugin')).toBe('plugin');
+ expect(resolveAuthFileQuotaType(candidate, 'unrelated')).toBeNull();
+ expect(resolveAuthFileQuotaType(candidate, null)).toBeNull();
+ expect(classifyQuotaFiles([{ ...candidate, disabled: true }])).toEqual([]);
+ }
+ const [entry] = classifyQuotaFiles([file]);
+ const fetched = QUOTA_ADAPTERS[entry.type].fetchQuota(file, i18n.t);
+ if (capability.quota_provider) {
+ await fetched;
+ expect(post.mock.calls).toEqual([['/plugins/kiro-quota/quota', { auth_index: '7' }]]);
+ } else {
+ await expect(fetched).rejects.toThrow(i18n.t('plugin_quota.probe_unsupported'));
+ expect(post).not.toHaveBeenCalled();
+ }
+ }
+ for (const supportsQuota of [undefined, false]) {
+ const file = { name: 'kiro.json', type: 'kiro', supportsQuota };
+ expect(resolveQuotaProviderType(file)).toBeNull();
+ expect(resolveAuthFileQuotaType(file, 'all')).toBeNull();
+ }
+ } finally {
+ post.mockRestore();
+ }
+ });
+
+ test('renders an empty state only without usable summary, subscription or buckets', async () => {
+ const post = spyOn(apiClient, 'post');
+ try {
+ for (const payload of [
+ {
+ summary: [
+ { key: 'balance', label: 'Balance', value: 42, format: 'currency', currency: 'USD' },
+ ],
+ },
+ { summary: [{ key: 'balance', label: 'Balance', value: 0 }] },
+ { subscription: { plan: 'Pro' } },
+ { subscription: { tierName: 'Premium' } },
+ { subscription: { tierId: 'team' } },
+ {},
+ { subscription: { plan: ' ' }, summary: [{ key: '', label: 'Invalid', value: 42 }] },
+ ]) {
+ post.mockResolvedValue(payload);
+ const data = await fetchPluginQuota(
+ { name: 'quota.json', authIndex: '7', quotaProvider: 'kiro' },
+ i18n.t
+ );
+ const markup = renderQuota({ status: 'success', ...data });
+ const hasData =
+ data.summary.length > 0 || Object.values(data.subscription ?? {}).some(Boolean);
+ expect(markup.includes(i18n.t('plugin_quota.empty_data'))).toBe(!hasData);
+ for (const metric of data.summary) {
+ expect(markup).toContain('>Balance');
+ expect(markup).toContain(metric.value === 42 ? '$42.00' : '>0');
+ }
+ }
+ } finally {
+ post.mockRestore();
+ }
+ });
+
+ test('uses readable bucket labels without changing their distinct cache IDs', async () => {
+ const post = spyOn(apiClient, 'post').mockResolvedValue({
+ groups: [
+ {
+ displayName: 'Kiro credits',
+ buckets: [
+ { window: 'monthly', description: ' Base credits ', remainingFraction: 0.8 },
+ { window: 'monthly', description: 'Bonus credits', remainingFraction: 0.2 },
+ { window: 'daily', description: ' ', remainingFraction: 0.5 },
+ {
+ window: 'weekly',
+ displayName: 'Explicit label',
+ description: 'Details',
+ remainingFraction: 0,
+ },
+ ],
+ },
+ ],
+ });
+ try {
+ const data = await fetchPluginQuota(
+ { name: 'kiro.json', authIndex: '7', quotaProvider: 'kiro' },
+ i18n.t
+ );
+ const buckets = data.groups[0].buckets;
+ expect(buckets.find((bucket) => bucket.id === 'kiro-credits-monthly-1')?.label).toBe(
+ 'Base credits'
+ );
+ expect(buckets.find((bucket) => bucket.id === 'kiro-credits-monthly-2')?.label).toBe(
+ 'Bonus credits'
+ );
+ const markup = renderQuota({ status: 'success', ...data });
+ for (const label of ['Base credits', 'Bonus credits', 'daily', 'Explicit label']) {
+ expect(markup).toContain(`>${label}`);
+ }
+ expect(markup).not.toContain('kiro-credits-monthly-');
+ expect(markup).not.toContain(i18n.t('plugin_quota.empty_data'));
+ } finally {
+ post.mockRestore();
+ }
+ });
+
+ test('accepts capability-only declarative quota probes', () => {
+ expect(
+ isPluginQuotaFile({ name: 'kiro-a.json', supportsQuota: true, quotaProvider: 'kiro' })
+ ).toBe(true);
+ expect(isPluginQuotaFile({ name: 'kiro-a.json', supportsQuota: true })).toBe(true);
+ expect(getQuotaCacheKey({ name: 'kiro-a.json', supportsQuota: true, authIndex: '7' })).toBe(
+ 'kiro-a.json' + String.fromCharCode(0) + '7'
+ );
+ });
+
+ test('keeps only typed, finite summary metrics', () => {
+ expect(
+ normalizePluginQuotaSummary([
+ { key: 'credits_used', label: 'Credits used', value: 1740.28, unit: 'credits' },
+ { key: 'charged', label: 'Charged', value: 29.61, format: 'currency', currency: 'USD' },
+ { key: 'bad', label: 'Bad', value: Number.NaN },
+ { key: '', label: 'Missing key', value: 1 },
+ ])
+ ).toEqual([
+ {
+ key: 'credits_used',
+ label: 'Credits used',
+ value: 1740.28,
+ unit: 'credits',
+ format: undefined,
+ currency: undefined,
+ },
+ {
+ key: 'charged',
+ label: 'Charged',
+ value: 29.61,
+ unit: undefined,
+ format: 'currency',
+ currency: 'USD',
+ },
+ ]);
+ });
+
+ test('keeps buckets with the same window distinct when plugins omit bucket IDs', () => {
+ const groups = buildAntigravityQuotaGroups({
+ groups: [
+ {
+ displayName: 'Kiro credits',
+ buckets: [
+ { window: 'monthly', remainingFraction: 0.8 },
+ { window: 'monthly', remainingFraction: 0.2 },
+ ],
+ },
+ ],
+ });
+
+ expect(groups[0]?.buckets.map((bucket) => bucket.id)).toEqual([
+ 'kiro-credits-monthly-1',
+ 'kiro-credits-monthly-2',
+ ]);
+ });
+
+ test('reports probe-only quotas as unsupported without calling removed v0 routes', async () => {
+ const post = spyOn(apiClient, 'post').mockResolvedValue({});
+ try {
+ await expect(
+ fetchPluginQuota({ name: 'kiro-a.json', supportsQuota: true, authIndex: '7' }, i18n.t)
+ ).rejects.toThrow(i18n.t('plugin_quota.probe_unsupported'));
+ expect(post).not.toHaveBeenCalled();
+ expect(list).not.toHaveBeenCalled();
+ } finally {
+ post.mockRestore();
+ }
+ });
+
+ test('resolves the quota plugin like the backend first pass, then a sole provider', () => {
+ const plugins = [
+ quotaPlugin({ id: 'unregistered', quotaProvider: 'kiro', registered: false }),
+ quotaPlugin({ id: 'oauth-match', quotaProvider: 'other', oauthProvider: 'kiro' }),
+ quotaPlugin({ id: 'kiro', quotaProvider: 'other-2' }),
+ quotaPlugin({ id: 'quota-match', quotaProvider: 'kiro' }),
+ quotaPlugin({ id: 'no-quota', quotaProvider: 'kiro', supportsQuota: false }),
+ ];
+ expect(resolveQuotaPluginId(plugins, ' Kiro ')).toBe('quota-match');
+ expect(resolveQuotaPluginId(plugins.slice(0, 3), 'kiro')).toBe('kiro');
+ expect(resolveQuotaPluginId(plugins.slice(0, 2), 'kiro')).toBe('oauth-match');
+ expect(resolveQuotaPluginId(plugins, 'unknown')).toBeNull();
+ expect(resolveQuotaPluginId([quotaPlugin({ id: 'only', quotaProvider: 'x' })], 'y')).toBe(
+ 'only'
+ );
+ expect(resolveQuotaPluginId(plugins, '')).toBeNull();
+ });
+
+ test('shares the plugin list across credentials and reports a missing plugin', async () => {
+ const post = spyOn(apiClient, 'post').mockResolvedValue({});
+ try {
+ await Promise.all(
+ ['1', '2', '3'].map((authIndex) =>
+ fetchPluginQuota(
+ { name: `kiro-${authIndex}.json`, authIndex, quotaProvider: 'kiro' },
+ i18n.t
+ )
+ )
+ );
+ expect(list).toHaveBeenCalledTimes(1);
+ expect(post.mock.calls.map((call) => call[0])).toEqual(
+ Array(3).fill('/plugins/kiro-quota/quota')
+ );
+
+ resetPluginQuotaRouteCache();
+ list.mockResolvedValue(
+ pluginList([quotaPlugin({ id: 'a', quotaProvider: 'a' }), quotaPlugin({ id: 'b' })])
+ );
+ post.mockClear();
+ await expect(
+ fetchPluginQuota({ name: 'z.json', authIndex: '9', quotaProvider: 'zed' }, i18n.t)
+ ).rejects.toThrow(i18n.t('plugin_quota.plugin_not_found', { provider: 'zed' }));
+ expect(post).not.toHaveBeenCalled();
+ } finally {
+ post.mockRestore();
+ }
+ });
+
+ test('normalizes plugin quota capabilities from the plugin list', async () => {
+ list.mockRestore();
+ const get = spyOn(apiClient, 'get').mockResolvedValue({
+ plugins: [
+ { id: 'a', registered: true, supports_quota: true, quota_provider: ' Kiro ' },
+ { id: 'b', registered: true },
+ ],
+ });
+ try {
+ const { plugins } = await pluginsApi.list();
+ expect(
+ plugins.map(({ supportsQuota, quotaProvider }) => ({ supportsQuota, quotaProvider }))
+ ).toEqual([
+ { supportsQuota: true, quotaProvider: 'kiro' },
+ { supportsQuota: false, quotaProvider: undefined },
+ ]);
+ } finally {
+ get.mockRestore();
+ }
+ });
+
+ test('drops a failed plugin list so the next refresh retries', async () => {
+ const post = spyOn(apiClient, 'post').mockResolvedValue({});
+ try {
+ list.mockRejectedValueOnce(new Error('offline'));
+ const file = { name: 'kiro.json', authIndex: '7', quotaProvider: 'kiro' };
+ await expect(fetchPluginQuota(file, i18n.t)).rejects.toThrow('offline');
+ await fetchPluginQuota(file, i18n.t);
+ expect(list).toHaveBeenCalledTimes(2);
+ expect(post).toHaveBeenCalledTimes(1);
+ } finally {
+ post.mockRestore();
+ }
+ });
+});
diff --git a/web/tests/providerModelOptions.test.ts b/web/tests/providerModelOptions.test.ts
index a7bc96e63bd..ae0f78be43b 100644
--- a/web/tests/providerModelOptions.test.ts
+++ b/web/tests/providerModelOptions.test.ts
@@ -12,8 +12,9 @@ import { ModelAdvancedFields } from '@/features/providers/sheets/forms/ModelAdva
import type { ModelEntryInput, ProviderBrand } from '@/features/providers/types';
import type { ModelAlias } from '@/types';
-const i18n = createInstance();
-await i18n.init({ lng: 'en', resources: { en: { translation: {} } } });
+// Keep key-based assertions independent of other suites initializing the app's i18n.
+const translations = createInstance();
+await translations.init({ lng: 'cimode', resources: {}, react: { useSuspense: false } });
const draft = (model: ModelAlias): ModelEntryInput => ({
name: model.name,
@@ -181,7 +182,7 @@ describe('provider model options', () => {
renderToStaticMarkup(
createElement(
I18nextProvider,
- { i18n },
+ { i18n: translations },
createElement(ModelAdvancedFields, {
entry: { name: 'model', thinkingEnabled: enabled },
providerBrand: brand,
diff --git a/web/tests/providerTestModel.test.ts b/web/tests/providerTestModel.test.ts
new file mode 100644
index 00000000000..8d7814c7bf2
--- /dev/null
+++ b/web/tests/providerTestModel.test.ts
@@ -0,0 +1,135 @@
+import { afterEach, describe, expect, test } from 'bun:test';
+import { readFileSync } from 'node:fs';
+import { apiClient } from '../src/services/api/client';
+import { providersApi } from '../src/services/api/providers';
+import { normalizeProviderGroups } from '../src/services/api/transformers';
+import type { ProviderKeyConfig } from '../src/types';
+
+const originalGet = apiClient.get;
+const originalPut = apiClient.put;
+afterEach(() => {
+ apiClient.get = originalGet;
+ apiClient.put = originalPut;
+});
+
+function backend(groups: Record[] = [], family = 'openai-compatibility') {
+ let state = structuredClone(groups);
+ apiClient.get = (async () => ({
+ 'api-keys': { [family]: structuredClone(state) },
+ })) as typeof apiClient.get;
+ apiClient.put = (async (url: string, data: unknown) => {
+ expect(url).toBe(`/config/api-keys/${family}`);
+ state = structuredClone(data as Record[]);
+ }) as typeof apiClient.put;
+ return () => state;
+}
+
+const fixture = () => ({
+ name: 'fixture',
+ 'base-url': 'https://example.invalid',
+ keys: [{ 'api-key': 'fixture-key' }],
+ models: [{ name: 'first' }, { name: 'second' }],
+});
+
+describe('connectivity test models are not backend configuration', () => {
+ for (const testModel of ['', 'first', 'second']) {
+ test(`create ignores temporary model selection ${JSON.stringify(testModel)}`, async () => {
+ const state = backend();
+ const config = {
+ name: 'fixture',
+ baseUrl: 'https://example.invalid',
+ apiKeyEntries: [{ apiKey: 'fixture-key' }],
+ models: [{ name: 'first', testModel: 'obsolete' }, { name: 'second' }],
+ testModel,
+ };
+ await providersApi.createOpenAIProvider(config);
+ expect(state()).toEqual([fixture()]);
+ });
+
+ test(`edit ignores temporary model selection ${JSON.stringify(testModel)}`, async () => {
+ const state = backend([fixture()]);
+ const current = (await providersApi.getOpenAIProviders())[0];
+ const config = { ...current, testModel, priority: 2 };
+ await providersApi.updateOpenAIProvider(current.name, 0, config);
+ expect(state()).toEqual([{ ...fixture(), priority: 2 }]);
+ });
+ }
+
+ test('removes old raw fields without deleting opaque metadata or mutating snapshots', async () => {
+ const group = {
+ ...fixture(),
+ 'test-model': 'second',
+ headers: { 'test-model': 'keep-header' },
+ future: { 'test-model': 'keep-metadata' },
+ models: [{ name: 'first', 'test-model': 'obsolete', future: 'keep' }],
+ keys: [{ 'api-key': 'fixture-key', future: 'keep' }],
+ };
+ const state = backend([group]);
+ const current = (await providersApi.getOpenAIProviders())[0];
+ expect(current).not.toHaveProperty('testModel');
+ expect(current.models?.[0]).not.toHaveProperty('testModel');
+ await providersApi.updateOpenAIProvider(current.name, 0, { ...current, priority: 3 });
+ expect(state()).toEqual([
+ {
+ ...fixture(),
+ priority: 3,
+ headers: group.headers,
+ future: group.future,
+ models: [{ name: 'first', future: 'keep' }],
+ keys: group.keys,
+ },
+ ]);
+ expect(current.source?.group).toEqual(group);
+ });
+
+ test('cleans shared model fields on other providers while retaining inherited metadata', async () => {
+ const group = {
+ name: 'codex-fixture',
+ models: [{ name: 'inherited', 'test-model': 'obsolete', future: 'keep' }],
+ keys: [
+ {
+ 'api-key': 'fixture-key',
+ models: [{ name: 'first', 'test-model': 'obsolete', future: 'keep' }],
+ headers: { 'test-model': 'keep-header' },
+ },
+ ],
+ };
+ const state = backend([group], 'codex');
+ const current = normalizeProviderGroups([group])[0] as ProviderKeyConfig;
+ await providersApi.updateCodexConfig(current.apiKey, current.baseUrl, {
+ ...current,
+ priority: 2,
+ });
+ expect(state()).toEqual([
+ {
+ ...group,
+ models: [{ name: 'inherited', future: 'keep' }],
+ keys: [
+ {
+ ...group.keys[0],
+ priority: 2,
+ models: [{ name: 'first', future: 'keep' }],
+ },
+ ],
+ },
+ ]);
+ });
+
+ test('form keeps the test selection and shows the non-persistence hint for all brands', () => {
+ const source = readFileSync(
+ new URL('../src/features/providers/sheets/forms/BaseProviderForm.tsx', import.meta.url),
+ 'utf8'
+ );
+ expect(source).toContain('testModel: form.testModel');
+ expect(source).toContain("onChange={(value) => updateField('testModel', value)}");
+ expect(source).not.toContain('cfg.testModel');
+ expect(source).toContain("t('providersPage.form.testModelHint')");
+ expect(source).not.toContain('testModelClaudeHint');
+ for (const locale of ['en', 'zh-CN', 'zh-TW', 'ru', 'vi']) {
+ const messages = JSON.parse(
+ readFileSync(new URL(`../src/i18n/locales/${locale}.json`, import.meta.url), 'utf8')
+ );
+ expect(messages.providersPage.form.testModelHint).toBeString();
+ }
+ });
+});
diff --git a/web/tests/quotaBodyRendering.test.ts b/web/tests/quotaBodyRendering.test.ts
index 329a2847599..7e124cd03c5 100644
--- a/web/tests/quotaBodyRendering.test.ts
+++ b/web/tests/quotaBodyRendering.test.ts
@@ -79,8 +79,8 @@ describe('CodexQuotaBody', () => {
);
test.each([
- ['pro', 'Pro 20x', 'elitePlanValue'],
- ['prolite', 'Pro 5x', 'premiumPlanValue'],
+ ['pro', 'Pro 200', 'elitePlanValue'],
+ ['prolite', 'Pro 100', 'premiumPlanValue'],
['team', 'Team', 'codexPlanValue'],
['self_serve_business_usage_based', 'Self Serve Business Usage Based', 'codexPlanValue'],
])('preserves the label and badge for %s', (planType, label, className) => {
diff --git a/web/tests/quotaPageLogic.test.ts b/web/tests/quotaPageLogic.test.ts
index 746e25eca1e..f0261a39419 100644
--- a/web/tests/quotaPageLogic.test.ts
+++ b/web/tests/quotaPageLogic.test.ts
@@ -44,6 +44,14 @@ describe('resolveQuotaProviderType', () => {
expect(resolveQuotaProviderType(file('a', 'antigravity'))).toBe('antigravity');
expect(resolveQuotaProviderType(file('a', 'gemini'))).toBeNull();
expect(resolveQuotaProviderType(file('a', 'claude', { disabled: true }))).toBeNull();
+ expect(
+ resolveQuotaProviderType(
+ file('kiro-a.json', 'kiro', { supportsQuota: true, quotaProvider: 'kiro', authIndex: '1' })
+ )
+ ).toBe('plugin');
+ expect(resolveQuotaProviderType(file('kiro-probe.json', 'kiro', { supportsQuota: true }))).toBe(
+ 'plugin'
+ );
});
});
@@ -72,6 +80,7 @@ describe('buildTabCounts', () => {
kimi: 1,
devin: 0,
meta: 0,
+ plugin: 0,
});
});
});
diff --git a/web/tests/quotaPlanTier.test.ts b/web/tests/quotaPlanTier.test.ts
index 5561bd98ec0..0e24cf4be15 100644
--- a/web/tests/quotaPlanTier.test.ts
+++ b/web/tests/quotaPlanTier.test.ts
@@ -1,14 +1,27 @@
import { describe, expect, test } from 'bun:test';
+import en from '@/i18n/locales/en.json';
+import zhCN from '@/i18n/locales/zh-CN.json';
+import zhTW from '@/i18n/locales/zh-TW.json';
+import ru from '@/i18n/locales/ru.json';
import {
ELITE_CODEX_PLAN_TYPE,
PREMIUM_CODEX_PLAN_TYPES,
resolvePlanTier,
} from '@/utils/quota';
+describe('Codex Pro display names', () => {
+ for (const [locale, messages] of Object.entries({ en, 'zh-CN': zhCN, 'zh-TW': zhTW, ru })) {
+ test(`${locale} labels Pro plans as Pro 100 and Pro 200`, () => {
+ expect(messages.codex_quota.plan_prolite).toBe('Pro 100');
+ expect(messages.codex_quota.plan_pro).toBe('Pro 200');
+ });
+ }
+});
+
describe('resolvePlanTier', () => {
test("elite wins for 'pro' even though it is also in the premium set (order contract)", () => {
// 顺序契约回归:'pro' 同时命中 PREMIUM_CODEX_PLAN_TYPES,
- // 一旦 premium 判断先行,Pro 20x 会静默退回金卡。
+ // 一旦 premium 判断先行,Pro 200 会静默退回金卡。
expect(PREMIUM_CODEX_PLAN_TYPES.has(ELITE_CODEX_PLAN_TYPE)).toBe(true);
expect(resolvePlanTier('pro')).toBe('elite');
});
diff --git a/web/tests/quotaTimeline.test.ts b/web/tests/quotaTimeline.test.ts
index a8433542c74..d1865119127 100644
--- a/web/tests/quotaTimeline.test.ts
+++ b/web/tests/quotaTimeline.test.ts
@@ -414,7 +414,7 @@ describe('buildTimelineLane', () => {
expect(lane.limits).toEqual([]);
});
- test('xai anchors on the weekly limit, with per-product limits', () => {
+ test('xai anchors on the shared weekly limit without independent product limits', () => {
const lane = buildTimelineLane({
...base,
provider: 'xai',
@@ -436,8 +436,8 @@ describe('buildTimelineLane', () => {
expect(lane.anchorMs).toBe(9000);
expect(lane.periodHours).toBe(168);
expect(lane.remaining).toBe(95);
- // GrokChat has no percentage, so it is not summarized.
- expect(lane.limits).toEqual([{ label: 'GrokBuild', remaining: 95 }]);
+ // Product usage is a contribution to the total, not a separate quota pool.
+ expect(lane.limits).toEqual([]);
});
test('xai without a weekly limit produces no window at all', () => {
diff --git a/web/tests/vietnameseLocale.test.ts b/web/tests/vietnameseLocale.test.ts
new file mode 100644
index 00000000000..b357af7b509
--- /dev/null
+++ b/web/tests/vietnameseLocale.test.ts
@@ -0,0 +1,32 @@
+import { describe, expect, test } from 'bun:test';
+
+const flattenLeaves = (value: unknown, prefix = ''): Record => {
+ if (!value || typeof value !== 'object' || Array.isArray(value)) {
+ return prefix ? { [prefix]: String(value ?? '') } : {};
+ }
+
+ return Object.entries(value).reduce>((leaves, [key, child]) => {
+ const path = prefix ? `${prefix}.${key}` : key;
+ return { ...leaves, ...flattenLeaves(child, path) };
+ }, {});
+};
+
+const interpolationTokens = (value: string): string[] => value.match(/\{\{[^}]+\}\}/g) ?? [];
+
+describe('Vietnamese locale', () => {
+ test('covers every current English key with matching interpolation tokens', async () => {
+ const english = flattenLeaves(await Bun.file('src/i18n/locales/en.json').json());
+ const vietnamese = flattenLeaves(await Bun.file('src/i18n/locales/vi.json').json());
+ const missing = Object.keys(english).filter((key) => !(key in vietnamese));
+ const mismatches = Object.keys(english)
+ .filter((key) => key in vietnamese)
+ .filter(
+ (key) =>
+ interpolationTokens(english[key]).sort().join('|') !==
+ interpolationTokens(vietnamese[key]).sort().join('|')
+ );
+
+ expect(missing).toEqual([]);
+ expect(mismatches).toEqual([]);
+ });
+});
diff --git a/web/tests/visualConfigDefaults.test.ts b/web/tests/visualConfigDefaults.test.ts
index 8f23f16e551..60410ad06f3 100644
--- a/web/tests/visualConfigDefaults.test.ts
+++ b/web/tests/visualConfigDefaults.test.ts
@@ -2,36 +2,54 @@ import { describe, expect, test } from 'bun:test';
import { parse as parseYaml } from 'yaml';
import { runVisualConfig } from './helpers/visualConfig';
-// Backend contract: config_load.go defaults WebsocketAuth to true; QuotaExceeded
-// uses Go's false zero values. config.example.yaml values are not missing-key defaults.
+// Backend contract: WebsocketAuth defaults to true and Antigravity credits to false.
+// config.example.yaml values are not missing-key defaults.
describe('visual config boolean defaults', () => {
test('initial and missing-key values agree with backend defaults', () => {
for (const config of [runVisualConfig(), runVisualConfig('server:\n port: 8317\n')]) {
expect(config.visualValues.wsAuth).toBe(true);
- expect(config.visualValues.quotaSwitchProject).toBe(false);
- expect(config.visualValues.quotaSwitchPreviewModel).toBe(false);
+ expect(config.visualValues).not.toHaveProperty('quotaSwitchProject');
+ expect(config.visualValues).not.toHaveProperty('quotaSwitchPreviewModel');
+ expect(config.visualValues.quotaAntigravityCredits).toBe(false);
expect(config.visualDirty).toBe(false);
}
});
for (const enabled of [true, false]) {
test(`preserves explicit boolean values: ${enabled}`, () => {
- const yaml = `quota-exceeded:
- switch-project: ${enabled}
- switch-preview-model: ${enabled}
-oauth:
+ const yaml = `oauth:
providers:
aistudio:
ws-auth: ${enabled}
+ antigravity:
+ antigravity-credits: ${enabled}
`;
const config = runVisualConfig(yaml);
expect(config.visualValues.wsAuth).toBe(enabled);
- expect(config.visualValues.quotaSwitchProject).toBe(enabled);
- expect(config.visualValues.quotaSwitchPreviewModel).toBe(enabled);
+ expect(config.visualValues.quotaAntigravityCredits).toBe(enabled);
expect(parseYaml(config.applyVisualChangesToYaml(yaml))).toEqual(parseYaml(yaml));
});
}
+ test('does not expose deprecated quota switches from existing YAML', () => {
+ const yaml = 'quota-exceeded: {switch-project: true, switch-preview-model: true}\n';
+ const config = runVisualConfig(yaml, [{ quotaAntigravityCredits: true }]);
+ expect(config.visualValues).not.toHaveProperty('quotaSwitchProject');
+ expect(config.visualValues).not.toHaveProperty('quotaSwitchPreviewModel');
+ expect(parseYaml(config.applyVisualChangesToYaml(yaml))).toEqual({
+ ...parseYaml(yaml),
+ oauth: { providers: { antigravity: { 'antigravity-credits': true } } },
+ });
+ });
+
+ test('writes credits when the OAuth provider map is null', () => {
+ const yaml = 'oauth: {providers: {antigravity: null}}\n';
+ const config = runVisualConfig(yaml, [{ quotaAntigravityCredits: true }]);
+ expect(parseYaml(config.applyVisualChangesToYaml(yaml))).toEqual({
+ oauth: { providers: { antigravity: { 'antigravity-credits': true } } },
+ });
+ });
+
test('writes explicit false when disabling omitted ws-auth', () => {
const yaml = 'server:\n port: 8317\n';
const config = runVisualConfig(yaml, [{ wsAuth: false }]);
@@ -42,43 +60,36 @@ oauth:
});
});
- test('writes enabled quota options when their block was omitted', () => {
+ test('writes enabled credits without creating quota-exceeded', () => {
const yaml = 'server:\n port: 8317\n';
- const config = runVisualConfig(yaml, [
- { quotaSwitchProject: true, quotaSwitchPreviewModel: true },
- ]);
+ const config = runVisualConfig(yaml, [{ quotaAntigravityCredits: true }]);
+ expect([...config.visualDirtyFields]).toEqual(['quotaAntigravityCredits']);
expect(parseYaml(config.applyVisualChangesToYaml(yaml))).toEqual({
server: { port: 8317 },
- 'quota-exceeded': { 'switch-project': true, 'switch-preview-model': true },
+ oauth: { providers: { antigravity: { 'antigravity-credits': true } } },
});
});
test('writes toggles in both directions without changing unrelated settings', () => {
for (const enabled of [true, false]) {
- const yaml = `quota-exceeded:
- switch-project: ${!enabled}
- switch-preview-model: ${!enabled}
+ const yaml = `server:
+ port: 8317
oauth:
providers:
aistudio:
ws-auth: ${!enabled}
antigravity:
- antigravity-credits: true
+ antigravity-credits: ${!enabled}
`;
- const config = runVisualConfig(yaml, [
- { wsAuth: enabled, quotaSwitchProject: enabled, quotaSwitchPreviewModel: enabled },
- ]);
+ const config = runVisualConfig(yaml, [{ wsAuth: enabled, quotaAntigravityCredits: enabled }]);
expect(parseYaml(config.applyVisualChangesToYaml(yaml))).toEqual({
oauth: {
providers: {
aistudio: { 'ws-auth': enabled },
- antigravity: { 'antigravity-credits': true },
+ antigravity: { 'antigravity-credits': enabled },
},
},
- 'quota-exceeded': {
- 'switch-project': enabled,
- 'switch-preview-model': enabled,
- },
+ server: { port: 8317 },
});
}
});
@@ -86,8 +97,8 @@ oauth:
test('reverting toggles clears dirty state without inserting missing keys', () => {
const yaml = 'server:\n port: 8317\n';
const config = runVisualConfig(yaml, [
- { wsAuth: false, quotaSwitchProject: true, quotaSwitchPreviewModel: true },
- { wsAuth: true, quotaSwitchProject: false, quotaSwitchPreviewModel: false },
+ { wsAuth: false, quotaAntigravityCredits: true },
+ { wsAuth: true, quotaAntigravityCredits: false },
]);
expect(config.visualDirty).toBe(false);
expect(config.visualDirtyFields.size).toBe(0);
diff --git a/web/tests/visualConfigDurationFallback.test.ts b/web/tests/visualConfigDurationFallback.test.ts
index 26c2a7dcb52..e7ca55861bb 100644
--- a/web/tests/visualConfigDurationFallback.test.ts
+++ b/web/tests/visualConfigDurationFallback.test.ts
@@ -16,7 +16,7 @@ const cases = [
},
{
key: 'codexStreamBootstrapTimeout',
- path: ['oauth', 'providers', 'codex', 'stream-bootstrap-timeout'],
+ path: ['upstream', 'codex', 'stream-bootstrap-timeout'],
existing: '-1s',
edited: '-2s',
error: 'invalid_duration',
diff --git a/web/tests/visualConfigGitHubToken.test.ts b/web/tests/visualConfigGitHubToken.test.ts
new file mode 100644
index 00000000000..5b21febcab4
--- /dev/null
+++ b/web/tests/visualConfigGitHubToken.test.ts
@@ -0,0 +1,99 @@
+import { describe, expect, test } from 'bun:test';
+import { createElement } from 'react';
+import { renderToStaticMarkup } from 'react-dom/server';
+import { I18nextProvider } from 'react-i18next';
+import { parseDocument } from 'yaml';
+import i18n from '@/i18n';
+import { SectionConnectivity } from '@/features/config/components/sections/SectionConnectivity';
+import { findConfigFieldById, searchConfigFields } from '@/features/config/searchIndex';
+import { DEFAULT_VISUAL_VALUES } from '@/types/visualConfig';
+import { runVisualConfig } from './helpers/visualConfig';
+
+const source = `# config
+server:
+ github-token: fixture-token # credential
+ future: preserved
+plugins:
+ store-auth:
+ - match: https://api.github.com/
+ type: none
+`;
+
+describe('global GitHub token configuration', () => {
+ test('loads, replaces and clears the canonical field without changing store auth', () => {
+ expect(runVisualConfig(source).visualValues.githubToken).toBe('fixture-token');
+ for (const token of [' replacement-fixture ', '']) {
+ const config = runVisualConfig(source, [{ githubToken: token }]);
+ expect([...config.visualDirtyFields]).toEqual(['githubToken']);
+ const output = config.applyVisualChangesToYaml(source);
+ const expected = parseDocument(source).toJS();
+ expected.server['github-token'] = token.trim();
+ expect(parseDocument(output).toJS()).toEqual(expected);
+ expect(output).toContain('# credential');
+ expect(runVisualConfig(output).visualValues.githubToken).toBe(token.trim());
+ }
+ });
+
+ test('preserves untouched tokens and does not materialize an absent token', () => {
+ const config = runVisualConfig(source, [{ port: '9000' }]);
+ expect(
+ parseDocument(config.applyVisualChangesToYaml(source)).getIn(['server', 'github-token'])
+ ).toBe('fixture-token');
+ for (const yaml of ['{}', 'server: null', 'server: {github-token: null}']) {
+ const loaded = runVisualConfig(yaml);
+ expect(loaded.visualValues.githubToken).toBe('');
+ expect(parseDocument(loaded.applyVisualChangesToYaml(yaml)).toJS()).toEqual(
+ parseDocument(yaml).toJS()
+ );
+ const edited = runVisualConfig(yaml, [{ githubToken: 'fixture-token' }]);
+ expect(
+ parseDocument(edited.applyVisualChangesToYaml(yaml)).getIn(['server', 'github-token'])
+ ).toBe('fixture-token');
+ }
+ });
+
+ test('registers the canonical search path', () => {
+ expect(findConfigFieldById('githubToken')).toMatchObject({
+ sectionId: 'connectivity',
+ yamlKeys: ['server', 'github-token'],
+ });
+ expect(
+ searchConfigFields('server.github-token', () => '').map((entry) => entry.fieldId)
+ ).toContain('githubToken');
+ });
+
+ test('renders a masked, labelled input with localized hints and disabled support', () => {
+ for (const lng of ['en', 'zh-CN', 'zh-TW', 'ru', 'vi']) {
+ const translations = i18n.cloneInstance({ lng });
+ const key = 'config_management.visual.sections.server.github_token';
+ for (const path of [key, `${key}_hint`]) {
+ expect(typeof translations.getResource(lng, 'translation', path)).toBe('string');
+ }
+ for (const disabled of [false, true]) {
+ const markup = renderToStaticMarkup(
+ createElement(
+ I18nextProvider,
+ { i18n: translations },
+ createElement(SectionConnectivity, {
+ values: DEFAULT_VISUAL_VALUES,
+ disabled,
+ onChange: () => {},
+ })
+ )
+ );
+ const field = markup
+ .split('id="cfg-field-githubToken"')[1]
+ .split('id="cfg-field-trustedProxies"')[0];
+ const input = field.match(/ ]*>/)?.[0] ?? '';
+ expect(input).toContain('type="password"');
+ expect(input).toContain('autoComplete="new-password"');
+ expect(input.includes('disabled=""')).toBe(disabled);
+ const id = input.match(/\bid="([^"]+)"/)?.[1];
+ expect(id).toBeTruthy();
+ expect(field).toContain(`for="${id}"`);
+ expect(field).toContain(`id="${id}-hint"`);
+ expect(input).toContain(`aria-describedby="${id}-hint"`);
+ }
+ }
+ });
+});
diff --git a/web/tests/visualConfigV8.test.ts b/web/tests/visualConfigV8.test.ts
index ec6a9607527..b30f3400268 100644
--- a/web/tests/visualConfigV8.test.ts
+++ b/web/tests/visualConfigV8.test.ts
@@ -29,6 +29,9 @@ describe('v8 visual config contract', () => {
codexHeaderUserAgent: 'fixture-oauth-agent',
streaming: { keepaliveSeconds: '0', bootstrapRetries: '0', nonstreamKeepaliveInterval: '0' },
});
+ expect(config.visualValues).not.toHaveProperty('quotaSwitchProject');
+ expect(config.visualValues).not.toHaveProperty('quotaSwitchPreviewModel');
+ expect(parseYaml(fixture)).not.toHaveProperty('quota-exceeded');
expect(config.visualDirty).toBe(false);
expect(parseYaml(config.applyVisualChangesToYaml(fixture))).toEqual(parseYaml(fixture));
});
@@ -43,13 +46,12 @@ describe('v8 visual config contract', () => {
expect(runVisualConfig('api-keys:\n codex: []\n').visualValues.apiKeysText).toBe('');
});
- test('OAuth edits stay OAuth-only and preserve unmoved routing, quota, and plugin fields', () => {
+ test('OAuth edits stay OAuth-only and preserve unmoved routing and plugin fields', () => {
const config = runVisualConfig(fixture, [
{
codexHeaderUserAgent: 'new-oauth-agent',
antigravitySensitiveWords: [],
quotaAntigravityCredits: true,
- quotaSwitchProject: true,
},
]);
const original = parseYaml(fixture);
@@ -57,10 +59,7 @@ describe('v8 visual config contract', () => {
expect(output['api-keys']).toEqual(original['api-keys']);
expect(output.routing).toEqual(original.routing);
expect(output.plugins).toEqual(original.plugins);
- expect(output['quota-exceeded']).toEqual({
- 'switch-project': true,
- 'switch-preview-model': false,
- });
+ expect(output).not.toHaveProperty('quota-exceeded');
expect(output.oauth.providers.codex['header-defaults']['user-agent']).toBe('new-oauth-agent');
expect(output.oauth.providers.antigravity['sensitive-words']).toBeUndefined();
expect(output.oauth.providers.antigravity['antigravity-credits']).toBe(true);
diff --git a/web/tests/xaiQuotaHeaders.test.ts b/web/tests/xaiQuotaHeaders.test.ts
new file mode 100644
index 00000000000..2c6f431e48b
--- /dev/null
+++ b/web/tests/xaiQuotaHeaders.test.ts
@@ -0,0 +1,26 @@
+import { describe, expect, test } from 'bun:test';
+import {
+ XAI_GROK_CLIENT_VERSION,
+ XAI_GROK_USER_AGENT,
+ XAI_REQUEST_HEADERS,
+} from '@/utils/quota/constants';
+
+describe('Grok quota client headers', () => {
+ test('meets the upstream minimum client version of 1.0.13', () => {
+ expect(XAI_GROK_CLIENT_VERSION).toMatch(/^\d+\.\d+\.\d+$/);
+ const [major, minor, patch] = XAI_GROK_CLIENT_VERSION.split('.').map(Number);
+ expect(major > 1 || (major === 1 && (minor > 0 || (minor === 0 && patch >= 13)))).toBe(
+ true
+ );
+ expect(XAI_REQUEST_HEADERS['x-grok-client-version']).toBe(XAI_GROK_CLIENT_VERSION);
+ });
+
+ test('keeps both user-agent versions aligned with the client version header', () => {
+ expect(XAI_GROK_USER_AGENT).toBe(
+ `grok-pager/${XAI_GROK_CLIENT_VERSION} grok-shell/${XAI_GROK_CLIENT_VERSION} (macos; aarch64)`
+ );
+ expect(XAI_REQUEST_HEADERS['user-agent']).toBe(XAI_GROK_USER_AGENT);
+ expect(XAI_REQUEST_HEADERS['x-xai-token-auth']).toBe('xai-grok-cli');
+ expect(XAI_REQUEST_HEADERS.Authorization).toBe('Bearer $TOKEN$');
+ });
+});
diff --git a/web/tests/xaiQuotaUnavailable.test.ts b/web/tests/xaiQuotaUnavailable.test.ts
index 35ef711c130..b88796305aa 100644
--- a/web/tests/xaiQuotaUnavailable.test.ts
+++ b/web/tests/xaiQuotaUnavailable.test.ts
@@ -201,6 +201,49 @@ describe('XaiQuotaBody unavailable weekly usage', () => {
expect(markup).toContain('$0.00 / $0.00');
});
+ test('renders product contributions as text with only one shared weekly meter', () => {
+ const markup = render(
+ quotaFor(
+ weeklyConfig({
+ creditUsagePercent: 16,
+ productUsage: [
+ { product: 'GrokBuild', usagePercent: 14 },
+ { product: 'GrokChat', usagePercent: 2 },
+ ],
+ }),
+ monthlyConfig()
+ )
+ );
+
+ expect(markup).toContain('Used 16%');
+ expect(markup).toContain('Usage breakdown (shared quota)');
+ expect(markup).toContain('GrokBuild usage: 14%');
+ expect(markup).toContain('GrokChat usage: 2%');
+ expect(markup).toContain('width:84%');
+ expect(markup.match(/class="quotaRow"/g)).toHaveLength(1);
+ expect(markup).not.toContain('width:86%');
+ expect(markup).not.toContain('width:98%');
+ });
+
+ test('does not derive a weekly total or product remainder from partial usage', () => {
+ const markup = render(
+ quotaFor(
+ weeklyConfig({
+ productUsage: [
+ { product: 'GrokBuild', usagePercent: 14 },
+ { product: 'GrokChat', usagePercent: null },
+ ],
+ }),
+ monthlyConfig()
+ )
+ );
+
+ expect(markup).toContain('GrokBuild usage: 14%');
+ expect(markup).toContain('GrokChat usage: Usage unavailable from xAI');
+ expect(markup).not.toContain('width:');
+ expect(markup).not.toContain('Used 14%');
+ });
+
test('keeps monthly amount, percentage, and meter in the remaining direction', () => {
const markup = render(
quotaFor(