import { altKey, type TranslationCatalogs } from "pi-maestro-settings-core/v1"; export const CORE_TUI_CATALOGS = { en: { "common.active": "active", "common.agents": "Agents", "common.auto": "Auto", "common.available": "available", "common.back": "back", "common.cancel": "cancel", "common.close": "close", "common.completed": "completed", "common.configured": "configured", "common.custom": "Custom", "common.default": "default", "common.details": "details", "common.done": "Done", "common.failed": "failed", "common.filter": "filter", "common.inherited": "inherited", "common.none": "none", "common.open": "open", "common.pending": "pending", "common.retrying": "retrying", "common.running": "running", "common.save": "save", "common.select": "select", "common.settings": "settings", "common.sleeping": "sleeping", "common.terminated": "terminated", "common.unavailable": "unavailable", "common.view": "view", "status.pending": "running · starting", "status.running": "running", "status.retrying": "running · retrying", "status.sleeping": "sleeping", "status.completed": "sleeping · completed", "status.failed": "sleeping · failed", "status.terminated": "sleeping · terminated", "status.resultReady": "result ready", "status.idle": "idle", "status.resultReadyConfirming": "result ready; confirming terminal", "status.stalled": "stalled {seconds}s", "metrics.in": "in {count}", "metrics.inCompact": "{count}in", "metrics.out": "out {count}", "metrics.outCompact": "{count}out", "metrics.cache": "cache {read}r/{write}w", "metrics.tokens": "{count} tokens", "metrics.tok": "{count} tok", "metrics.tools": "{count} tools", "metrics.turns": "{count} turns", "metrics.cacheRead": "{count}cache-read", "metrics.cacheWrite": "{count}cache-write", "metrics.cacheHit": "{percent}% cache hit", "progress.resultDependency.one": "result {ids}", "progress.resultDependency.many": "results {ids}", "progress.child.one": "{count} child agent", "progress.child.many": "{count} child agents", "progress.childLabel": "child agent", "progress.using": "using {tool}", "progress.streaming": "streaming", "progress.summary.failed": "{count}/{total} failed", "progress.summary.running": "{count}/{total} running", "progress.summary.done": "{count}/{total} done", "progress.summary.completed": "{count}/{total} completed", "progress.summary.retrying": "{count} retrying", "progress.summary.failedCount": "{count} failed", "progress.summary.runningCount": "{count} running", "progress.summary.completedCount": "{count}/{total} completed", "progress.header.pending": "{count} pending", "progress.header.agents": "agents {count}", "progress.header.delegated": "{count} delegated", "progress.footer": `${altKey("R")} details · 1-{max} view · 0 overview`, "progress.expand": `${altKey("R")} details`, "progress.quiet.failed": "failed", "progress.quiet.done": "done", "attach.messageCancelled": "Message cancelled", "attach.messageCannotSend": "Message cannot be sent", "attach.messageEmpty": "Message is empty", "attach.sending": "Sending…", "attach.retryHint": "{message} · Enter retry · Esc cancel", "attach.sendFailed": "Send failed · {message} · Enter retry · Esc cancel", "attach.noAgentSelected": "No agent selected", "attach.sleepingHint": "Sleeping · teammate-send to wake", "attach.footer.back": "Esc back", "attach.footer.send": "Enter send", "attach.footer.message": "Enter message", "attach.footer.newline": "Shift+Enter newline", "attach.footer.switchCount": "←→ switch({count})", "attach.footer.switch": "←→ switch", "attach.footer.overview": "0 overview", "attach.footer.view": "1-{max} view", "attach.footer.activity": "t activity", "attach.footer.transcript": "t transcript", "attach.footer.scroll": "↑↓ scroll{range}", "attach.message.label": "Message ·", "attach.message.compose": "Enter to compose", "attach.main": "main conversation", "attach.mainReturn": "Enter or Esc to return to the main agent", "attach.mainCompact": "● main · Enter return", "attach.mainDocked": "● main conversation · Enter return", "attach.footer.return": "Enter return", "attach.noActiveSession": "Agents · no active session", "attach.waitingOutput": "Waiting for output…", "attach.waitingDependencies": "Waiting for dependencies…", "attach.agentsSummary": "Agents · {running} running · {pending} pending{failed} · {range}", "attach.tools": "Tools ·", "attach.toolsIdle": "Tools · idle", "attach.toolsIdleSeconds": "Tools · idle {seconds}s", "attach.loadingTranscript": "Loading transcript…", "attach.noTranscript": "No transcript available", "attach.emptyTranscript": "Transcript is empty", "attach.olderMessages": "… {count} older messages hidden", "attach.refreshing": "Refreshing…", "attach.memoryTranscript": "Live activity · no persisted session", "attach.thinkingLines": "({count} lines)", "attach.typeMessage": "Type message", "attach.compactCancel": "Esc cancel · {content}", "attach.compactMessage": "Enter msg · Esc", "attach.outputWaiting": "Output · waiting", "attach.output": "Output", "attach.outputEarlier": "Output · {count} earlier", "attach.inbox": "Inbox", "attach.inboxCount": "inbox:{count}", }, "zh-CN": { "common.active": "活跃", "common.agents": "Agent", "common.auto": "自动", "common.available": "可用", "common.back": "返回", "common.cancel": "取消", "common.close": "关闭", "common.completed": "已完成", "common.configured": "已配置", "common.custom": "自定义", "common.default": "默认", "common.details": "详情", "common.done": "完成", "common.failed": "失败", "common.filter": "筛选", "common.inherited": "已继承", "common.none": "无", "common.open": "打开", "common.pending": "等待中", "common.retrying": "重试中", "common.running": "运行中", "common.save": "保存", "common.select": "选择", "common.settings": "设置", "common.sleeping": "休眠中", "common.terminated": "已终止", "common.unavailable": "不可用", "common.view": "查看", "status.pending": "运行中 · 正在启动", "status.running": "运行中", "status.retrying": "运行中 · 正在重试", "status.sleeping": "休眠中", "status.completed": "休眠中 · 已完成", "status.failed": "休眠中 · 失败", "status.terminated": "休眠中 · 已终止", "status.resultReady": "结果已就绪", "status.idle": "空闲", "status.resultReadyConfirming": "结果已就绪,正在确认终态", "status.stalled": "停滞 {seconds} 秒", "metrics.in": "输入 {count}", "metrics.inCompact": "输入 {count}", "metrics.out": "输出 {count}", "metrics.outCompact": "输出 {count}", "metrics.cache": "缓存 {read}读/{write}写", "metrics.tokens": "{count} token", "metrics.tok": "{count} token", "metrics.tools": "{count} 个工具", "metrics.turns": "{count} 轮", "metrics.cacheRead": "{count}缓存读取", "metrics.cacheWrite": "{count}缓存写入", "metrics.cacheHit": "缓存命中率 {percent}%", "progress.resultDependency.one": "结果 {ids}", "progress.resultDependency.many": "结果 {ids}", "progress.child.one": "{count} 个子 Agent", "progress.child.many": "{count} 个子 Agent", "progress.childLabel": "子 Agent", "progress.using": "正在使用 {tool}", "progress.streaming": "正在输出", "progress.summary.failed": "{count}/{total} 失败", "progress.summary.running": "{count}/{total} 运行中", "progress.summary.done": "{count}/{total} 完成", "progress.summary.completed": "{count}/{total} 已完成", "progress.summary.retrying": "{count} 个重试中", "progress.summary.failedCount": "{count} 个失败", "progress.summary.runningCount": "{count} 个运行中", "progress.summary.completedCount": "{count}/{total} 已完成", "progress.header.pending": "{count} 个等待中", "progress.header.agents": "Agent {count}", "progress.header.delegated": "{count} 个已委派", "progress.footer": `${altKey("R")} 详情 · 1-{max} 查看 · 0 总览`, "progress.expand": `${altKey("R")} 详情`, "progress.quiet.failed": "失败", "progress.quiet.done": "完成", "attach.messageCancelled": "消息已取消", "attach.messageCannotSend": "消息无法发送", "attach.messageEmpty": "消息为空", "attach.sending": "正在发送…", "attach.retryHint": "{message} · Enter 重试 · Esc 取消", "attach.sendFailed": "发送失败 · {message} · Enter 重试 · Esc 取消", "attach.noAgentSelected": "未选择 Agent", "attach.sleepingHint": "休眠中 · 使用 teammate-send 唤醒", "attach.footer.back": "Esc 返回", "attach.footer.send": "Enter 发送", "attach.footer.message": "Enter 输入消息", "attach.footer.newline": "Shift+Enter 换行", "attach.footer.switchCount": "←→ 切换({count})", "attach.footer.switch": "←→ 切换", "attach.footer.overview": "0 总览", "attach.footer.view": "1-{max} 查看", "attach.footer.activity": "t 活动", "attach.footer.transcript": "t 对话记录", "attach.footer.scroll": "↑↓ 滚动{range}", "attach.message.label": "消息 ·", "attach.message.compose": "按 Enter 输入", "attach.main": "主对话", "attach.mainReturn": "按 Enter 或 Esc 返回主 Agent", "attach.mainCompact": "● 主对话 · Enter 返回", "attach.mainDocked": "● 主对话 · Enter 返回", "attach.footer.return": "Enter 返回", "attach.noActiveSession": "Agent · 没有活跃会话", "attach.waitingOutput": "等待输出…", "attach.waitingDependencies": "等待依赖结果…", "attach.agentsSummary": "Agent · {running} 个运行中 · {pending} 个等待中{failed} · {range}", "attach.tools": "工具 ·", "attach.toolsIdle": "工具 · 空闲", "attach.toolsIdleSeconds": "工具 · 已空闲 {seconds} 秒", "attach.loadingTranscript": "正在加载对话记录…", "attach.noTranscript": "没有可用的对话记录", "attach.emptyTranscript": "对话记录为空", "attach.olderMessages": "… 已隐藏更早的 {count} 条消息", "attach.refreshing": "正在刷新…", "attach.memoryTranscript": "实时活动 · 没有持久化会话", "attach.thinkingLines": "({count} 行)", "attach.typeMessage": "输入消息", "attach.compactCancel": "Esc 取消 · {content}", "attach.compactMessage": "Enter 消息 · Esc", "attach.outputWaiting": "输出 · 等待中", "attach.output": "输出", "attach.outputEarlier": "输出 · 更早 {count} 条", "attach.inbox": "收件箱", "attach.inboxCount": "收件箱:{count}", }, } as const satisfies TranslationCatalogs;