Skip to content

The agent that grows with you

2.9 KB
Raw Blame
// Desktop-side /rollback /agents /config /history /save /export /import /timestamps lines
// (en_desktop_commands.ts is the source).
export const zhDesktopCommands = {
  error: (message: string) => `错误:${message}`,
  rollbackUsage: '用法:/rollback [list] | diff <n|hash> | <n|hash> [file] [--all]',
  checkpointsDisabled: '此会话未启用检查点(在 config.yaml 中设置 checkpoints.enabled)。',
  checkpointsEmpty: '此工作目录还没有检查点。',
  checkpointsHeader: '检查点(最新的在前):',
  checkpointsHint: '使用 /rollback <n> [file] 恢复(加 --all 会同时覆盖你自己的修改);使用 /rollback diff <n> 预览。',
  noDiff: '自该检查点以来没有更改。',
  rollbackFailed: (error: string) => `回滚失败:${error}`,
  unknownError: '未知错误',
  restored: (hash: string) => (hash ? `已恢复检查点 ${hash}。` : '已恢复检查点。'),
  rewound: (count: string) => `已从此对话中回退 ${count} 条消息。`,
  reopenForRewind: '重新打开此对话以查看回退后的内容。',
  agentsEmpty: '此对话中没有活跃的子代理或后台进程。',
  subagentsHeader: (count: string) => `子代理(${count}):`,
  subagentFallback: '子代理',
  statusRunning: '运行中',
  toolCalls: (count: string) => `${count} 次工具调用`,
  processesHeader: (count: string) => `后台进程(${count}):`,
  configHeader: '配置(显示、审批、粘贴和语音设置;其他内容不显示):',
  configDefaults: '(默认值)',
  configFooter: '在“设置”中更改,或在网关主机上用 `hermes config edit` 编辑 config.yaml。',
  historyHeader: (count: string) => `对话历史(${count} 条消息):`,
  historyEmpty: '还没有消息。',
  historyYou: '你',
  historyHermes: 'Hermes',
  saveUsage: '用法:/save [json|md|html] [filename] [redact]',
  saveLegacyRefused:
    '未保存:此网关无法导出脱敏、指定文件名或非 JSON 的副本。请更新网关,或不带选项运行 /save,在网关主机上写入原始 JSON。',
  savedOnHost: (path: string) => `已保存到网关主机:${path}`,
  unknownPath: '(未知路径)',
  saveUnsupported: '错误:此桌面版本无法保存文件',
  saveDialogTitle: '保存对话',
  savedTo: (path: string) => `对话已保存到 ${path}`,
  saveCancelled: '未保存(已取消)。',
  exportRemote: '/export 从网关主机打包配置文件,而网关主机不是这台电脑。请在该主机上运行 `hermes profile export`。',
  importRemote:
    '/import 在网关主机上安装配置文件,而网关主机不是这台电脑。请在该主机上运行 `hermes profile import <archive>`。',
  timestampsUsage: '用法:/timestamps [on|off|status]',
  timestampsOn: '时间戳:开(仅此窗口;在 config.yaml 中设置 display.timestamps 以保留)',
  timestampsOff: '时间戳:关(仅此窗口;在 config.yaml 中设置 display.timestamps 以保留)'
}