mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
feat(panel): add worker hot-reload, sticky bridge lease, custom token combos, trimmed model IDs, and adaptive popover width
- Isolate SidecarApp /api/* backend runtime inside a hot-swappable Worker thread (sidecar-worker.mjs) with 3s disk-drift detection and queued request handoff so live plugin updates never drop the host-assigned SidecarApp port - Persist and reuse sticky loopback bridge port/token leases across bridge-daemon and worker reloads, pre-bind the bridge server on boot, allow /api/cache/rebuild on the bridge, and self-heal poisoned CDP fallback states back to HTTP - Add billing-aligned In / Out / Cache (tokens_io_cache) preset with per-segment USD hover breakdown and custom format DSL (tokens_custom + stepTokenComboFormat, e.g. context:new:cache, in:out:cache) - Add 3-way model name format (short / upstream / upstream_compact) stripping gemini-, claude-, and gpt- prefixes while protecting compaction suffixes from ellipsis truncation - Add adaptive content-fit popover width (auto up to viewport bounds on wide step tables) alongside custom fixed width (440-1080 px)
This commit is contained in:
@@ -49,6 +49,7 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
|
||||
'fmt.resetMins': '{m}分钟后重置',
|
||||
'fmt.selectTime': '选择时间',
|
||||
'fmt.unknownModel': '模型未知',
|
||||
'fmt.compactionSuffix': '·压缩',
|
||||
'fmt.mainAgent': '主代理',
|
||||
'fmt.mainBadge': '主',
|
||||
'fmt.subAgent': '子代理',
|
||||
@@ -251,6 +252,21 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
|
||||
'steps.badgeBackAll': '点击切回全部汇总',
|
||||
'steps.badgeFilterAgent': '点击仅过滤查看 {agent}(按住 Ctrl/Shift 可加减多选)',
|
||||
'steps.ctxTitle': '上下文 {ctx} · 思考 {think} · 正文 {resp}',
|
||||
'steps.ioCacheTitle': '新输入 {inPart} · 输出 {outPart} · 缓存读 {cachePart}',
|
||||
'steps.tokSeg.context.th': '上下文',
|
||||
'steps.tokSeg.context.tip': '上下文',
|
||||
'steps.tokSeg.in.th': '输入',
|
||||
'steps.tokSeg.in.tip': '新输入',
|
||||
'steps.tokSeg.out.th': '输出',
|
||||
'steps.tokSeg.out.tip': '输出',
|
||||
'steps.tokSeg.cache.th': '缓存',
|
||||
'steps.tokSeg.cache.tip': '缓存读',
|
||||
'steps.tokSeg.think.th': '思考',
|
||||
'steps.tokSeg.think.tip': '思考',
|
||||
'steps.tokSeg.reply.th': '正文',
|
||||
'steps.tokSeg.reply.tip': '正文',
|
||||
'steps.tokSeg.total.th': '总计',
|
||||
'steps.tokSeg.total.tip': '总计',
|
||||
'steps.modelCallsShare': '{calls}次 · {pct}%',
|
||||
'steps.modelCallsOnly': '{calls}次',
|
||||
'steps.modelsSummaryPrefix': '{count} 模型 · ',
|
||||
@@ -276,6 +292,9 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
|
||||
'stepCol.duration.opt': '端到端耗时 (s)',
|
||||
'stepCol.tokens_combo.th': '上下文 / 思考 / 正文',
|
||||
'stepCol.tokens_combo.opt': '上下文 / 思考 / 正文 (组合)',
|
||||
'stepCol.tokens_io_cache.th': '输入 / 输出 / 缓存',
|
||||
'stepCol.tokens_io_cache.opt': '输入 / 输出 / 缓存 (组合)',
|
||||
'stepCol.tokens_custom.opt': '自定义组合 ({fmt})',
|
||||
'stepCol.input_tokens.th': '新输入',
|
||||
'stepCol.input_tokens.opt': '新输入 Token',
|
||||
'stepCol.cache_tokens.th': '缓存读',
|
||||
@@ -412,6 +431,10 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
|
||||
'settings.str.mountDual': '双栖挂载 (顶部栏 + 侧边栏)',
|
||||
'settings.str.mountComposer': '输入框挂载 (输入框 + 侧边栏)',
|
||||
'settings.str.mountSidebar': '仅侧边栏',
|
||||
'settings.str.popoverWidthLabel': '悬浮面板宽度',
|
||||
'settings.str.popoverWidthAuto': '自适应',
|
||||
'settings.str.popoverWidthCustom': '指定宽度',
|
||||
'settings.str.popoverWidthHint': '自适应模式下在调用明细等宽表格视图自动撑宽免水平滚动;指定宽度范围 440~1080 px',
|
||||
'settings.str.multiToggle': '实时运行会话入口',
|
||||
'settings.str.cliCapsuleToggle': 'CLI 底部状态胶囊',
|
||||
'settings.str.show': '显示',
|
||||
@@ -438,6 +461,9 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
|
||||
'settings.str.stepTurnRailToggle': '对话轮次导轨',
|
||||
'settings.str.stepAgentBadgeToggle': '主/子代理标识',
|
||||
'settings.str.stepSpeedColorToggle': '输出速度多色分级',
|
||||
'settings.str.stepTokenComboLabel': '自定义 Token 组合格式',
|
||||
'settings.str.stepTokenComboPlaceholder': '例如 context:new:cache 或 in:out:cache',
|
||||
'settings.str.stepTokenComboHint': '可用字段:context(上下文)、in/new(新输入)、out(输出)、cache(缓存)、think(思考)、reply(正文)、total(总计),以 : 或 / 分隔(1~4 项)',
|
||||
'settings.str.stepsColsLabel': '「按步查看」显示列 (左 → 右,至少 2 列,可拖拽)',
|
||||
'settings.str.addStepCol': '添加字段 ({count}/{max})',
|
||||
'settings.slot.dragHint': '按住上下拖动调整顺序',
|
||||
@@ -456,6 +482,7 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
|
||||
'settings.oth.modelFormat': '模型名称格式',
|
||||
'settings.oth.modelShort': '精简代号 (如 argon-4-high)',
|
||||
'settings.oth.modelUpstream': '原始模型 ID (如 gemini-3.8-flash-n)',
|
||||
'settings.oth.modelUpstreamCompact': '去前缀原始 ID (如 3.8-flash-n / sonnet-4-6 / 5.4-mini)',
|
||||
'settings.oth.orchFormat': 'Orchestrator 系列 ID',
|
||||
'settings.oth.orchCompact': '精简代号 (如 orchestrator-argon)',
|
||||
'settings.oth.orchFull': '原始完整 ID (如 gemini-pro-orchestrator)',
|
||||
|
||||
Reference in New Issue
Block a user