@hncode/hncode 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/README_CN.md +14 -0
- package/package.json +1 -1
- package/src/agent-task.js +354 -337
- package/src/agent.js +19 -3
- package/src/animate.js +35 -0
- package/src/clipboard.js +54 -5
- package/src/config.js +25 -7
- package/src/file-tree.js +4 -3
- package/src/highlight.js +20 -6
- package/src/i18n.js +825 -0
- package/src/image-row.js +11 -2
- package/src/index.js +730 -610
- package/src/llm.js +146 -21
- package/src/log-file.js +112 -0
- package/src/markdown.js +619 -567
- package/src/migrate-index.js +175 -0
- package/src/migrate.js +392 -0
- package/src/panels.js +9 -7
- package/src/rows-plan-bg.js +3 -2
- package/src/rows-status.js +20 -6
- package/src/rows-tool-result.js +35 -8
- package/src/screen-paint.js +153 -128
- package/src/session-recover.js +317 -0
- package/src/session.js +203 -13
- package/src/swarm-progress.js +5 -1
- package/src/tasks-browser.js +9 -8
- package/src/team-panel.js +12 -11
- package/src/text.js +192 -149
- package/src/tool-line.js +7 -2
- package/src/tool-result.js +400 -327
- package/src/tools/ask-user-question.js +1 -2
- package/src/tools/bash.js +23 -11
- package/src/tools/edit.js +640 -665
- package/src/tools/goal.js +130 -93
- package/src/tools/read.js +141 -133
- package/src/tools/shell.js +28 -2
- package/src/tools/tasks.js +214 -214
- package/src/tools/utils.js +143 -104
- package/src/tui.js +20689 -19943
package/src/i18n.js
CHANGED
|
@@ -364,8 +364,324 @@ export const MESSAGES = {
|
|
|
364
364
|
'http.notFound': { zh: '找不到', en: 'not found' },
|
|
365
365
|
'http.badMethod': { zh: '不支持该请求方法', en: 'method not allowed' },
|
|
366
366
|
'http.unauthorized': { zh: '未授权', en: 'unauthorized' },
|
|
367
|
+
|
|
368
|
+
// ---- settings UI chrome ----
|
|
369
|
+
'setting.hint.navigate': { zh: "↑↓ 移动 · Enter 修改 · Tab 切换分类 · /search · Esc 关闭" },
|
|
370
|
+
'setting.hint.choose': { zh: "← → 选择 · Enter 保存 · Esc 取消" },
|
|
371
|
+
'setting.hint.editor': { zh: "Ctrl+S 保存 · Esc 取消 · Enter 换行 · 方向键移动" },
|
|
372
|
+
'setting.value': { zh: "值" },
|
|
373
|
+
'setting.tab.all': { zh: "全部" },
|
|
374
|
+
'setting.tab.appearance': { zh: "外观" },
|
|
375
|
+
'setting.tab.prompt': { zh: "提示" },
|
|
376
|
+
'setting.tab.model': { zh: "模型" },
|
|
377
|
+
'setting.tab.context': { zh: "上下文" },
|
|
378
|
+
'setting.tab.tools': { zh: "工具" },
|
|
379
|
+
'setting.tab.advanced': { zh: "高级" },
|
|
380
|
+
'setting.group.Display': { zh: "显示" },
|
|
381
|
+
'setting.group.Motion': { zh: "动效" },
|
|
382
|
+
'setting.group.Performance': { zh: "性能" },
|
|
383
|
+
'setting.group.Transcript': { zh: "对话记录" },
|
|
384
|
+
'setting.group.System': { zh: "系统" },
|
|
385
|
+
'setting.group.Modes': { zh: "模式" },
|
|
386
|
+
'setting.group.Provider': { zh: "服务商" },
|
|
387
|
+
'setting.group.Delegation': { zh: "委派" },
|
|
388
|
+
'setting.group.Thinking': { zh: "思考" },
|
|
389
|
+
'setting.group.Compaction': { zh: "压缩" },
|
|
390
|
+
'setting.group.Tool results': { zh: "工具结果" },
|
|
391
|
+
'setting.group.Sampling': { zh: "采样" },
|
|
392
|
+
'setting.group.Updates': { zh: "更新" },
|
|
393
|
+
'setting.group.Plugins': { zh: "插件" },
|
|
394
|
+
'setting.group.Experimental': { zh: "实验" },
|
|
395
|
+
'setting.group.Paths': { zh: "路径" },
|
|
396
|
+
|
|
397
|
+
// ---- settings schema (terminal UI) ----
|
|
398
|
+
"setting.label.theme": { zh: "配色主题" },
|
|
399
|
+
"setting.hint.theme": { zh: "配色方案。`auto` 跟随终端背景" },
|
|
400
|
+
"setting.label.calm_mode": { zh: "简洁模式" },
|
|
401
|
+
"setting.hint.calm_mode": { zh: "少一些装饰效果;保留信息,去掉动画" },
|
|
402
|
+
"setting.label.reduced_motion": { zh: "减弱动效" },
|
|
403
|
+
"setting.hint.reduced_motion": { zh: "不用扫光和脉冲,适合慢速终端连接,或纯粹出于偏好" },
|
|
404
|
+
"setting.label.render_fps": { zh: "渲染帧率" },
|
|
405
|
+
"setting.hint.render_fps": { zh: "屏幕重绘的频率。0 表示 1,终端无法以零帧率渲染。越高越流畅,也越费 CPU" },
|
|
406
|
+
"setting.label.shimmer_edge": { zh: "扫光边缘" },
|
|
407
|
+
"setting.hint.shimmer_edge": { zh: "正在运行的工具名上流动的高亮" },
|
|
408
|
+
"setting.label.show_tool_details": { zh: "工具详情" },
|
|
409
|
+
"setting.hint.show_tool_details": { zh: "在工具行上显示参数和输出预览" },
|
|
410
|
+
"setting.label.save_history": { zh: "保存显示记录" },
|
|
411
|
+
"setting.hint.save_history": { zh: "把提示、警告、计划卡片和思考过程存进会话" },
|
|
412
|
+
"setting.label.save_thinking": { zh: "保存思考" },
|
|
413
|
+
"setting.hint.save_thinking": { zh: "持久化思考块,而不只是可见的回答" },
|
|
414
|
+
"setting.label.title_display": { zh: "标题显示" },
|
|
415
|
+
"setting.hint.title_display": { zh: "在屏幕顶部显示会话标题栏" },
|
|
416
|
+
"setting.label.auto_title": { zh: "自动标题" },
|
|
417
|
+
"setting.hint.auto_title": { zh: "让模型根据第一条消息给会话起名" },
|
|
418
|
+
"setting.label.cost_currency": { zh: "成本货币" },
|
|
419
|
+
"setting.hint.cost_currency": { zh: "/cost 用哪种货币报告" },
|
|
420
|
+
"setting.label.cny_per_usd": { zh: "美元兑人民币" },
|
|
421
|
+
"setting.hint.cny_per_usd": { zh: "用人民币报告成本时的汇率;0 表示自动获取" },
|
|
422
|
+
"setting.label.system_prompt": { zh: "系统提示" },
|
|
423
|
+
"setting.hint.system_prompt": { zh: "设置后完全替换内置提示" },
|
|
424
|
+
"setting.label.append_system_prompt": { zh: "追加到系统提示" },
|
|
425
|
+
"setting.hint.append_system_prompt": { zh: "接在内置提示之后,是两者里更安全的做法" },
|
|
426
|
+
"setting.label.plan_instructions": { zh: "计划模式提示" },
|
|
427
|
+
"setting.hint.plan_instructions": { zh: "计划模式开启时的额外指引" },
|
|
428
|
+
"setting.label.focus_instructions": { zh: "专注模式提示" },
|
|
429
|
+
"setting.hint.focus_instructions": { zh: "专注模式开启时的额外指引" },
|
|
430
|
+
"setting.label.swarm_instructions": { zh: "群组模式提示" },
|
|
431
|
+
"setting.hint.swarm_instructions": { zh: "群组模式开启时的额外指引" },
|
|
432
|
+
"setting.label.provider": { zh: "服务商" },
|
|
433
|
+
"setting.hint.provider": { zh: "由哪个服务商处理请求" },
|
|
434
|
+
"setting.label.model": { zh: "模型" },
|
|
435
|
+
"setting.hint.model": { zh: "provider/model,按 config.toml 里的写法" },
|
|
436
|
+
"setting.label.default_model": { zh: "默认模型" },
|
|
437
|
+
"setting.hint.default_model": { zh: "会话没有指定模型时使用" },
|
|
438
|
+
"setting.label.secondary_model": { zh: "副模型" },
|
|
439
|
+
"setting.hint.secondary_model": { zh: "用于旁支任务:标题、压缩摘要" },
|
|
440
|
+
"setting.label.subagent_model": { zh: "子 agent 模型" },
|
|
441
|
+
"setting.hint.subagent_model": { zh: "Agent 工具使用的模型;为空表示用主模型" },
|
|
442
|
+
"setting.label.effort": { zh: "思考等级" },
|
|
443
|
+
"setting.hint.effort": { zh: "只提供当前模型声明的等级" },
|
|
444
|
+
"setting.label.max_context_tokens": { zh: "上下文窗口" },
|
|
445
|
+
"setting.hint.max_context_tokens": { zh: "目录数据不对时覆盖模型的窗口;0 表示使用它提供的值" },
|
|
446
|
+
"setting.label.prompt_cache": { zh: "提示缓存" },
|
|
447
|
+
"setting.hint.prompt_cache": { zh: "让服务商缓存请求前缀" },
|
|
448
|
+
"setting.label.auto_compact": { zh: "自动压缩" },
|
|
449
|
+
"setting.hint.auto_compact": { zh: "窗口变满时总结较旧的历史" },
|
|
450
|
+
"setting.label.compact_threshold": { zh: "压缩阈值" },
|
|
451
|
+
"setting.hint.compact_threshold": { zh: "触发压缩的窗口占比" },
|
|
452
|
+
"setting.label.compact_keep_ratio": { zh: "保留比例" },
|
|
453
|
+
"setting.hint.compact_keep_ratio": { zh: "压缩后保留当前用量的比例" },
|
|
454
|
+
"setting.label.auto_trim": { zh: "自动裁剪" },
|
|
455
|
+
"setting.hint.auto_trim": { zh: "从请求里省略旧的工具输出" },
|
|
456
|
+
"setting.label.trim_threshold": { zh: "裁剪阈值" },
|
|
457
|
+
"setting.hint.trim_threshold": { zh: "触发裁剪的窗口占比" },
|
|
458
|
+
"setting.label.trim_keep_ratio": { zh: "保留比例" },
|
|
459
|
+
"setting.hint.trim_keep_ratio": { zh: "裁剪后保留工具结果文本的比例,和触发阈值的刻度不同" },
|
|
460
|
+
"setting.label.tool_result_max_bytes": { zh: "结果最大字节" },
|
|
461
|
+
"setting.hint.tool_result_max_bytes": { zh: "更大的输出写入磁盘,并用指针替代" },
|
|
462
|
+
"setting.label.tool_result_preview_bytes": { zh: "预览字节" },
|
|
463
|
+
"setting.hint.tool_result_preview_bytes": { zh: "溢出的结果里保留多少内容在行内" },
|
|
464
|
+
"setting.label.tool_allow_external_paths": { zh: "允许外部路径" },
|
|
465
|
+
"setting.hint.tool_allow_external_paths": { zh: "让文件工具读写工作区之外的路径" },
|
|
466
|
+
"setting.label.swarm_mode": { zh: "群组模式" },
|
|
467
|
+
"setting.hint.swarm_mode": { zh: "开放 AgentSwarm,用于把工作分给多个子 agent" },
|
|
468
|
+
"setting.label.output_style": { zh: "输出风格" },
|
|
469
|
+
"setting.hint.output_style": { zh: "覆盖回答写法的命名风格" },
|
|
470
|
+
"setting.label.web_search_api_key": { zh: "WebSearch API key" },
|
|
471
|
+
"setting.hint.web_search_api_key": { zh: "一行一个 key,按顺序尝试;第一个额度用完就用第二个。可在 https://app.tavily.com 免费获取(登录后从面板复制)。留空则使用无 key 模式,按 IP 限流" },
|
|
472
|
+
"setting.label.auto_update": { zh: "自动更新" },
|
|
473
|
+
"setting.hint.auto_update": { zh: "启动时和每 30 分钟检查一次 npm" },
|
|
474
|
+
"setting.label.experiments": { zh: "实验功能" },
|
|
475
|
+
"setting.hint.experiments": { zh: "要启用的功能开关,用逗号分隔" },
|
|
476
|
+
"setting.label.telemetry": { zh: "遥测" },
|
|
477
|
+
"setting.hint.telemetry": { zh: "发送匿名用量统计" },
|
|
478
|
+
"setting.label.vim_mode": { zh: "Vim 模式" },
|
|
479
|
+
"setting.hint.vim_mode": { zh: "输入框里的模态按键" },
|
|
480
|
+
"setting.label.shell": { zh: "Shell" },
|
|
481
|
+
"setting.hint.shell": { zh: "Bash 工具使用的程序;为空表示自动检测" },
|
|
482
|
+
"setting.label.mcp_config_path": { zh: "MCP 配置路径" },
|
|
483
|
+
"setting.hint.mcp_config_path": { zh: "默认是 ~/.hncode/mcp.json" },
|
|
484
|
+
"setting.label.checkpoints_max": { zh: "最大检查点数" },
|
|
485
|
+
"setting.hint.checkpoints_max": { zh: "每个会话的文件历史条目上限" },
|
|
486
|
+
"setting.label.log_level": { zh: "日志级别" },
|
|
487
|
+
"setting.hint.log_level": { zh: "有多少内容写入 session-errors.log" },
|
|
488
|
+
"setting.label.probe_timeout_ms": { zh: "探测超时(毫秒)" },
|
|
489
|
+
"setting.hint.probe_timeout_ms": { zh: "/doctor --probe 等待回复的时间" },
|
|
490
|
+
"setting.label.base_url": { zh: "Base URL" },
|
|
491
|
+
"setting.hint.base_url": { zh: "服务商没有指定地址时使用的端点" },
|
|
492
|
+
"setting.label.protocol": { zh: "协议" },
|
|
493
|
+
"setting.hint.protocol": { zh: "线上的格式;为空时根据服务商推断" },
|
|
494
|
+
"setting.label.max_context_size": { zh: "最大上下文大小" },
|
|
495
|
+
"setting.hint.max_context_size": { zh: "目录没有窗口数据时的启动默认值;0 表示再次回退" },
|
|
496
|
+
"setting.label.max_output_size": { zh: "最大输出大小" },
|
|
497
|
+
"setting.hint.max_output_size": { zh: "回答长度的启动默认值;0 表示回退" },
|
|
498
|
+
"setting.label.reasoning": { zh: "默认开启思考" },
|
|
499
|
+
"setting.hint.reasoning": { zh: "新会话是否默认开启思考" },
|
|
500
|
+
"setting.label.plugins_dir": { zh: "插件目录" },
|
|
501
|
+
"setting.hint.plugins_dir": { zh: "插件从哪里加载;默认是 ~/.hncode/plugins" },
|
|
502
|
+
"setting.label.web_host": { zh: "Web 主机" },
|
|
503
|
+
"setting.hint.web_host": { zh: "/web 守护进程绑定的地址" },
|
|
504
|
+
"setting.label.web_port": { zh: "Web 端口" },
|
|
505
|
+
"setting.hint.web_port": { zh: "全局唯一守护进程的固定端口" },
|
|
506
|
+
|
|
507
|
+
// ---- terminal UI ---------------------------------------------------------
|
|
508
|
+
//
|
|
509
|
+
// The TUI used to be English by construction, and that is wrong: the person reading
|
|
510
|
+
// the screen is not always the person who wrote the code. Only what the USER reads is
|
|
511
|
+
// here — command descriptions, the help panel, menu hints. The system prompt and
|
|
512
|
+
// anything the model reads stay English, because they are instructions to the model,
|
|
513
|
+
// not text for a reader.
|
|
514
|
+
//
|
|
515
|
+
// Command names, tool names, `token`, `MCP`, `git` and friends are left untranslated:
|
|
516
|
+
// they are the words the user types, so translating them would make the help wrong.
|
|
517
|
+
'tui.help.commands': { zh: 'hncode — 命令', en: 'hncode — commands' },
|
|
518
|
+
'tui.help.matching': { zh: 'hncode — 匹配 “{filter}” 的命令', en: 'hncode — commands matching "{filter}"' },
|
|
519
|
+
'tui.help.noMatch': { zh: '没有匹配 “{filter}” 的命令。', en: 'No command matches "{filter}".' },
|
|
520
|
+
'tui.help.other': { zh: '其他', en: 'Other' },
|
|
521
|
+
'tui.help.skillRun': { zh: '运行已安装的技能(Tab 补全名字)', en: 'run an installed skill (Tab completes the name)' },
|
|
522
|
+
'tui.help.skillImport': { zh: '从文件添加技能,或安装一个仓库里的全部技能', en: 'add a skill from a file, or install a repository of them' },
|
|
523
|
+
'tui.help.skillOpen': { zh: '打开技能管理器(Tab 切换页签)', en: 'open the skill manager (Tab switches tabs)' },
|
|
524
|
+
'tui.help.skillInstall': { zh: '从仓库下载一个技能,不经过面板', en: 'download one from the repo, without the panel' },
|
|
525
|
+
'tui.help.skillRemove': { zh: '删除本地副本', en: 'delete the local copy' },
|
|
526
|
+
'tui.help.pluginOpen': { zh: '打开插件管理器', en: 'open the plugin manager' },
|
|
527
|
+
'tui.help.pluginInstall': { zh: '从仓库下载一个插件', en: 'download one from the repo' },
|
|
528
|
+
'tui.help.groupEveryday': { zh: '常用', en: 'Everyday' },
|
|
529
|
+
'tui.help.groupSession': { zh: '会话', en: 'Session' },
|
|
530
|
+
'tui.help.groupContext': { zh: '上下文', en: 'Context' },
|
|
531
|
+
'tui.help.groupWork': { zh: '工作方式', en: 'Work' },
|
|
532
|
+
'tui.help.groupExtend': { zh: '扩展', en: 'Extend' },
|
|
533
|
+
'tui.help.groupDiagnostics': { zh: '诊断', en: 'Diagnostics' },
|
|
534
|
+
|
|
535
|
+
// The shortcut column. The KEY stays as it is printed on the keyboard; only the
|
|
536
|
+
// sentence beside it is translated.
|
|
537
|
+
'tui.key.send': { zh: '发送消息', en: 'send the message' },
|
|
538
|
+
'tui.key.newline': { zh: '插入换行', en: 'insert a newline' },
|
|
539
|
+
'tui.key.copy': { zh: '复制选中内容(或最后一条回答)', en: 'copy the selection (or the last answer)' },
|
|
540
|
+
'tui.key.paste': { zh: '粘贴剪贴板(多行粘贴会折叠)', en: 'paste the clipboard (multi-line pastes collapse)' },
|
|
541
|
+
'tui.key.history': { zh: '输入历史(输入框为空时)· 滚动对话', en: 'input history (empty composer) · scroll the chat' },
|
|
542
|
+
'tui.key.commands': { zh: '打开命令菜单 · Tab 补全', en: 'open the command menu · Tab completes' },
|
|
543
|
+
'tui.key.shell': { zh: '输入框为空时:切到 shell 模式(Esc/Backspace 退出)', en: 'on an empty prompt: switch to shell mode (Esc/Backspace to leave)' },
|
|
544
|
+
'tui.key.esc': { zh: '关闭菜单/对话框 · 中断当前回合', en: 'cancel the menu / dialog · interrupt the turn' },
|
|
545
|
+
'tui.key.viewOutput': { zh: '在新面板里查看完整的工具输出或回复', en: 'open the full tool output or reply in a viewer' },
|
|
546
|
+
'tui.key.background': { zh: '把运行中的 Bash 命令转到后台', en: 'move a running Bash command to the background' },
|
|
547
|
+
'tui.key.steer': { zh: '把排队的内容注入当前回合', en: 'steer queued input into the running turn' },
|
|
548
|
+
'tui.key.recall': { zh: '取回最后一条排队消息来编辑', en: 'recall the last queued message for editing' },
|
|
549
|
+
'tui.key.expand': { zh: '展开/收起工具输出和思考', en: 'expand/collapse tool output and thinking' },
|
|
550
|
+
'tui.key.todo': { zh: '展开/收起待办面板', en: 'expand/collapse the todo panel' },
|
|
551
|
+
'tui.key.quit': { zh: '退出 hncode', en: 'exit hncode' },
|
|
552
|
+
'tui.key.tab': { zh: '补全 · 在面板和选项之间切换', en: 'complete · switch between panels and options' },
|
|
553
|
+
|
|
554
|
+
// Menu and prompt hints.
|
|
555
|
+
'tui.hint.insertDismiss': { zh: 'Enter 或 Tab 插入 · Esc 关闭', en: 'Enter or Tab to insert · Esc to dismiss' },
|
|
556
|
+
'tui.hint.escClose': { zh: 'Esc 关闭', en: 'esc to close' },
|
|
557
|
+
'tui.hint.typeToSearch': { zh: '输入以搜索', en: 'type to search' },
|
|
558
|
+
'tui.hint.navSelect': { zh: '↑↓ 移动 · Enter 选择 · Esc 取消', en: '↑↓ navigate · Enter select · Esc cancel' },
|
|
559
|
+
'tui.title.addModelTo': { zh: '向 {name} 添加模型' },
|
|
560
|
+
|
|
561
|
+
// States the user watches for, rather than descriptions of a feature.
|
|
562
|
+
'tui.state.thinking': { zh: '思考中', en: 'thinking' },
|
|
563
|
+
'tui.state.working': { zh: '处理中', en: 'working' },
|
|
564
|
+
'tui.state.interrupted': { zh: '已中断', en: 'interrupted' },
|
|
565
|
+
'tui.state.stopped': { zh: '已停止', en: 'stopped' },
|
|
566
|
+
'tui.state.done': { zh: '完成', en: 'done' },
|
|
567
|
+
'tui.state.failed': { zh: '失败', en: 'failed' },
|
|
568
|
+
|
|
569
|
+
// ---- command descriptions ------------------------------------------------
|
|
570
|
+
//
|
|
571
|
+
// One key per slash command, `<cmd>.<name>`. These carry `zh` ONLY on purpose: the
|
|
572
|
+
// English text already lives beside the command in tui.js, and duplicating it here
|
|
573
|
+
// would create a second copy that drifts. A language with no entry falls back to that
|
|
574
|
+
// in-code description, so a partly translated command list still reads correctly
|
|
575
|
+
// instead of showing a key.
|
|
576
|
+
//
|
|
577
|
+
// Command NAMES are never translated — they are what the user types.
|
|
578
|
+
'cmd.yolo': { zh: 'Yolo 模式:工作区内的改动、写入和命令都自动执行;工作区外的路径、危险命令、提问和计划仍会询问' },
|
|
579
|
+
'cmd.permission': { zh: '选择权限模式' },
|
|
580
|
+
'cmd.settings': { zh: '按区域浏览并修改所有设置' },
|
|
581
|
+
'cmd.set': { zh: '按 key 设置一项配置,或列出与默认值不同的项' },
|
|
582
|
+
'cmd.sampling': { zh: '查看或设置 temperature、top_p 和 presence_penalty' },
|
|
583
|
+
'cmd.plan': { zh: '切换计划模式' },
|
|
584
|
+
'cmd.websearch-api': { zh: '编辑 WebSearch 的 API key(一行一个,按顺序尝试)' },
|
|
585
|
+
'cmd.focus': { zh: '切换专注模式(先用最小工具集,之后放全部工具)' },
|
|
586
|
+
'cmd.auto': { zh: '自动模式:从不打断你,一切都自动执行并自动决定' },
|
|
587
|
+
'cmd.ask': { zh: '询问模式:只读操作自动执行,其他动作都先询问' },
|
|
588
|
+
'cmd.model': { zh: '切换 LLM 模型' },
|
|
589
|
+
'cmd.effort': { zh: '切换思考等级' },
|
|
590
|
+
'cmd.provider': { zh: '管理 AI 服务商(增删)' },
|
|
591
|
+
'cmd.help': { zh: '显示可用命令和快捷键' },
|
|
592
|
+
'cmd.new': { zh: '在当前工作区开始一个新会话' },
|
|
593
|
+
'cmd.sessions': { zh: '浏览并恢复会话' },
|
|
594
|
+
'cmd.all-sessions': { zh: '浏览所有工作区的会话' },
|
|
595
|
+
'cmd.tasks': { zh: '浏览后台任务(全屏面板)' },
|
|
596
|
+
'cmd.swarm': { zh: '切换群组模式:把工作拆分给多个并行子 agent' },
|
|
597
|
+
'cmd.subagent-model': { zh: '子 agent 用哪个模型,Agent 和 AgentSwarm 都适用(默认是本会话的模型)' },
|
|
598
|
+
'cmd.compact': { zh: '压缩对话上下文(AI 总结 + 保留最后 20%)' },
|
|
599
|
+
'cmd.goal': { zh: '开始或管理一个自主目标' },
|
|
600
|
+
'cmd.init': { zh: '从代码库生成或更新 AGENTS.md' },
|
|
601
|
+
'cmd.fork': { zh: '把当前会话复制一份,但不切过去' },
|
|
602
|
+
'cmd.undo': { zh: '回到更早的一条提示:对话截断,那些回合改过的文件一并还原' },
|
|
603
|
+
'cmd.trim': { zh: '立即按保留比例裁剪旧的工具结果(手动)' },
|
|
604
|
+
'cmd.auto-trim': { zh: '自动裁剪工具结果:阈值是窗口的比例,keep 是工具结果文本的比例' },
|
|
605
|
+
'cmd.title': { zh: '设置或查看会话标题(同时改窗口标题)' },
|
|
606
|
+
'cmd.auto-title': { zh: '让模型根据第一条消息给会话起名(会持久化)' },
|
|
607
|
+
'cmd.ptc': { zh: 'PTC 模式:所有工具调用都走程序化沙箱,不直接调用工具' },
|
|
608
|
+
'cmd.status': { zh: '显示当前会话和运行状态' },
|
|
609
|
+
'cmd.doctor': { zh: '诊断环境:配置、存储、MCP、hooks、磁盘、git、终端' },
|
|
610
|
+
'cmd.memory-profile': { zh: '本次会话的内存都花在哪:文本、工具结果还是工具参数' },
|
|
611
|
+
'cmd.usage': { zh: '显示真实 token 用量(服务商上报)和上下文窗口' },
|
|
612
|
+
'cmd.stats': { zh: '本会话做过什么:回合数、工具、碰过的文件、耗时和 token' },
|
|
613
|
+
'cmd.cost': { zh: '显示本会话花了多少钱,美元或人民币' },
|
|
614
|
+
'cmd.context': { zh: '拆解上下文窗口被什么占满' },
|
|
615
|
+
'cmd.raw': { zh: '原样显示助手回复:不渲染 Markdown,不自动折行' },
|
|
616
|
+
'cmd.reduced-motion': { zh: '用慢速呼吸指示器代替所有动画' },
|
|
617
|
+
'cmd.shimmer-edge': { zh: '扫光边缘:cosine(两侧柔和)或 linear(前沿硬)' },
|
|
618
|
+
'cmd.output-style': { zh: '套用 ~/.hncode/output-styles/*.md 里的输出风格' },
|
|
619
|
+
'cmd.experiments': { zh: '列出或切换尚未完成的功能' },
|
|
620
|
+
'cmd.btw': { zh: '在不进入对话的旁支里问一个问题' },
|
|
621
|
+
'cmd.recap': { zh: '说说本会话进行到哪了,不改动任何东西' },
|
|
622
|
+
'cmd.secondary-model': { zh: '选择旁支问答和回顾用的模型' },
|
|
623
|
+
'cmd.replay': { zh: '逐步回放本会话:每一步模型看到的内容' },
|
|
624
|
+
'cmd.schedule': { zh: '在运行中的会话上排定的定时提示' },
|
|
625
|
+
'cmd.teleport': { zh: '导出或导入本会话,用于另一台机器或另一份代码' },
|
|
626
|
+
'cmd.search': { zh: '搜索项目并把命中插入输入框' },
|
|
627
|
+
'cmd.mcp': { zh: '显示 MCP 服务状态' },
|
|
628
|
+
'cmd.mcp-config': { zh: '管理 MCP 服务(交互式,或列出/添加/删除)' },
|
|
629
|
+
'cmd.statusline': { zh: '配置状态行显示哪些项目' },
|
|
630
|
+
'cmd.theme': { zh: '切换配色主题' },
|
|
631
|
+
'cmd.keybindings': { zh: '把某个键改映射到另一个键或一条斜杠命令' },
|
|
632
|
+
'cmd.agents': { zh: '列出运行中的子 agent,并给他们发消息、中断或关闭' },
|
|
633
|
+
'cmd.team': { zh: '带领一个团队:查看并给成员发消息、添加成员、从旧会话打开团队' },
|
|
634
|
+
'cmd.files': { zh: '以树状浏览工作区,Enter 插入路径' },
|
|
635
|
+
'cmd.checkpoints': { zh: '列出单文件检查点,单独还原某个文件' },
|
|
636
|
+
'cmd.save-history': { zh: '把只用于显示的记录(提示、警告、压缩、计划卡片、思考)存进会话' },
|
|
637
|
+
'cmd.export-md': { zh: '把当前会话导出为 Markdown 文件' },
|
|
638
|
+
'cmd.import-session': { zh: '把一个 Markdown 文件附到提示里,让 AI 直接读,不调用工具' },
|
|
639
|
+
'cmd.copy': { zh: '复制最后一条助手消息到剪贴板' },
|
|
640
|
+
'cmd.set-system-prompt': { zh: '编辑系统提示,或载入某个模型系列的预设' },
|
|
641
|
+
'cmd.personal': { zh: '编辑注入到每条提示里的个人偏好(全局或按项目)' },
|
|
642
|
+
'cmd.permissions': { zh: '查看或编辑工具的常驻允许/询问/拒绝规则' },
|
|
643
|
+
'cmd.external': { zh: '开关工作区外路径的访问权限(会持久化)' },
|
|
644
|
+
'cmd.web': { zh: '把这个会话提供给浏览器(需要令牌,默认只听回环)' },
|
|
645
|
+
'cmd.calm-mode': { zh: '简洁回复:不再叙述将要做什么和为什么,除非你问' },
|
|
646
|
+
'cmd.add-dir': { zh: '添加或列出额外的工作区目录' },
|
|
647
|
+
'cmd.move': { zh: '把当前会话移到另一个目录(目录必须存在)' },
|
|
648
|
+
'cmd.vim': { zh: '用 $EDITOR 编辑输入框内容(默认 vim),保存后回填' },
|
|
649
|
+
'cmd.reload': { zh: '不重启就重新加载配置和插件' },
|
|
650
|
+
'cmd.reload-config': { zh: '只重新加载 config.toml 里的设置' },
|
|
651
|
+
'cmd.plugins': { zh: '打开插件管理器(已安装 + 仓库里可安装的)' },
|
|
652
|
+
'cmd.skills': { zh: '打开技能管理器(已安装 + 仓库里可安装的)' },
|
|
653
|
+
'cmd.import-skill': { zh: '从 Markdown 文件添加技能,或安装一个 GitHub 仓库里的全部技能(owner/repo)' },
|
|
654
|
+
'cmd.hooks': { zh: '显示已配置的 shell 钩子,或测试其中一个' },
|
|
655
|
+
'cmd.git': { zh: '显示仓库状态(分支、改动、远端)' },
|
|
656
|
+
'cmd.commit': { zh: '暂存并提交,附一条信息(也可以让 agent 起草)' },
|
|
657
|
+
'cmd.branch': { zh: '列出、创建或切换 git 分支' },
|
|
658
|
+
'cmd.worktree': { zh: '列出、创建或删除用于并行工作的 git worktree' },
|
|
659
|
+
'cmd.pr': { zh: '显示为当前分支开 pull request 的链接' },
|
|
660
|
+
'cmd.add': { zh: '暂存改动(默认全部,也可指定路径)' },
|
|
661
|
+
'cmd.diff': { zh: '显示未提交的改动' },
|
|
662
|
+
'cmd.review': { zh: '让 agent 审查未提交的改动并报告真实问题' },
|
|
663
|
+
'cmd.log': { zh: '显示最近的提交' },
|
|
664
|
+
'cmd.push': { zh: '推送当前分支(会先问)' },
|
|
665
|
+
'cmd.stash': { zh: '暂存改动:list / push / pop' },
|
|
666
|
+
'cmd.rebase': { zh: '把当前分支变基到另一个分支(会先问)' },
|
|
667
|
+
'cmd.cache': { zh: '开关长稳定前缀的提示缓存(省输入 token)' },
|
|
668
|
+
'cmd.logout': { zh: '退出已配置的服务商登录' },
|
|
669
|
+
'cmd.feedback': { zh: '打开预填好的 GitHub issue(标题 + 正文)' },
|
|
670
|
+
'cmd.update': { zh: '检查并安装新版本' },
|
|
671
|
+
'cmd.auto-update': { zh: '开关后台自动更新(启动时检查,之后每 30 分钟)' },
|
|
672
|
+
'cmd.auto-compact': { zh: '自动上下文压缩:开关,或设置触发/保留比例' },
|
|
673
|
+
'cmd.version': { zh: '显示版本信息' },
|
|
674
|
+
'cmd.exit': { zh: '退出应用' },
|
|
675
|
+
'cmd.lang': { zh: '切换界面语言(zh / en)' },
|
|
676
|
+
"… {n} more lines, ctrl+o to expand": "… {n} 行未显示,ctrl+o 展开",
|
|
677
|
+
"… ({n} more lines not shown; press ctrl+e for the whole thing)": "…({n} 行未显示,ctrl+e 查看全部)",
|
|
678
|
+
"… {n} more line not shown; ctrl+o collapses, ctrl+e shows all of it": "… {n} 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
679
|
+
"… {n} more lines not shown; ctrl+o collapses, ctrl+e shows all of it": "… {n} 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
680
|
+
"… +{n} more (done: {n}) · ctrl+t to expand · drag the top rule to resize": "… 还有 {n} 条(已完成 {n})· ctrl+t 展开 · 拖动顶部横线调整大小",
|
|
367
681
|
};
|
|
368
682
|
|
|
683
|
+
|
|
684
|
+
|
|
369
685
|
/**
|
|
370
686
|
* Look up one key. `lang` is a language id; anything unknown falls back to the
|
|
371
687
|
* default, then to English, then to the key itself (which makes a missing string
|
|
@@ -381,6 +697,515 @@ export function t(lang, key, vars) {
|
|
|
381
697
|
return s;
|
|
382
698
|
}
|
|
383
699
|
|
|
700
|
+
/**
|
|
701
|
+
* Look up a string that may be TRANSLATED-OR-NOT, returning `fallback` when there is no
|
|
702
|
+
* entry for this language.
|
|
703
|
+
*
|
|
704
|
+
* This is what the terminal UI uses. A command's English description lives beside the
|
|
705
|
+
* command in tui.js, where it is read by whoever maintains the command — copying it into
|
|
706
|
+
* MESSAGES as well would make two copies that drift. So the table holds only the
|
|
707
|
+
* translations, and an untranslated string comes back from the code itself.
|
|
708
|
+
*
|
|
709
|
+
* `undefined` is returned only when there is nothing to say in either place, which lets a
|
|
710
|
+
* caller distinguish "not translated" from "no text at all".
|
|
711
|
+
*/
|
|
712
|
+
export function tOr(lang, key, fallback) {
|
|
713
|
+
const entry = MESSAGES[key];
|
|
714
|
+
if (!entry || !entry[lang]) return fallback;
|
|
715
|
+
return entry[lang];
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
// ---- exact-string translations ------------------------------------------------
|
|
719
|
+
//
|
|
720
|
+
// The terminal UI's notices are built at the call site, often from a template, so they
|
|
721
|
+
// have no key to look up. Rather than rewrite two hundred call sites — which would put a
|
|
722
|
+
// key between every message and the code that composes it — the FINAL string is matched
|
|
723
|
+
// here.
|
|
724
|
+
//
|
|
725
|
+
// The key is the exact English text. A message that interpolates a value cannot match, and
|
|
726
|
+
// is deliberately left English: a half-substituted sentence is worse than a correct one in
|
|
727
|
+
// the wrong language. Templates that matter are translated at their call site with `tr()`.
|
|
728
|
+
//
|
|
729
|
+
// This is a MAP, not a table of entries: there is nothing to fall back to, because the
|
|
730
|
+
// English is already the key.
|
|
731
|
+
export const NOTICE_ZH = {
|
|
732
|
+
'Loading provider list…': '正在加载服务商列表…',
|
|
733
|
+
'No known providers found in catalog.': '目录里找不到已知的服务商',
|
|
734
|
+
'That is the session you are in. Use /new first, or pick another one.': '这就是你当前所在的会话。先用 /new 开一个,再选别的',
|
|
735
|
+
'No models configured. Add one first: /provider': '没有配置模型。先用 /provider 添加一个',
|
|
736
|
+
'Invalid ratio; use 0-1 (e.g., 0.2 to drop the oldest 20% of messages)': '比例不合法,请用 0-1(比如 0.2 表示丢掉最旧的 20% 消息)',
|
|
737
|
+
'System prompt override cleared; the built-in prompt is in use again.': '已清除自定义系统提示,重新使用内置提示',
|
|
738
|
+
'No permission rules set — /permissions edit to add some.': '还没有权限规则,用 /permissions edit 添加',
|
|
739
|
+
'Goal resumed.': '目标已恢复',
|
|
740
|
+
'Output style cleared.': '已清除输出风格',
|
|
741
|
+
'Takes effect on the next request.': '下一次请求生效',
|
|
742
|
+
'Side thread box open — type a question and press Enter. Esc closes it.': '旁支输入框已打开,输入问题按 Enter,Esc 关闭',
|
|
743
|
+
'Side thread closed.': '旁支已关闭',
|
|
744
|
+
'Nothing to jump to yet.': '还没有可以跳转的内容',
|
|
745
|
+
'Jumped to the top of the session.': '已跳到会话开头',
|
|
746
|
+
'Jumped to the last failure.': '已跳到最后一次失败',
|
|
747
|
+
'Jumped to the last reply.': '已跳到最近一条回复',
|
|
748
|
+
'Use /jump top, /jump error, or /jump reply.': '用法:/jump top、/jump error 或 /jump reply',
|
|
749
|
+
'Nothing to recap yet — this session has no conversation.': '还没有可回顾的内容,本会话还没有对话',
|
|
750
|
+
'Secondary model cleared.': '已清除副模型',
|
|
751
|
+
'Checking for updates...': '正在检查更新…',
|
|
752
|
+
'Config and plugins reloaded.': '配置和插件已重新加载',
|
|
753
|
+
'Reload them with /plugins reload, or restart hncode.': '用 /plugins reload 重新加载,或重启 hncode',
|
|
754
|
+
'Issue link copied to the transcript (Ctrl+Shift+C to copy).': 'issue 链接已写入对话(Ctrl+Shift+C 复制)',
|
|
755
|
+
'The last background update failed. Run /update to see why.': '上次后台更新失败,运行 /update 查看原因',
|
|
756
|
+
'Clipboard empty or unavailable': '剪贴板为空或不可用',
|
|
757
|
+
'Nothing to steer into (the agent is idle)': '没有正在进行的回合可以注入(agent 空闲)',
|
|
758
|
+
'Nothing queued to steer': '排队里没有内容可以注入',
|
|
759
|
+
'Interrupted': '已中断',
|
|
760
|
+
'Pick at least one option with Space, or type an answer under Other.': '至少用空格选中一个选项,或在 Other 下自己输入答案',
|
|
761
|
+
'No provider selected — use /model to pick one.': '没有选择服务商,用 /model 选一个',
|
|
762
|
+
'Nothing to select': '没有可选中的内容',
|
|
763
|
+
'Nothing selected to cut': '没有选中可剪切的内容',
|
|
764
|
+
'Nothing to copy — select text first (or use the right-click menu)': '没有可复制的内容,先选中文字(或用右键菜单)',
|
|
765
|
+
'Nothing is waiting for input — no command is running in the foreground': '没有在等待输入,前台没有正在运行的命令',
|
|
766
|
+
'Use `@name message` to send straight to a member.': '用 `@名字 消息` 直接发给某个成员',
|
|
767
|
+
'No team. Create one: /team create <name>': '还没有团队。用 /team create <名字> 创建一个',
|
|
768
|
+
'That command has finished — input goes to the model again': '该命令已结束,输入重新交给模型',
|
|
769
|
+
'Add members with /team add <name>; it asks which model each should run.': '用 /team add <名字> 添加成员,会询问每个人用哪个模型',
|
|
770
|
+
'Nothing to background — no command is running in the foreground': '没有可转到后台的命令,前台没有正在运行的命令',
|
|
771
|
+
'Nothing to background — the agent is idle': '没有可转到后台的内容,agent 空闲',
|
|
772
|
+
'Input goes to the running command (Ctrl+G to stop)': '输入发送给正在运行的命令(Ctrl+G 停止)',
|
|
773
|
+
'Input goes back to the model': '输入重新交给模型',
|
|
774
|
+
'No todos yet': '还没有待办',
|
|
775
|
+
'Expanded tool output': '已展开工具输出',
|
|
776
|
+
'Collapsed tool output': '已收起工具输出',
|
|
777
|
+
'Changes stashed.': '已 stash 改动',
|
|
778
|
+
'Restored from stash.': '已从 stash 恢复',
|
|
779
|
+
'Stashed changes.': '已 stash 改动',
|
|
780
|
+
'No staged changes to review.': '没有已暂存的改动可审查',
|
|
781
|
+
'Staged all changes.': '已暂存全部改动',
|
|
782
|
+
'Auto title: OFF — the name comes only from /title.': '自动标题:关,名字只来自 /title',
|
|
783
|
+
'Swarm mode OFF': '群组模式:关',
|
|
784
|
+
'Raw mode: OFF — Markdown rendering restored.': '原样模式:关,Markdown 渲染已恢复',
|
|
785
|
+
'Reduced motion: OFF — animation restored.': '减弱动效:关,动画已恢复',
|
|
786
|
+
'Auto-update OFF': '自动更新:关',
|
|
787
|
+
'Auto-compaction OFF — history is no longer trimmed automatically (use /compact manually)': '自动压缩:关,不再自动裁剪历史(需要时用 /compact)',
|
|
788
|
+
'Auto-trim OFF — tool results are no longer elided from the request': '自动裁剪:关,请求里不再省略旧工具结果',
|
|
789
|
+
'External paths: OFF — tools are confined to the workspace.': '外部路径:关,工具被限制在工作区内',
|
|
790
|
+
'PTC mode: OFF — direct tool calls are available again.': 'PTC 模式:关,重新可以直接调用工具',
|
|
791
|
+
"Plan cleared.": "计划已清除",
|
|
792
|
+
"Usage: /sampling [on|off] | temperature <0-2> | top_p <0-1> | presence_penalty <-2-2>": "用法:/sampling [on|off] | temperature <0-2> | top_p <0-1> | presence_penalty <-2-2>",
|
|
793
|
+
"Usage: /lang zh|en": "用法:/lang zh|en",
|
|
794
|
+
"No providers configured. Add one first: /provider": "还没有配置服务商,先用 /provider 添加一个",
|
|
795
|
+
"Select a model first, then Ctrl+E to edit it.": "先选一个模型,再按 Ctrl+E 编辑",
|
|
796
|
+
"Cancelled: model id is required.": "已取消:必须填模型 ID",
|
|
797
|
+
"The current model has no thinking control.": "当前模型没有思考控制",
|
|
798
|
+
"Select a provider first, then Ctrl+R to refresh its models.": "先选一个服务商,再按 Ctrl+R 刷新它的模型列表",
|
|
799
|
+
"Cancelled: provider name is required.": "已取消:必须填服务商名称",
|
|
800
|
+
"Cancelled: choose a Type (OpenAI / OpenAI Responses / Anthropic).": "已取消:必须选一个类型(OpenAI / OpenAI Responses / Anthropic)",
|
|
801
|
+
"Nothing to undo.": "没有可撤销的内容",
|
|
802
|
+
"Rewind cancelled.": "已取消回退",
|
|
803
|
+
"Usage: /auto-title [on|off]": "用法:/auto-title [on|off]",
|
|
804
|
+
"Usage: /ptc [on|off]": "用法:/ptc [on|off]",
|
|
805
|
+
"Nothing to compact yet.": "还没有可压缩的内容",
|
|
806
|
+
"Busy — wait for the current turn to finish.": "正在忙,等当前回合结束",
|
|
807
|
+
"Usage: /personal [global|project]": "用法:/personal [global|project]",
|
|
808
|
+
"Usage: /memory [global|project|clear]": "用法:/memory [global|project|clear]",
|
|
809
|
+
"Usage: /external [on|off]": "用法:/external [on|off]",
|
|
810
|
+
"Note: HNCODE_ALLOW_EXTERNAL=1 is set, so access stays ON until you unset it.": "注意:已设置 HNCODE_ALLOW_EXTERNAL=1,在取消它之前访问权限一直开着",
|
|
811
|
+
"Web UI is unavailable in this build.": "这个构建里没有 Web UI",
|
|
812
|
+
"Usage: /calm-mode [on|off]": "用法:/calm-mode [on|off]",
|
|
813
|
+
"LLM not set. Configure a provider with /provider first.": "还没有配置 LLM,先用 /provider 配置一个服务商",
|
|
814
|
+
"Goal paused. Use /goal resume to continue.": "目标已暂停,用 /goal resume 继续",
|
|
815
|
+
"No goal to resume.": "没有可恢复的目标",
|
|
816
|
+
"Goal cancelled.": "目标已取消",
|
|
817
|
+
"Goal replaced.": "目标已替换",
|
|
818
|
+
"Usage: /raw [on|off]": "用法:/raw [on|off]",
|
|
819
|
+
"Usage: /reduced-motion [on|off]": "用法:/reduced-motion [on|off]",
|
|
820
|
+
"Usage: /shimmer-edge cosine|linear": "用法:/shimmer-edge cosine|linear",
|
|
821
|
+
"No style selected. Pick one with /output-style, or create one with /output-style new <name>.": "还没有选择风格,用 /output-style 选一个,或 /output-style new <名字> 新建一个",
|
|
822
|
+
"Usage: /experiments <name> [on|off]": "用法:/experiments <名字> [on|off]",
|
|
823
|
+
"The side-thread box is already open — type a question, or press Esc to close it.": "旁支输入框已经打开了,直接输入问题,或按 Esc 关闭",
|
|
824
|
+
"No failure in this session.": "本会话没有失败",
|
|
825
|
+
"No reply to jump to.": "没有可跳转的回复",
|
|
826
|
+
"The recap request failed.": "回顾请求失败",
|
|
827
|
+
"The recap came back empty.": "回顾返回了空内容",
|
|
828
|
+
"This session has nothing to replay.": "本会话没有可回放的内容",
|
|
829
|
+
"Usage: /schedule [list | run <id>]": "用法:/schedule [list | run <id>]",
|
|
830
|
+
"Usage: /teleport import <file>": "用法:/teleport import <文件>",
|
|
831
|
+
"Usage: /teleport [export [path] | import <file>]": "用法:/teleport [export [路径] | import <文件>]",
|
|
832
|
+
"Nothing to trim.": "没有可裁剪的内容",
|
|
833
|
+
"Nothing to trim — no tool result is large enough to elide.": "没有可裁剪的内容,没有哪个工具结果大到需要省略",
|
|
834
|
+
"Name and command/URL are required.": "名称和命令/URL 都必须填",
|
|
835
|
+
"Usage: /mcp-config add <name> <command|url> [args...]": "用法:/mcp-config add <名字> <命令|URL> [参数...]",
|
|
836
|
+
"Usage: /mcp-config (manage) | list | add <name> <command|url> [args...] | remove <name>": "用法:/mcp-config (管理) | list | add <名字> <命令|URL> [参数...] | remove <名字>",
|
|
837
|
+
"Usage: /save-history [on|off|thinking|nothinking]": "用法:/save-history [on|off|thinking|nothinking]",
|
|
838
|
+
"Usage: /keybindings add <key> <key|/command> e.g. /keybindings add ctrl+e /theme": "用法:/keybindings add <键> <键|/命令> 例如 /keybindings add ctrl+e /theme",
|
|
839
|
+
"A key cannot be bound to itself.": "不能把一个键绑定到它自己",
|
|
840
|
+
"Usage: /keybindings remove <key>": "用法:/keybindings remove <键>",
|
|
841
|
+
"Target must be a different key or a /command.": "目标必须是另一个键或一条 /命令",
|
|
842
|
+
"Usage: /keybindings [list | add <key> <key|/command> | remove <key> | edit]": "用法:/keybindings [list | add <键> <键|/命令> | remove <键> | edit]",
|
|
843
|
+
"Usage: /agents message <agent-id> <text>": "用法:/agents message <agent-id> <文本>",
|
|
844
|
+
"Usage: /agents close <agent-id>": "用法:/agents close <agent-id>",
|
|
845
|
+
"Usage: /agents [list | message <id> <text> | interrupt [id|all] | close <id>]": "用法:/agents [list | message <id> <文本> | interrupt [id|all] | close <id>]",
|
|
846
|
+
"Usage: /team create <name>": "用法:/team create <名字>",
|
|
847
|
+
"Usage: /team add <name> [model]": "用法:/team add <名字> [模型]",
|
|
848
|
+
"Usage: /team msg <name> <text> -- \"*\" reaches every member": "用法:/team msg <名字> <文本> -- \"*\" 发给每个成员",
|
|
849
|
+
"There is nobody else on the team.": "团队里没有其他人",
|
|
850
|
+
"No team to delete.": "没有可删除的团队",
|
|
851
|
+
"Cancelled: a team needs a name.": "已取消:团队需要一个名字",
|
|
852
|
+
"No team. Create one first.": "还没有团队,先创建一个",
|
|
853
|
+
"Cancelled: a member needs a name.": "已取消:成员需要一个名字",
|
|
854
|
+
"Usage: /checkpoints [list | restore <n> | diff <n>]": "用法:/checkpoints [list | restore <n> | diff <n>]",
|
|
855
|
+
"No size comparison available for that checkpoint.": "那个检查点没有可比较的大小信息",
|
|
856
|
+
"Nothing to export (empty session).": "没有可导出的内容(空会话)",
|
|
857
|
+
"Only Markdown files are supported (.md / .markdown).": "只支持 Markdown 文件(.md / .markdown)",
|
|
858
|
+
"No assistant message to copy.": "没有可复制的助手消息",
|
|
859
|
+
"Clipboard unavailable.": "剪贴板不可用",
|
|
860
|
+
"Usage: /move <target-directory>": "用法:/move <目标目录>",
|
|
861
|
+
"External editor is unavailable in this session.": "本会话里外部编辑器不可用",
|
|
862
|
+
"Usage: /plugins remove <name>": "用法:/plugins remove <名字>",
|
|
863
|
+
"Reload is unavailable in this host.": "这个宿主里不支持重新加载",
|
|
864
|
+
"Usage: /plugins [list] | install <name> | remove <name> | reload": "用法:/plugins [list] | install <名字> | remove <名字> | reload",
|
|
865
|
+
"Usage: /skills remove <name>": "用法:/skills remove <名字>",
|
|
866
|
+
"Usage: /skills [list] | install <name> | remove <name>": "用法:/skills [list] | install <名字> | remove <名字>",
|
|
867
|
+
"Usage: /import-skill <file.md | owner/repo[/subdir]> [name]": "用法:/import-skill <文件.md | owner/repo[/子目录]> [名字]",
|
|
868
|
+
"Push cancelled.": "已取消推送",
|
|
869
|
+
"Usage: /stash [list] | push [message] | pop": "用法:/stash [list] | push [信息] | pop",
|
|
870
|
+
"Usage: /rebase <branch>": "用法:/rebase <分支>",
|
|
871
|
+
"Rebase cancelled.": "已取消变基",
|
|
872
|
+
"No uncommitted changes to review.": "没有未提交的改动可审查",
|
|
873
|
+
"Nothing to commit — working tree is clean.": "没有可提交的内容,工作区是干净的",
|
|
874
|
+
"Usage: /branch -c <name> [from]": "用法:/branch -c <名字> [起点]",
|
|
875
|
+
"No git remote named \"origin\" — cannot build a PR URL.": "没有名为 \"origin\" 的 git 远端,无法生成 PR 链接",
|
|
876
|
+
"PR link copied to your clipboard": "PR 链接已复制到剪贴板",
|
|
877
|
+
"Could not reach the clipboard — the link is on screen above.": "读不到剪贴板,链接在上面屏幕上",
|
|
878
|
+
"Usage: /worktree add <dir> [branch]": "用法:/worktree add <目录> [分支]",
|
|
879
|
+
"Usage: /worktree remove <dir>": "用法:/worktree remove <目录>",
|
|
880
|
+
"Worktree removal cancelled.": "已取消删除 worktree",
|
|
881
|
+
"Usage: /worktree [list] | new [name] [--branch] | add <dir> [branch] | remove <dir>": "用法:/worktree [list] | new [名字] [--branch] | add <目录> [分支] | remove <目录>",
|
|
882
|
+
"Nothing to logout.": "没有可退出的登录",
|
|
883
|
+
"Usage: /feedback <title> | <body>": "用法:/feedback <标题> | <正文>",
|
|
884
|
+
"Ctrl+Click to expand it": "Ctrl+点击展开",
|
|
885
|
+
"Nothing to copy": "没有可复制的内容",
|
|
886
|
+
"Clipboard unavailable": "剪贴板不可用",
|
|
887
|
+
"Nothing selected": "没有选中内容",
|
|
888
|
+
"Clipboard is empty": "剪贴板是空的",
|
|
889
|
+
"Nothing to copy — select text first": "没有可复制的内容,先选中文字",
|
|
890
|
+
"No assistant message to copy": "没有可复制的助手消息",
|
|
891
|
+
"Nothing to copy — the selection is empty": "没有可复制的内容,选中的是空的",
|
|
892
|
+
"Nothing to show yet": "还没有可显示的内容",
|
|
893
|
+
"Web UI is not running": "Web UI 没有在运行",
|
|
894
|
+
"Actions": "操作",
|
|
895
|
+
"Add A Custom Provider": "添加自定义服务商",
|
|
896
|
+
"Add MCP server": "添加 MCP 服务",
|
|
897
|
+
"Add a member": "添加成员",
|
|
898
|
+
"Add a provider": "添加服务商",
|
|
899
|
+
"Add model — choose a provider": "添加模型 — 选择服务商",
|
|
900
|
+
"Agent memory — choose a scope": "Agent 内存 — 选择范围",
|
|
901
|
+
"Clear agent memory — choose a scope": "清除 Agent 内存 — 选择范围",
|
|
902
|
+
"Commands": "命令",
|
|
903
|
+
"Create a team": "创建团队",
|
|
904
|
+
"Edit": "编辑",
|
|
905
|
+
"Experiments": "实验功能",
|
|
906
|
+
"Import a Markdown file into the prompt": "把 Markdown 文件导入到提示里",
|
|
907
|
+
"Output styles": "输出风格",
|
|
908
|
+
"Permissions": "权限",
|
|
909
|
+
"Personal preferences — choose a scope": "个人偏好 — 选择范围",
|
|
910
|
+
"Recap": "回顾",
|
|
911
|
+
"Replay": "回放",
|
|
912
|
+
"Review plan — edit before executing": "审查计划 — 执行前可编辑",
|
|
913
|
+
"Rewind to just before…": "回退到这之前…",
|
|
914
|
+
"Schedules": "定时任务",
|
|
915
|
+
"Search project": "搜索项目",
|
|
916
|
+
"Secondary model (side questions, recaps)": "副模型(旁支问答、回顾)",
|
|
917
|
+
"Select a known provider": "选择已知服务商",
|
|
918
|
+
"Select a model": "选择模型",
|
|
919
|
+
"Select a provider": "选择服务商",
|
|
920
|
+
"Select a provider to log out": "选择要退出的服务商",
|
|
921
|
+
"Select a subagent model": "选择子 agent 模型",
|
|
922
|
+
"Select permission mode": "选择权限模式",
|
|
923
|
+
"Select thinking effort": "选择思考等级",
|
|
924
|
+
"Session title": "会话标题",
|
|
925
|
+
"Settings": "设置",
|
|
926
|
+
"Status line items": "状态行项目",
|
|
927
|
+
"System prompt": "系统提示",
|
|
928
|
+
"System prompt presets": "系统提示预设",
|
|
929
|
+
"Teleport exported": "Teleport 已导出",
|
|
930
|
+
"Theme": "主题",
|
|
931
|
+
"WebSearch API keys — one per line, tried in order": "WebSearch API key — 一行一个,按顺序尝试",
|
|
932
|
+
"What will run - ": "将要执行 - ",
|
|
933
|
+
"hncode — checkpoints": "hncode — 检查点",
|
|
934
|
+
"hncode — doctor": "hncode — 诊断",
|
|
935
|
+
"hncode — git": "hncode — git",
|
|
936
|
+
"hncode — hooks": "hncode — hooks",
|
|
937
|
+
"hncode — keybindings": "hncode — 键位",
|
|
938
|
+
"hncode — mcp": "hncode — mcp",
|
|
939
|
+
"hncode — memory": "hncode — 内存",
|
|
940
|
+
"hncode — saved plans": "hncode — 已保存的计划",
|
|
941
|
+
"hncode — subagents": "hncode — 子 agent",
|
|
942
|
+
"↑↓ navigate · Enter select · Esc cancel": "↑↓ 移动 · Enter 选择 · Esc 取消",
|
|
943
|
+
"↑↓ navigate · Enter change · Tab category · /search · Esc close": "↑↓ 移动 · Enter 修改 · Tab 切换分类 · /search · Esc 关闭",
|
|
944
|
+
"↑↓ navigate · Enter select · Tab category · Ctrl+E edit": "↑↓ 移动 · Enter 选择 · Tab 切换分类 · Ctrl+E 编辑",
|
|
945
|
+
"↑↓ navigate · Enter edit · Del remove · Ctrl+R refresh": "↑↓ 移动 · Enter 编辑 · Del 删除 · Ctrl+R 刷新",
|
|
946
|
+
"↑↓ navigate · type to search · Enter select · Esc cancel": "↑↓ 移动 · 输入搜索 · Enter 选择 · Esc 取消",
|
|
947
|
+
"↑↓ navigate · Tab switch category · Enter select · Esc cancel": "↑↓ 移动 · Tab 切换分类 · Enter 选择 · Esc 取消",
|
|
948
|
+
"↑↓ navigate · type to filter · Enter rewind · Esc cancel": "↑↓ 移动 · 输入过滤 · Enter 回退 · Esc 取消",
|
|
949
|
+
"↑↓ navigate · Enter insert · Esc cancel": "↑↓ 移动 · Enter 插入 · Esc 取消",
|
|
950
|
+
"↑↓ navigate · Enter manage · Esc close": "↑↓ 移动 · Enter 管理 · Esc 关闭",
|
|
951
|
+
"↑↓ navigate · Tab category · Enter choose · Esc cancel": "↑↓ 移动 · Tab 切换分类 · Enter 选定 · Esc 取消",
|
|
952
|
+
"↑↓ navigate · Enter choose · Esc cancel": "↑↓ 移动 · Enter 选定 · Esc 取消",
|
|
953
|
+
"↑↓ navigate · Enter toggle · Esc close": "↑↓ 移动 · Enter 开关 · Esc 关闭",
|
|
954
|
+
"↑↓ navigate · Enter run · Esc cancel": "↑↓ 移动 · Enter 运行 · Esc 取消",
|
|
955
|
+
"↑↓ navigate · type to filter · Enter insert · Esc cancel": "↑↓ 移动 · 输入过滤 · Enter 插入 · Esc 取消",
|
|
956
|
+
"… more lines, ctrl+o to expand": "… 行未显示,ctrl+o 展开",
|
|
957
|
+
"… more line, ctrl+o to expand": "… 行未显示,ctrl+o 展开",
|
|
958
|
+
"… more lines not shown; ctrl+o collapses, ctrl+e shows all of it": "… 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
959
|
+
"… more line not shown; ctrl+o collapses, ctrl+e shows all of it": "… 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
960
|
+
"Ctrl+O expands tool output and Edit diffs": "Ctrl+O 展开工具输出和 Edit 的改动",
|
|
961
|
+
"Long tool results collapse — Ctrl+O expands them": "较长的工具结果会折叠,Ctrl+O 展开",
|
|
962
|
+
"↑↓ move · →/← open · Enter insert · Ctrl+O all · Esc close": "↑↓ 移动 · →/← 打开 · Enter 插入 · Ctrl+O 全部 · Esc 关闭",
|
|
963
|
+
" Todo": " 待办",
|
|
964
|
+
" Queue": " 队列",
|
|
965
|
+
"done": "已完成",
|
|
966
|
+
"in progress": "进行中",
|
|
967
|
+
"pending": "待处理",
|
|
968
|
+
"Untitled": "未命名",
|
|
969
|
+
"Press Esc to interrupt the current turn": "按 Esc 中断当前回合",
|
|
970
|
+
"!git status runs a shell command directly": "!git status 直接运行 shell 命令",
|
|
971
|
+
"/init writes an AGENTS.md from your codebase": "/init 从你的代码库生成 AGENTS.md",
|
|
972
|
+
"Use /mcp to manage MCP servers": "用 /mcp 管理 MCP 服务",
|
|
973
|
+
"The context line shows live token usage": "上下文那一行显示实时 token 用量",
|
|
974
|
+
"/goal starts a self-driving objective": "/goal 启动一个自主推进的目标",
|
|
975
|
+
"Paste multiline content — it becomes one token": "粘贴多行内容,它会变成一个 token",
|
|
976
|
+
"/usage shows token and context statistics": "/usage 显示 token 和上下文统计",
|
|
977
|
+
"Ctrl+C aborts the current turn": "Ctrl+C 中止当前回合",
|
|
978
|
+
"The spinner cycles status messages while working": "工作时转圈图标会轮流显示状态文字",
|
|
979
|
+
"/model opens a picker — Tab switches providers": "/model 打开选择器,Tab 切换服务商",
|
|
980
|
+
"/provider lets you add or switch AI providers": "/provider 添加或切换 AI 服务商",
|
|
981
|
+
"Tool calls stream their arguments live": "工具调用的参数会实时流出",
|
|
982
|
+
"/think adds inline reasoning instructions": "/think 添加行内推理指令",
|
|
983
|
+
"The todo list updates live as the agent progresses": "待办列表随 agent 进度实时更新",
|
|
984
|
+
"/focus gives the agent Read, Write, Edit, and Bash": "/focus 给 agent 只留 Read、Write、Edit 和 Bash",
|
|
985
|
+
"System messages are green — instructions, not chat": "系统消息是绿色的,是指令不是聊天",
|
|
986
|
+
"Queued messages wait for the turn to finish": "排队的消息等本回合结束后发送",
|
|
987
|
+
"/steer injects a message into the running turn": "/steer 把消息注入正在进行的回合",
|
|
988
|
+
"Ctrl+R reloads the current session from disk": "Ctrl+R 从磁盘重新加载当前会话",
|
|
989
|
+
"Alt+R re-fetches the provider's model list": "Alt+R 重新拉取服务商的模型列表",
|
|
990
|
+
"/help shows available commands at any time": "/help 随时显示可用命令",
|
|
991
|
+
"/undo rolls back the transcript AND the files": "/undo 同时回退对话和文件",
|
|
992
|
+
"/fork copies the session so you can branch": "/fork 复制会话,方便你另开分支",
|
|
993
|
+
"/sessions lists saved conversations here": "/sessions 在这里列出已保存的会话",
|
|
994
|
+
"/all-sessions lists them from every workspace": "/all-sessions 列出所有工作区的会话",
|
|
995
|
+
"/title names the current session": "/title 给当前会话命名",
|
|
996
|
+
"/compact [ratio] summarizes older history": "/compact [比例] 总结较旧的历史",
|
|
997
|
+
"/tasks lists background Bash jobs": "/tasks 列出后台 Bash 任务",
|
|
998
|
+
"/status prints model, provider, endpoint": "/status 打印模型、服务商、端点",
|
|
999
|
+
"/statusline toggles the bottom status bar items": "/statusline 切换底部状态栏的项目",
|
|
1000
|
+
"/memory shows or edits notes for later sessions": "/memory 查看或编辑给后续会话用的笔记",
|
|
1001
|
+
"/personal edits your standing preferences": "/personal 编辑你常驻的偏好",
|
|
1002
|
+
"/permissions shows allow/ask/deny rules for tools": "/permissions 查看工具的允许/询问/拒绝规则",
|
|
1003
|
+
"/external toggles access outside the workspace": "/external 切换工作区外路径的访问权限",
|
|
1004
|
+
"/web serves this session to a browser": "/web 把这个会话提供给浏览器",
|
|
1005
|
+
"/add-dir grants access to another directory": "/add-dir 授权访问另一个目录",
|
|
1006
|
+
"/reload re-reads config.toml without restarting": "/reload 不重启就重新读取 config.toml",
|
|
1007
|
+
"/skills install <name> pulls one from the repo": "/skills install <名字> 从仓库拉取一个技能",
|
|
1008
|
+
"/logout clears the stored API key": "/logout 清除已保存的 API key",
|
|
1009
|
+
"/version prints the hncode version string": "/version 打印 hncode 版本",
|
|
1010
|
+
"/feedback opens a prefilled GitHub issue": "/feedback 打开预填好的 GitHub issue",
|
|
1011
|
+
"/copy puts the last answer on the clipboard": "/copy 把最后一条回答复制到剪贴板",
|
|
1012
|
+
"/export-md writes the session to a Markdown file": "/export-md 把会话写成 Markdown 文件",
|
|
1013
|
+
"/import-session attaches a Markdown file": "/import-session 附加一个 Markdown 文件",
|
|
1014
|
+
"/new starts a fresh conversation": "/new 开始一段新对话",
|
|
1015
|
+
"/goal pause pauses the objective": "/goal pause 暂停目标",
|
|
1016
|
+
"/goal resume resumes the objective": "/goal resume 恢复目标",
|
|
1017
|
+
"/plan on makes every tool read-only": "/plan on 让所有工具只读",
|
|
1018
|
+
"/focus on gives the agent Write tools and Bash": "/focus on 给 agent Write 工具和 Bash",
|
|
1019
|
+
"/permission opens the picker for Ask / Yolo / Auto": "/permission 打开 Ask / Yolo / Auto 选择器",
|
|
1020
|
+
"/settings opens the combined settings menu": "/settings 打开合并后的设置菜单",
|
|
1021
|
+
"/yolo auto-approves anything inside the workspace": "/yolo 自动批准工作区内的一切操作",
|
|
1022
|
+
"/auto never interrupts you; everything runs": "/auto 从不打断你,一切都自动执行",
|
|
1023
|
+
"/usage shows the real token totals, not an estimate": "/usage 显示真实的 token 总量,不是估算",
|
|
1024
|
+
"/cost [usd|cny] shows what this session has spent": "/cost [usd|cny] 显示本会话花了多少钱",
|
|
1025
|
+
"The session cost appears in the status row once prices are known": "价格已知后,会话成本会显示在状态行",
|
|
1026
|
+
"Shift+Arrow selects text in the composer": "Shift+方向键在输入框里选中文字",
|
|
1027
|
+
"Shift+Enter inserts a newline without sending": "Shift+Enter 换行但不发送",
|
|
1028
|
+
"Ctrl+T expands or collapses the todo panel": "Ctrl+T 展开或收起待办面板",
|
|
1029
|
+
"Ctrl+P opens the command palette": "Ctrl+P 打开命令面板",
|
|
1030
|
+
"Ctrl+B backgrounds a running Bash command": "Ctrl+B 把运行中的 Bash 命令转到后台",
|
|
1031
|
+
"Ctrl+Shift+V pastes as a bracketed paste": "Ctrl+Shift+V 以括号粘贴方式粘贴",
|
|
1032
|
+
"Ctrl+Shift+C copies the selection or last answer": "Ctrl+Shift+C 复制选中内容或最后一条回答",
|
|
1033
|
+
"Ctrl+L expands or collapses the plugin load log": "Ctrl+L 展开或收起插件加载日志",
|
|
1034
|
+
"Ctrl+Up / Ctrl+Down scroll the AI output area": "Ctrl+上 / Ctrl+下 滚动 AI 输出区域",
|
|
1035
|
+
"↑ recalls the newest queued message": "↑ 取回最新一条排队消息",
|
|
1036
|
+
"↑/↓ walks through your input history": "↑/↓ 浏览你的输入历史",
|
|
1037
|
+
"PgUp / PgDn scroll the transcript": "PgUp / PgDn 滚动对话",
|
|
1038
|
+
"Mouse-wheel over the composer scrolls the chat": "鼠标滚轮在输入框上滚动对话",
|
|
1039
|
+
"Drag the right-edge scrollbar to jump": "拖动右边缘的滚动条跳转",
|
|
1040
|
+
"Double-click a row to select the whole line": "双击某一行选中整行",
|
|
1041
|
+
"Right-click a row for the copy / paste menu": "右键某一行打开复制/粘贴菜单",
|
|
1042
|
+
"Esc closes any open picker, form, or menu": "Esc 关闭任何打开的选择器、表单或菜单",
|
|
1043
|
+
"Esc aborts the in-flight model request": "Esc 中止进行中的模型请求",
|
|
1044
|
+
"Ctrl+C twice exits hncode": "连按两次 Ctrl+C 退出 hncode",
|
|
1045
|
+
"Ctrl+C with a dialog open closes the dialog": "对话框打开时按 Ctrl+C 关闭它",
|
|
1046
|
+
"The `/` menu filters as you type": "`/` 菜单随输入过滤",
|
|
1047
|
+
"Enter on a `/` item runs it": "在 `/` 项上按 Enter 执行",
|
|
1048
|
+
"Tab on a `/` item completes its name": "在 `/` 项上按 Tab 补全名字",
|
|
1049
|
+
"The context gauge turns red near the limit": "接近上限时上下文仪表会变红",
|
|
1050
|
+
"Auto-compaction triggers at 85% of the context": "自动压缩在上下文到 85% 时触发",
|
|
1051
|
+
"Old tool results are elided at 50% of the window": "窗口到 50% 时省略旧的工具结果",
|
|
1052
|
+
"/compact summarizes older history, keeping 20%": "/compact 总结较旧历史,保留 20%",
|
|
1053
|
+
"Long tool results collapse — Ctrl+O expands them": "较长的工具结果会折叠,Ctrl+O 展开",
|
|
1054
|
+
"A red bullet means the command exited non-zero": "红色圆点表示命令以非零状态退出",
|
|
1055
|
+
"A green bullet means the tool succeeded": "绿色圆点表示工具执行成功",
|
|
1056
|
+
"The `[turn took …]` line shows the turn duration": "`[turn took …]` 那一行显示本回合耗时",
|
|
1057
|
+
"/provider add picks a provider from models.dev": "/provider add 从 models.dev 选择服务商",
|
|
1058
|
+
"/model groups models by provider — Tab cycles": "/model 按服务商分组,Tab 切换",
|
|
1059
|
+
"Typing `/` opens the command palette": "输入 `/` 打开命令面板",
|
|
1060
|
+
"Compaction complete": "压缩完成",
|
|
1061
|
+
"Compaction cancelled": "压缩已取消",
|
|
1062
|
+
"Compacting context…": "正在压缩上下文…",
|
|
1063
|
+
" thinking…": " 思考中…",
|
|
1064
|
+
" (Ctrl-O to hide compaction summary)": "(Ctrl-O 收起压缩摘要)",
|
|
1065
|
+
" (Ctrl-O to show compaction summary)": "(Ctrl-O 显示压缩摘要)",
|
|
1066
|
+
" earlier messages left the screen — summarised above, still in the session file (/recap to read it back)": " 条更早的消息移出了屏幕,已在上方总结,仍在会话文件里(/recap 可读回)",
|
|
1067
|
+
" earlier message left the screen — summarised above, still in the session file (/recap to read it back)": " 条更早的消息移出了屏幕,已在上方总结,仍在会话文件里(/recap 可读回)",
|
|
1068
|
+
"the full conversation is still in the session file (/recap to read it back)": "完整对话仍在会话文件里(/recap 可读回)",
|
|
1069
|
+
"Plan": "计划",
|
|
1070
|
+
"background task finished": "后台任务已完成",
|
|
1071
|
+
"… +{n} more · ↑ to edit · ctrl-s to steer immediately · drag top rule to resize": "… 还有 {n} 条 · ↑ 编辑 · ctrl-s 立即注入 · 拖动顶部横线调整大小",
|
|
1072
|
+
"… +{n} more · ↑ to edit · will send now · drag top rule to resize": "… 还有 {n} 条 · ↑ 编辑 · 本回合结束后发送 · 拖动顶部横线调整大小",
|
|
1073
|
+
"↑ to edit · ctrl-s to steer immediately": "↑ 编辑 · ctrl-s 立即注入",
|
|
1074
|
+
"↑ to edit · will send now": "↑ 编辑 · 本回合结束后发送",
|
|
1075
|
+
"… +{n} more (done: {n}) · ctrl+t to expand · drag the top rule to resize": "… 还有 {n} 条(已完成 {n})· ctrl+t 展开 · 拖动顶部横线调整大小",
|
|
1076
|
+
"… +{n} more (in progress: {n}) · ctrl+t to expand · drag the top rule to resize": "… 还有 {n} 条(进行中 {n})· ctrl+t 展开 · 拖动顶部横线调整大小",
|
|
1077
|
+
"… +{n} more (pending: {n}) · ctrl+t to expand · drag the top rule to resize": "… 还有 {n} 条(待处理 {n})· ctrl+t 展开 · 拖动顶部横线调整大小",
|
|
1078
|
+
"… +{n} more · ctrl+t to expand · drag the top rule to resize": "… 还有 {n} 条 · ctrl+t 展开 · 拖动顶部横线调整大小",
|
|
1079
|
+
"· ctrl+t to expand · drag the top rule to resize": "· ctrl+t 展开 · 拖动顶部横线调整大小",
|
|
1080
|
+
"… +{n} more": "… 还有 {n} 条",
|
|
1081
|
+
"drag top rule to resize": "拖动顶部横线调整大小",
|
|
1082
|
+
"Files matching {s} — {n} file(s)": "匹配 {s} 的文件 — {n} 个文件",
|
|
1083
|
+
"Files — {n} file(s)": "文件 — {n} 个",
|
|
1084
|
+
"… {n} more lines, ctrl+o to expand": "… {n} 行未显示,ctrl+o 展开",
|
|
1085
|
+
"… ({n} more lines, ctrl+o to expand)": "…({n} 行未显示,ctrl+o 展开)",
|
|
1086
|
+
"… ({n} more lines not shown; press ctrl+e for the whole thing)": "…({n} 行未显示,ctrl+e 查看全部)",
|
|
1087
|
+
"… {n} more line not shown; ctrl+o collapses, ctrl+e shows all of it": "… {n} 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
1088
|
+
"… {n} more lines not shown; ctrl+o collapses, ctrl+e shows all of it": "… {n} 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
1089
|
+
"Copy": "复制",
|
|
1090
|
+
"Cut": "剪切",
|
|
1091
|
+
"Paste": "粘贴",
|
|
1092
|
+
"Select all": "全选",
|
|
1093
|
+
"copy the selected text": "复制选中文字",
|
|
1094
|
+
"cut the selected text": "剪切选中文字",
|
|
1095
|
+
"nothing selected": "没有选中内容",
|
|
1096
|
+
"paste at the caret, replacing any selection": "粘贴到光标处,替换选中内容",
|
|
1097
|
+
"select the whole text": "选中全部文字",
|
|
1098
|
+
"copy the selected composer text": "复制输入框里选中的文字",
|
|
1099
|
+
"cut the selected composer text to the clipboard": "把输入框里选中的文字剪切到剪贴板",
|
|
1100
|
+
"Copy last answer": "复制最后一条回答",
|
|
1101
|
+
"copy the last assistant message": "复制最后一条助手消息",
|
|
1102
|
+
"Clear selection": "清除选中",
|
|
1103
|
+
"drop the current selection": "取消当前选中",
|
|
1104
|
+
"Clear composer selection": "清除输入框选中",
|
|
1105
|
+
"drop the composer selection": "取消输入框里的选中",
|
|
1106
|
+
"paste the clipboard into the composer": "把剪贴板内容粘贴到输入框",
|
|
1107
|
+
"Queued…": "排队中…",
|
|
1108
|
+
"Prompting…": "提示中…",
|
|
1109
|
+
"Working…": "工作中…",
|
|
1110
|
+
"Rate limited…": "限流中…",
|
|
1111
|
+
"Completed.": "已完成。",
|
|
1112
|
+
"Failed.": "失败。",
|
|
1113
|
+
"Cancelled.": "已取消。",
|
|
1114
|
+
"Aborted.": "已中止。",
|
|
1115
|
+
"running": "运行中",
|
|
1116
|
+
"completed": "已完成",
|
|
1117
|
+
"failed": "失败",
|
|
1118
|
+
"timed out": "超时",
|
|
1119
|
+
"killed": "已终止",
|
|
1120
|
+
"lost": "已失联",
|
|
1121
|
+
"TASK BROWSER": "任务浏览器",
|
|
1122
|
+
"No active tasks. Tab = show all.": "没有进行中的任务。Tab 显示全部。",
|
|
1123
|
+
"No background tasks in this session.": "本会话没有后台任务。",
|
|
1124
|
+
"Status:": "状态:",
|
|
1125
|
+
"Agent ID:": "Agent ID:",
|
|
1126
|
+
"Agent type:": "Agent 类型:",
|
|
1127
|
+
"Installed": "已安装",
|
|
1128
|
+
"Available": "可用",
|
|
1129
|
+
"Loaded": "已加载",
|
|
1130
|
+
"On disk": "在磁盘上",
|
|
1131
|
+
"ALL": "全部",
|
|
1132
|
+
"ACTIVE": "进行中",
|
|
1133
|
+
" TASK BROWSER ": " 任务浏览器 ",
|
|
1134
|
+
" running ": " 运行中 ",
|
|
1135
|
+
" completed ": " 已完成 ",
|
|
1136
|
+
" interrupted ": " 已中断 ",
|
|
1137
|
+
" total ": " 总计 ",
|
|
1138
|
+
"Searching…": "搜索中…",
|
|
1139
|
+
"No matches": "没有匹配项",
|
|
1140
|
+
" ← current": " ← 当前",
|
|
1141
|
+
" ← choose": " ← 选择",
|
|
1142
|
+
"Tab next field · Enter submit · Esc cancel": "Tab 下一个字段 · Enter 提交 · Esc 取消",
|
|
1143
|
+
"Tab next field · ↑/↓ field · ←/→ type · Enter save · Esc cancel": "Tab 下一个字段 · ↑/↓ 字段 · ←/→ 类型 · Enter 保存 · Esc 取消",
|
|
1144
|
+
"Tab next field · Enter save · Esc cancel": "Tab 下一个字段 · Enter 保存 · Esc 取消",
|
|
1145
|
+
"Type": "类型",
|
|
1146
|
+
"Provider Name": "服务商名称",
|
|
1147
|
+
"Base URL": "Base URL",
|
|
1148
|
+
"API Key": "API Key",
|
|
1149
|
+
"+ Add provider…": "+ 添加服务商…",
|
|
1150
|
+
"create a new [providers.*] entry": "新建一个 [providers.*] 条目",
|
|
1151
|
+
"(no base_url)": "(无 base_url)",
|
|
1152
|
+
"Known provider": "已知服务商",
|
|
1153
|
+
"browse models.dev catalog": "浏览 models.dev 目录",
|
|
1154
|
+
"Custom provider": "自定义服务商",
|
|
1155
|
+
"enter base URL, key and protocol yourself": "自己填写 Base URL、key 和协议",
|
|
1156
|
+
"Add provider": "添加服务商",
|
|
1157
|
+
"OpenAI Compatible": "OpenAI 兼容",
|
|
1158
|
+
"OpenAI Responses": "OpenAI Responses",
|
|
1159
|
+
"Anthropic": "Anthropic",
|
|
1160
|
+
"+ Add model…": "+ 添加模型…",
|
|
1161
|
+
"register a model under a provider": "在某个服务商下注册模型",
|
|
1162
|
+
"Model ID": "模型 ID",
|
|
1163
|
+
"Display Name": "显示名称",
|
|
1164
|
+
"Tab next field · Enter save · Esc cancel (display name defaults to the id)": "Tab 下一个字段 · Enter 保存 · Esc 取消(显示名称默认是 ID)",
|
|
1165
|
+
"(no model set)": "(未设置模型)",
|
|
1166
|
+
"(nothing yet)": "(暂无内容)",
|
|
1167
|
+
"what it is doing": "正在做什么",
|
|
1168
|
+
"← back · Enter message · k kill · s stop · m mode": "← 返回 · Enter 发消息 · k 终止 · s 停止 · m 模式",
|
|
1169
|
+
"No members. Add one with /team add <name>.": "没有成员。用 /team add <名字> 添加。",
|
|
1170
|
+
"Enter send · Esc cancel": "Enter 发送 · Esc 取消",
|
|
1171
|
+
"Enter write · Tab next · ↑↓ select · Esc close": "Enter 编辑 · Tab 下一个 · ↑↓ 选择 · Esc 关闭",
|
|
1172
|
+
"k kill · s stop · p prune idle · m mode · r read": "k 终止 · s 停止 · p 清理空闲 · m 模式 · r 查看",
|
|
1173
|
+
"a member": "某个成员",
|
|
1174
|
+
"a tool call": "一次工具调用",
|
|
1175
|
+
};
|
|
1176
|
+
|
|
1177
|
+
// The UI's active language, shared with the render modules (rows, panels, file tree)
|
|
1178
|
+
// that draw strings which are not notices and have no tui.js key at their call site.
|
|
1179
|
+
// tui.js's setUiLang updates this; a getter keeps every renderer on the same source.
|
|
1180
|
+
let uiLang = 'en';
|
|
1181
|
+
export function setUiLang(lang) { uiLang = lang === 'zh' ? 'zh' : 'en'; }
|
|
1182
|
+
export function getUiLang() { return uiLang; }
|
|
1183
|
+
|
|
1184
|
+
/** Translate a line rendered OUTSIDE tui.js using the UI's active language. */
|
|
1185
|
+
export function uiText(text) {
|
|
1186
|
+
const s = String(text == null ? '' : text);
|
|
1187
|
+
if (uiLang !== 'zh') return s;
|
|
1188
|
+
// Direct hit first — the common case for fixed labels.
|
|
1189
|
+
if (NOTICE_ZH[s]) return NOTICE_ZH[s];
|
|
1190
|
+
// Numbers and quoted values vary; normalise both to placeholders and look up the
|
|
1191
|
+
// pattern. The translation carries the same placeholders, filled back with the
|
|
1192
|
+
// originals in order.
|
|
1193
|
+
const vars = [];
|
|
1194
|
+
const key = s
|
|
1195
|
+
.replace(/"[^"]*"/g, (m) => { vars.push(m); return '{s}'; })
|
|
1196
|
+
.replace(/\d+/g, (m) => { vars.push(m); return '{n}'; });
|
|
1197
|
+
const pattern = NOTICE_ZH[key];
|
|
1198
|
+
if (!pattern) return s;
|
|
1199
|
+
let i = 0;
|
|
1200
|
+
return pattern.replace(/\{[sn]\}/g, () => vars[i++] || '');
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
/** Translate a final, non-templated notice string. Unknown text comes back unchanged. */
|
|
1204
|
+
export function noticeText(lang, text) {
|
|
1205
|
+
if (lang !== 'zh') return text;
|
|
1206
|
+
return NOTICE_ZH[text] || text;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
384
1209
|
/** The whole table for one language, as a flat { key: string } map. */
|
|
385
1210
|
export function catalog(lang) {
|
|
386
1211
|
const out = {};
|