Compare commits

...

2 Commits

5 changed files with 15 additions and 4 deletions
+5 -1
View File
@@ -733,6 +733,7 @@ const renderAntigravityItems = (
};
const PREMIUM_GEMINI_CLI_TIER_IDS = new Set(['g1-ultra-tier']);
const PREMIUM_CODEX_PLAN_TYPES = new Set(['pro', 'prolite', 'pro-lite', 'pro_lite']);
const renderCodexItems = (
quota: CodexQuotaState,
@@ -748,6 +749,9 @@ const renderCodexItems = (
const normalized = normalizePlanType(pt);
if (!normalized) return null;
if (normalized === 'pro') return t('codex_quota.plan_pro');
if (PREMIUM_CODEX_PLAN_TYPES.has(normalized) && normalized !== 'pro') {
return t('codex_quota.plan_prolite');
}
if (normalized === 'plus') return t('codex_quota.plan_plus');
if (normalized === 'team') return t('codex_quota.plan_team');
if (normalized === 'free') return t('codex_quota.plan_free');
@@ -755,7 +759,7 @@ const renderCodexItems = (
};
const planLabel = getPlanLabel(planType);
const isPremiumPlan = normalizePlanType(planType) === 'pro';
const isPremiumPlan = PREMIUM_CODEX_PLAN_TYPES.has(normalizePlanType(planType) ?? '');
const nodes: ReactNode[] = [];
if (planLabel) {
+2 -1
View File
@@ -670,7 +670,8 @@
"plan_plus": "Plus",
"plan_team": "Team",
"plan_free": "Free",
"plan_pro": "Pro"
"plan_pro": "Pro 20x",
"plan_prolite": "Pro 5x"
},
"gemini_cli_quota": {
"title": "Gemini CLI Quota",
+2 -1
View File
@@ -667,7 +667,8 @@
"plan_plus": "Plus",
"plan_team": "Team",
"plan_free": "Free",
"plan_pro": "Pro"
"plan_pro": "Pro 20x",
"plan_prolite": "Pro 5x"
},
"gemini_cli_quota": {
"title": "Квота Gemini CLI",
+2 -1
View File
@@ -670,7 +670,8 @@
"plan_plus": "Plus",
"plan_team": "Team",
"plan_free": "Free",
"plan_pro": "Pro"
"plan_pro": "Pro 20x",
"plan_prolite": "Pro 5x"
},
"gemini_cli_quota": {
"title": "Gemini CLI 额度",
+4
View File
@@ -376,6 +376,10 @@ export function buildCandidateUsageSourceIds(input: {
const apiKey = input.apiKey?.trim();
if (apiKey) {
// Include the normalised form first so that "non-standard" keys (e.g. short tokens,
// keys containing '/' etc.) that are classified as text by normalizeUsageSourceId()
// can still match usage details.
result.push(normalizeUsageSourceId(apiKey));
result.push(`${USAGE_SOURCE_PREFIX_KEY}${fnv1a64Hex(apiKey)}`);
result.push(`${USAGE_SOURCE_PREFIX_MASKED}${maskApiKey(apiKey)}`);
}