优化: aichat 体验收尾(useAiEvents拆分4子域 + AIC-FIX P1队列/mutex/缓存 + i18n残留抽取)

This commit is contained in:
lxy
2026-08-08 20:38:33 +08:00
parent 4092a8d5bb
commit 65c0f6b2b6
21 changed files with 882 additions and 913 deletions
+17
View File
@@ -246,5 +246,22 @@ export default {
ciNFailed: '{n} failed',
ciNPending: '{n} pending',
ciNPassed: '{n} passed',
// ── MessageList token detail popover (per-fee breakdown: input/cache hit/output/reasoning) ──
tokenDetailTitle: 'Token usage details',
estimated: 'estimated',
tokenInLabel: 'Input (cache miss, full price)',
tokenCacheLabel: 'Cache hit (low price)',
tokenOutLabel: 'Output',
tokenReasonLabel: 'Reasoning',
tokenCacheRateLabel: 'Cache hit rate',
tokenModelLabel: 'Model',
tokenUsageNoteLabel: 'Usage note',
tokenUsageNote: 'prompt_tokens missing, shown as estimated',
// ── TopBar goal/project context labels ──
goalsCount: 'Goals ({n})',
none: 'None',
projectLabel: "{'@'}Projects",
},
}
+20
View File
@@ -3,5 +3,25 @@ export default {
title: 'Dependency Graph',
empty: 'No modules yet, please add a module first',
tabTitle: '🔗 Dependencies',
addDep: '+ Add dependency',
checkCycles: '🔍 Check cycles',
exportImage: '📷 Export',
fitContent: 'Fit content',
addDepTitle: 'Add project dependency',
sourceLabel: 'Source module (depends on)',
targetLabel: 'Target module (depended on)',
depTypeLabel: 'Dependency type',
typeLibrary: 'Library',
typeApi: 'API call',
typeMq: 'Message queue',
typeShared: 'Shared resource',
typeCustom: 'Custom',
confirm: 'Confirm',
cycleWarning: 'Detected {n} cycle nodes (highlighted in red)',
noCycle: 'No cyclic dependencies detected',
cycleError: 'Cycle detection failed',
deleteConfirm: 'Delete the dependency "{from} → {to}"? This cannot be undone.',
deleteSuccess: 'Dependency deleted',
deleteError: 'Failed to delete dependency',
},
}
+17
View File
@@ -247,5 +247,22 @@ export default {
ciNFailed: '{n} 项失败',
ciNPending: '{n} 项进行中',
ciNPassed: '{n} 项通过',
// ── MessageList token 详情面板(分计费:输入/缓存命中/输出/思考) ──
tokenDetailTitle: 'Token 用量详情',
estimated: '估算',
tokenInLabel: '输入(未命中,全价)',
tokenCacheLabel: '缓存命中(低价)',
tokenOutLabel: '输出',
tokenReasonLabel: '思考(reasoning)',
tokenCacheRateLabel: '缓存命中率',
tokenModelLabel: '模型',
tokenUsageNoteLabel: '用量说明',
tokenUsageNote: 'prompt_tokens 缺失,按估算展示',
// ── TopBar 目标/项目上下文标签 ──
goalsCount: '目标({n})',
none: '无',
projectLabel: "{'@'}项目",
},
}
+20
View File
@@ -3,5 +3,25 @@ export default {
title: '依赖关系图',
empty: '暂无工程,请先添加工程',
tabTitle: '🔗 依赖图',
addDep: '+ 依赖',
checkCycles: '🔍 环检测',
exportImage: '📷 导出',
fitContent: '适应内容',
addDepTitle: '添加工程依赖',
sourceLabel: '源工程(依赖方)',
targetLabel: '目标工程(被依赖)',
depTypeLabel: '依赖类型',
typeLibrary: '类库',
typeApi: 'API 调用',
typeMq: '消息队列',
typeShared: '共享资源',
typeCustom: '自定义',
confirm: '确认',
cycleWarning: '检测到 {n} 个环节点(已红框高亮)',
noCycle: '未检测到环形依赖',
cycleError: '环检测失败',
deleteConfirm: '确定删除「{from} → {to}」的依赖吗?此操作不可撤销。',
deleteSuccess: '依赖已删除',
deleteError: '删除依赖失败',
},
}