feat(panel): refine quota reservation estimator, tier 5x/20x badge, conditional argon_weekly slot, and chart markers

This commit is contained in:
fish
2026-11-22 20:59:02 +09:00
parent 4d6d676e56
commit 6da6c75390
26 changed files with 1673 additions and 392 deletions
+6 -3
View File
@@ -125,6 +125,7 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'capMetric.quota_auto': 'Auto Tightest Quota',
'capMetric.gemini_5h': 'Gemini 5h Quota',
'capMetric.gemini_weekly': 'Gemini Weekly Quota',
'capMetric.argon_weekly': 'Argon Weekly Quota',
'capMetric.claude_5h': 'Claude 5h Quota',
'capMetric.claude_weekly': 'Claude Weekly Quota',
@@ -187,6 +188,8 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'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.legendActual': 'Actual',
'quota.legendReserved': 'Reserved',
'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',
@@ -691,7 +694,7 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'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.quotaReserveLogDesc': 'Copy persisted quota jump & refund observations to clipboard (retained across restarts)',
'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',
@@ -731,7 +734,7 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'settings.oth.resettingBtn': 'Resetting…',
'settings.oth.resetAllDone': 'All preferences restored to defaults',
'settings.oth.backupLabel': 'Preferences Backup & Restore',
'settings.oth.backupDesc': 'Export or import portable UI, capsule, and table preferences as JSON (excludes credentials)',
'settings.oth.backupDesc': 'Export or import portable UI, capsule, and table preferences as JSON',
'settings.oth.exportJsonBtn': 'Export JSON',
'settings.oth.importJsonBtn': 'Import JSON',
'settings.oth.exportDone': 'Preferences JSON exported',
@@ -745,7 +748,7 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'settings.oth.migModeLabel': 'Migration Mode',
'settings.oth.migModeMove': 'Full Move (Recommended)',
'settings.oth.migModeClone': 'Clone Copy',
'settings.oth.migModeMoveHint': 'Assigns an isolated target ID while preserving all historical steps/details; archives source backup before moving (close source session first)',
'settings.oth.migModeMoveHint': 'Assigns an isolated target ID while preserving all historical steps/details; archives source backup before moving',
'settings.oth.migModeCloneHint': 'Keeps source intact with a fresh UUID; only counts new steps generated after cloning',
'settings.oth.migProjectLabel': 'Target Project',
'settings.oth.migProjectOutside': 'Standalone (No Project)',
+6 -3
View File
@@ -125,6 +125,7 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
'capMetric.quota_auto': '自动紧俏额度',
'capMetric.gemini_5h': 'Gemini 5h 额度',
'capMetric.gemini_weekly': 'Gemini 周额度',
'capMetric.argon_weekly': 'Argon 周额度',
'capMetric.claude_5h': 'Claude 5h 额度',
'capMetric.claude_weekly': 'Claude 周额度',
@@ -187,6 +188,8 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
'quota.usedAfterReserved': ' · 余 {rem}%)',
'quota.reservedTip': '预占估算(试验性):约 {rsv}%(实际已用约 {actual}%),静默约 10 分钟后未用差额自动退还',
'quota.reservedTipMulti': '预占估算(试验性):约 {rsv}%(检测到 {leases} 笔叠加租约,实际已用约 {actual}%),静默约 10 分钟后未用差额自动退还',
'quota.legendActual': '实占',
'quota.legendReserved': '预占',
'quota.cycle5hTitle': '当前 5h 周期累计 ({pool}):{tok} Tokens · {cost} · {calls} 次调用',
'quota.cycleWkCustomTitle': '本周自然周累计:{tok} Tokens · {cost} · {calls} 次调用',
'quota.cycleWkPoolTitle': '当前周限周期累计 ({pool}):{tok} Tokens · {cost} · {calls} 次调用',
@@ -691,7 +694,7 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
'settings.oth.quotaReserveLabel': '配额预占估算',
'settings.oth.quotaReserveDesc': '在可用额度中估算 5h / 周限的 0.5% / 1% 租约预占,并用紫色标注占比及进度条段',
'settings.oth.quotaReserveLogLabel': '预占观测日志',
'settings.oth.quotaReserveLogDesc': '将内存中的配额跳变及退还记录复制到剪贴板,便于分析触发阈值',
'settings.oth.quotaReserveLogDesc': '将配额跳变及退还观测记录复制到剪贴板,重启后自动保留,便于分析触发阈值',
'settings.oth.exportReserveLogBtn': '导出预占日志',
'settings.oth.exportReserveLogCopied': '已复制 {count} 条观测日志到剪贴板',
'settings.oth.exportReserveLogEmpty': '暂无跳变记录,已复制当前摘要到剪贴板',
@@ -731,7 +734,7 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
'settings.oth.resettingBtn': '重置中…',
'settings.oth.resetAllDone': '已恢复全部默认设置',
'settings.oth.backupLabel': '配置备份及恢复',
'settings.oth.backupDesc': '导出或导入外观、胶囊、列配置等便携偏好 JSON(不含账号凭证)',
'settings.oth.backupDesc': '导出或导入外观、胶囊、列配置等便携偏好 JSON',
'settings.oth.exportJsonBtn': '导出 JSON',
'settings.oth.importJsonBtn': '导入 JSON',
'settings.oth.exportDone': '配置 JSON 已导出',
@@ -745,7 +748,7 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
'settings.oth.migModeLabel': '迁移方式',
'settings.oth.migModeMove': '完整迁移(推荐)',
'settings.oth.migModeClone': '克隆副本',
'settings.oth.migModeMoveHint': '分配目标端独立会话 ID 并完整保留全部历史步序明细,备份后移出源端(零重复计费;迁移前建议先关闭源端该会话)',
'settings.oth.migModeMoveHint': '分配目标端独立会话 ID 并完整保留全部历史步序明细,备份后移出源端',
'settings.oth.migModeCloneHint': '保留源会话并生成新 ID,新副本仅统计迁入后的新步骤',
'settings.oth.migProjectLabel': '绑定目标项目',
'settings.oth.migProjectOutside': '独立会话(无所属项目)',