feat(panel): add experimental quota reservation estimator, violet bar indicator, and clipboard log export

This commit is contained in:
fish
2026-11-22 18:34:58 +09:00
parent 95a3c0c355
commit 4d6d676e56
26 changed files with 2128 additions and 86 deletions
+15
View File
@@ -182,6 +182,11 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'quota.loading': 'Loading...',
'quota.failed': 'Unavailable (--%)',
'quota.usedAndLeft': '{reset} · Used {used}% ({rem}% left)',
'quota.usedBeforeReserved': '{reset} · Used {used}% (',
'quota.reservedTag': '{rsv}% rsv',
'quota.usedAfterReserved': ' · {rem}% left)',
'quota.reservedTip': 'Estimated lease reservation (Experimental): ~{rsv}% (~{actual}% actual used); unused share refunds after ~10 min idle',
'quota.reservedTipMulti': 'Estimated lease reservation (Experimental): ~{rsv}% ({leases} stacked leases, ~{actual}% actual used); unused share refunds after ~10 min idle',
'quota.cycle5hTitle': 'Current 5h cycle ({pool}): {tok} Tokens · {cost} · {calls} calls',
'quota.cycleWkCustomTitle': 'Current calendar week: {tok} Tokens · {cost} · {calls} calls',
'quota.cycleWkPoolTitle': 'Current weekly cycle ({pool}): {tok} Tokens · {cost} · {calls} calls',
@@ -681,6 +686,16 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'settings.oth.orchFormat': 'Orchestrator Series ID',
'settings.oth.orchCompact': 'Compact Alias (e.g. orchestrator-argon)',
'settings.oth.orchFull': 'Full Upstream ID (e.g. gemini-pro-orchestrator)',
'settings.oth.expTitle': 'Experimental',
'settings.oth.expBadge': 'Experimental',
'settings.oth.quotaReserveLabel': 'Quota Reservation Estimate',
'settings.oth.quotaReserveDesc': 'Estimate 0.5% / 1% 5h & weekly lease holds in Available Quotas and highlight the reserved share in violet',
'settings.oth.quotaReserveLogLabel': 'Reservation Observation Log',
'settings.oth.quotaReserveLogDesc': 'Copy in-memory quota jump & refund events to clipboard for threshold tuning',
'settings.oth.exportReserveLogBtn': 'Export Reserve Log',
'settings.oth.exportReserveLogCopied': 'Copied {count} log entries to clipboard',
'settings.oth.exportReserveLogEmpty': 'No events yet; copied current summary to clipboard',
'settings.oth.exportReserveLogFailed': 'Failed to copy reservation log',
'settings.oth.baselineTitle': 'Model Context Settings',
'settings.oth.ctxRiskTitle': 'Unofficial Override Risk Warning',
'settings.oth.ctxRiskBody': 'Google has not authorized modifying model context limits in Antigravity App / IDE. Altering context limits may get your Antigravity access, GCP services, or Google account disabled or banned; enabling this feature means you assume all associated risks. Make sure you know what you are doing!',
+15
View File
@@ -182,6 +182,11 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
'quota.loading': '读取中...',
'quota.failed': '获取失败 (--%)',
'quota.usedAndLeft': '{reset} · 已用 {used}% (余 {rem}%)',
'quota.usedBeforeReserved': '{reset} · 已用 {used}% (',
'quota.reservedTag': '预占 {rsv}%',
'quota.usedAfterReserved': ' · 余 {rem}%)',
'quota.reservedTip': '预占估算(试验性):约 {rsv}%(实际已用约 {actual}%),静默约 10 分钟后未用差额自动退还',
'quota.reservedTipMulti': '预占估算(试验性):约 {rsv}%(检测到 {leases} 笔叠加租约,实际已用约 {actual}%),静默约 10 分钟后未用差额自动退还',
'quota.cycle5hTitle': '当前 5h 周期累计 ({pool}):{tok} Tokens · {cost} · {calls} 次调用',
'quota.cycleWkCustomTitle': '本周自然周累计:{tok} Tokens · {cost} · {calls} 次调用',
'quota.cycleWkPoolTitle': '当前周限周期累计 ({pool}):{tok} Tokens · {cost} · {calls} 次调用',
@@ -681,6 +686,16 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
'settings.oth.orchFormat': 'Orchestrator 系列 ID',
'settings.oth.orchCompact': '精简代号 (如 orchestrator-argon)',
'settings.oth.orchFull': '原始完整 ID (如 gemini-pro-orchestrator)',
'settings.oth.expTitle': '试验性功能',
'settings.oth.expBadge': '试验性',
'settings.oth.quotaReserveLabel': '配额预占估算',
'settings.oth.quotaReserveDesc': '在可用额度中估算 5h / 周限的 0.5% / 1% 租约预占,并用紫色标注占比及进度条段',
'settings.oth.quotaReserveLogLabel': '预占观测日志',
'settings.oth.quotaReserveLogDesc': '将内存中的配额跳变及退还记录复制到剪贴板,便于分析触发阈值',
'settings.oth.exportReserveLogBtn': '导出预占日志',
'settings.oth.exportReserveLogCopied': '已复制 {count} 条观测日志到剪贴板',
'settings.oth.exportReserveLogEmpty': '暂无跳变记录,已复制当前摘要到剪贴板',
'settings.oth.exportReserveLogFailed': '获取或复制预占日志失败',
'settings.oth.baselineTitle': '模型上下文设置',
'settings.oth.ctxRiskTitle': '非官方能力风险提示',
'settings.oth.ctxRiskBody': 'Google 官方并未授权在 Antigravity App / IDE 中修改模型上下文上限。擅自修改可能导致 Antigravity 或 GCP 服务被禁用,甚至触发账号封禁;启用该功能即默认由你自行承担全部风险。你最好清楚自己在做什么!',