zcode-pro 1.10.0 → 1.12.0

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.
@@ -82,6 +82,8 @@ export const DEFAULT_TURN_ITEMS = [
82
82
  { id: 'turnOut', on: true }, // 输出
83
83
  { id: 'turnTps', on: true }, // TPS(输出 ÷ 净生成秒数,官方口径)
84
84
  { id: 'turnCache', on: true }, // 缓存命中率
85
+ { id: 'turnTtft', on: true }, // 首 token 延迟(本轮首个请求)
86
+ { id: 'turnReasoning', on: true }, // 思考 token(含在输出里)
85
87
  ];
86
88
 
87
89
  export const DEFAULT_STATUS_ITEMS = [
@@ -139,7 +141,7 @@ const zh = {
139
141
  tabProxy: '代理',
140
142
  tabBehavior: '行为',
141
143
  tabAgents: '全局提示词',
142
- tabZcode: 'ZCode CLI',
144
+ tabZcode: '运行时',
143
145
  zcodeDesc: 'ZCode 自身的行为配置(写入 ~/.zcode/cli/config.json),保存后对新会话生效。',
144
146
  zcodeStatsTitle: '技能清单检查',
145
147
  zcodeStatsCounts: '技能 {total} 个(本地 {user} · 插件 {plugin})',
@@ -177,6 +179,18 @@ const zh = {
177
179
  agentsSave: '保存',
178
180
  agentsSaved: '全局提示词已保存',
179
181
  agentsLoadFailed: '读取全局提示词失败',
182
+ injectTitle: '提示词注入',
183
+ injectDesc: '转发请求时把下面这段文字追加到系统提示词末尾,每一轮对话都带着它。与上面的全局提示词不同,它进的是系统层而不是对话层。只对开启了本机转发的供应商生效;开启注入时会自动为已启用的供应商打开转发。',
184
+ injectPlaceholder: '填写希望模型每一轮都遵守的规则;清空并保存即停止注入',
185
+ injectEnable: '启用注入',
186
+ injectDisable: '停用注入',
187
+ injectSaved: '提示词注入已保存',
188
+ injectChars: '{n} 字符',
189
+ injectLongHint: '内容较长,会明显占用对话上下文',
190
+ injectSubagents: '也注入子代理',
191
+ // 接在 injectChainHint 后面的三种状态,句读包含在文案里,拼起来是一句完整的话
192
+ injectChainStatus: ',已生效 {active}/{providers} 个供应商',
193
+ injectChainNone: ',没有已启用的供应商',
180
194
  proxyDesc: '为 ZCode Pro 本地助手发起的网络访问设置 HTTP 代理:插件市场的更新与安装、插件依赖软件的安装与升级、WebDAV 同步都可走该代理,用下方开关选择生效范围。不影响 ZCode 应用本身与模型请求。',
181
195
  proxyPlaceholder: 'http://127.0.0.1:7890',
182
196
  proxySave: '保存',
@@ -192,8 +206,108 @@ const zh = {
192
206
  proxyScopeDepsDesc: 'headroom 与 rtk 的安装、检查更新与升级(pip 与 GitHub 下载)走代理。',
193
207
  proxyScopeSync: '同步',
194
208
  proxyScopeSyncDesc: 'WebDAV 上传与下载走代理。',
209
+ proxySubSoftware: '软件代理',
210
+ proxySubVendor: '代理链',
211
+ proxyVendorDesc: '按供应商单独设置:打开后该供应商的模型请求先到本机转发端口,再按卡片里的代理链逐级发出;关闭时保持原地址直连。不改 ZCode 全局代理,也不影响其他供应商。',
212
+ proxyVendorEmpty: '还没有添加供应商代理。点下方“添加供应商”选择要走代理的供应商,添加后才会生效。',
213
+ proxySharedTitle: '共享代理',
214
+ proxySharedDesc: '在这里定义几个常用代理,下面每个供应商的代理链里可以直接选用。改这里的地址会连带影响所有引用它的供应商。',
215
+ proxySharedEmpty: '还没有共享代理。',
216
+ proxySharedAdd: '添加共享代理',
217
+ proxySharedDelete: '删除',
218
+ proxySharedName: '名称',
219
+ proxySharedInvalid: '代理地址需形如 http://127.0.0.1:7890',
220
+ chainDesc: '代理链按节点顺序处理请求:headroom 压缩 → 提示词注入 → 自定义代理出网。一条链可关联多个供应商,共用一份配置和一个转发器。出网代理(如 clash)建议放链的最后:普通代理通常不转发本机端口,放在 headroom 之前会失败。',
221
+ chainMasterSwitch: '代理链总开关',
222
+ chainMasterSwitchDesc: '关:一键还原。链配置保留,所有勾选供应商的地址还原为真实上游、停止转发。开:勾选的供应商由链接管地址。',
223
+ chainMasterOffHint: '总开关已关闭:链配置保留,勾选的供应商都已还原为直连。',
224
+ chainGoCompat: 'OpenCode Go 兼容',
225
+ chainGoCompatDesc: '供应商走链时,发往 OpenCode Go 端点的请求由 zcode-pro 补上会话请求头。关掉后 OpenCode Go 套餐的供应商经链会被拒绝,只能直连。',
226
+ chainDeleteConfirmTitle: '删除这条链?',
227
+ chainDeleteConfirmDesc: '链上勾选的 {n} 家供应商会还原成直连,并退出 headroom 压缩。',
228
+ chainDeleteConfirmDescEmpty: '这条链上没有勾选的供应商。',
229
+ chainDeleteConfirmGo: '删除',
230
+ injectGoChain: '去代理链勾选',
231
+ injectChainHint: '只对在“代理 → 代理链”里勾选的供应商生效',
232
+ chainProvidersHint: '勾选=经过 zcode-pro(压缩、注入、代理),地址由链管理;取消勾选=还原为直连并保持。',
233
+ chainManualEditHint: '地址被改成别的值(在 ZCode 里手动改的,或从别的设备同步来的)会自动退出链、保持改后的地址,右下角有提示。',
234
+ noticeAutoUncheckedTitle: '有供应商自动退出了代理链',
235
+ noticeAutoUncheckedDesc: '这些供应商勾选在链上,但地址变了(在 ZCode 里手动改的,或从别的设备同步来的)。已自动退出链,不再经过压缩和提示词注入:',
236
+ noticeAutoUncheckedItem: '{name} → {url}(原在“{chain}”链)',
237
+ noticeAutoUncheckedHow: '想让它们重新经过压缩和提示词注入,到“设置 → 代理 → 代理链”重新勾选。',
238
+ noticeGoChain: '去代理链',
239
+ // 巡检发现问题时的右下角卡片(转发器不在监听 / 走链的 headroom 实例不在监听)
240
+ noticeHealthTitle: '代理链巡检发现异常',
241
+ noticeHealthDesc: '每 30 秒一次的巡检发现问题,已经自动处理:',
242
+ noticeHealthForwarder: '转发器 127.0.0.1:{ports} 不在监听,已重新对齐',
243
+ noticeHealthForwarderDown: ',仍未恢复',
244
+ noticeHealthInstance: 'Headroom 压缩实例 127.0.0.1:{ports} 不在监听,已让 headroom 补起',
245
+ noticeHealthRouter: 'Headroom 压缩路由 127.0.0.1:{ports} 不在监听,已让 headroom 重启',
246
+ noticeHealthInstanceFailed: ',处理失败:{error}',
247
+ noticeHealthHint: '压缩实例补起来要十几秒,这期间经过压缩路由的请求可能失败,稍后重试即可。',
248
+ noticeHealthGoHeadroom: '去 Headroom 页',
249
+ // 任务名生成失败的右下角卡片(title-gen-notice.json)
250
+ noticeTitleGenTitle: '任务名生成失败',
251
+ noticeTitleGenDesc: '新会话开始时让模型起名字,这次没有成功,会话名还是 ZCode 默认的名字。',
252
+ noticeTitleGenItem: '{provider} 的 {model}:{error}',
253
+ noticeTitleGenSession: '会话用的供应商',
254
+ noticeTitleGenHow: '到“设置 → 全局提示词 → 自动重命名”换一个接口支持的供应商或模型。',
255
+ noticeTitleGenGo: '去自动重命名设置',
256
+ // 工具名检查有文件改不了的右下角卡片(tool-name-notice.json)
257
+ noticeToolNameTitle: '工具名合规检查:有文件改不了',
258
+ noticeToolNameDesc: '这些文件里的服务器名没能改短,其他文件照常处理:',
259
+ noticeToolNameItem: '{file}(想把 {changes} 改短):{error}',
260
+ noticeToolNameNoPerm: '没有写入权限',
261
+ noticeToolNameFix: '文件只读(在系统安装目录里,多属于 root)。把下面这行复制到终端运行,加上写权限:',
262
+ noticeToolNameFixNoCmd: '文件只读(在系统安装目录里)。用管理员权限给这些文件加上写权限,每次启动都会再试一次。',
263
+ noticeToolNameAfter: '加上权限后每次启动都会自动改短;ZCode 更新若把权限改回,重复运行这行即可。',
264
+ noticeToolNameGo: '去运行时设置',
265
+ chainAutoUnchecked: '地址被手动改过,已自动退出链:{list}',
266
+ chainEmpty: '还没有代理链。点下方“新建代理链”开始,默认带提示词注入节点(装了 headroom 插件还带压缩节点)。',
267
+ chainAdd: '新建代理链',
268
+ chainDefaultName: '新代理链',
269
+ chainNodePinned: '这一节由链上顺序决定,用上下箭头调整',
270
+ chainSwitchHint: '关掉后整条链不生效',
271
+ chainProvidersLabel: '关联的供应商',
272
+ chainNoProviders: '供应商列表还没加载出来',
273
+ chainOwnedByOther: '已关联到别的链',
274
+ chainForwardPort: '转发端口',
275
+ proxyChainInjection: '提示词注入',
276
+ proxyChainUpstream: '上游',
277
+ proxyChainCustom: '自定义',
278
+ proxyChainUseShared: '用共享',
279
+ proxyChainAddNode: '添加代理',
280
+ proxyChainOnChain: '在链上',
281
+ proxyChainNotInstalled: '未启用',
282
+ proxyChainPinnedHint: '这一环由对应功能决定,在代理页改不了',
283
+ proxyChainSwitchHint: '关掉后整条代理链不生效',
284
+ proxyChainHeadroomBlocksProxy: 'headroom 在链上时,自定义代理暂不生效(请求由 headroom 直接发往上游)',
285
+ proxyChainMultiNotEffective: '第 2 个起暂不生效(多级代理尚未支持)',
286
+ proxyChainUpstreamViaHeadroom: '由 headroom 决定',
287
+ proxyChainSharedGone: '引用的共享代理已被删除',
288
+ proxyVendorAdd: '添加供应商',
289
+ proxyVendorRemove: '删除',
290
+ proxyVendorUseGlobal: '跟随全局代理',
291
+ proxyVendorProtocol: '协议',
292
+ proxyVendorHost: '地址',
293
+ proxyVendorHostRequired: '请填写代理地址',
294
+ proxyVendorHostPlaceholder: '127.0.0.1',
295
+ proxyVendorPortLabel: '端口',
296
+ proxyVendorPortInvalid: '端口需为 1–65535 的整数',
297
+ proxyVendorForcedHint: '该供应商地址已指向本机转发端口,另一处来源(供应商配置或 provider 表)没能改写,请检查文件权限。',
298
+ proxyVendorUpstreamMissing: '未找到真实上游地址(供应商可能已被删除),已跳过。',
299
+ headroomUpstreamProxy: '上游代理',
300
+ headroomUpstreamProxyDesc: 'headroom 实例连上游模型服务时走这个代理(两层代理的内层)。留空 = 不经过代理。',
301
+ headroomUpstreamProxyPlaceholder: 'http://127.0.0.1:7897',
302
+ toolNameCheckTitle: '工具名合规检查',
303
+ toolNameCheckDesc: '有的模型服务(如 Meta)限制 MCP 工具名 64 字符,超长会让整次请求失败。这里把过长的服务器键名换成短名(映射存在配置里)。',
304
+ toolNameCheckBtn: '检查并改写',
305
+ toolNameCheckRunning: '检查中…',
306
+ toolNameCheckFailed: '检查失败',
307
+ toolNameAuto: '启动时自动改写',
308
+ toolNameAutoDesc: 'ZCode 升级或插件更新会把服务器键名改回长名,开启时每次启动自动改短。关闭后只能用上面的按钮手动执行。',
195
309
  tabSync: '同步',
196
- tabImport: '导入会话',
310
+ tabImport: '导入',
197
311
  tabDebug: '调试',
198
312
  importDesc: '把 Codex、Claude Code、dsh、pi 的历史会话复制成 ZCode 任务。导入是快照,之后源会话的变化不会再同步。',
199
313
  importSearch: '搜索标题或目录',
@@ -505,6 +619,8 @@ const zh = {
505
619
  sbLabelOut: '输出',
506
620
  sbLabelCache: '缓存',
507
621
  sbLabelTps: '输出 tok/s',
622
+ sbLabelTtft: '首字',
623
+ sbLabelReasoning: '思考',
508
624
  sbLabelInOut: '输入/输出',
509
625
  sbLabelHit: '平均命中',
510
626
  turnUsageTitle: '本轮 token',
@@ -512,6 +628,8 @@ const zh = {
512
628
  sbItemTodayTokens: '今日 token',
513
629
  sbItemTasks: '任务总数',
514
630
  sbLabelCtx: '上下文',
631
+ sbTipTools: '工具定义',
632
+ sbTipToolCount: ' 个工具',
515
633
  sbLabelTurns: '调用',
516
634
  sbLabelToday: '今日',
517
635
  sbLabelTasks: '任务',
@@ -551,6 +669,83 @@ const zh = {
551
669
  featureComposerProvider: '模型名显示供应商',
552
670
  featureImageCopyDesc: '右键会话中的图片或点击放大的预览图,可将图片复制到剪贴板。',
553
671
  featureTableCopyDesc: '表格工具条新增复制表格,粘贴进 Excel / 富文本编辑器即为干净表格。',
672
+ featureTranslate: '划词翻译',
673
+ featureTranslateDesc: '按住 Ctrl 拖选文字,在选区旁弹出翻译浮窗;通道、思考等级与提示词在面板上切换',
674
+ tabTranslate: '翻译',
675
+ translateEngine: '翻译服务',
676
+ translateEngineLlm: 'AI 翻译',
677
+ translateMtService: '机翻服务',
678
+ translateProvider: '供应商(LLM 通道)',
679
+ translateModelLabel: '模型',
680
+ translateTitle: '翻译',
681
+ translatePin: '钉住(点击面板外不再关闭)',
682
+ translatePinned: '已钉住',
683
+ translateUnpinned: '已取消钉住',
684
+ translateHistory: '历史',
685
+ translateSettings: '打开翻译设置',
686
+ translateChannelSession: '跟随当前会话',
687
+ translateChannelLlm: 'LLM',
688
+ translateChannelMt: '机翻',
689
+ translateModelEmpty: '填写模型名',
690
+ translateThinking: '思考等级',
691
+ translateThinkingUnsupported: '所选模型不支持思考',
692
+ translateThinkingFollowSession: '思考等级(跟随会话模型 {model})',
693
+ translateThinking_off: '思考:关',
694
+ translateThinking_minimal: '思考:极少',
695
+ translateThinking_low: '思考:低',
696
+ translateThinking_medium: '思考:中',
697
+ translateThinking_high: '思考:高',
698
+ translateThinking_xhigh: '思考:极高',
699
+ translateThinking_max: '思考:最高',
700
+ translateThinking_enabled: '思考:开',
701
+ translatePrompt: '提示词',
702
+ translatePromptEdit: '编辑提示词',
703
+ translatePromptEditTitle: '编辑提示词预设',
704
+ translatePromptName: '预设名称',
705
+ translatePromptHint: '{target} 会被替换成目标语言;保存后立即生效;改名称另存为新预设',
706
+ translatePromptRequired: '名称与内容都要填',
707
+ translateInputPh: '输入文字,回车翻译',
708
+ translateToolbarLabel: '翻译',
709
+ translateToolbarTitle: '翻译选中的文字',
710
+ translateGo: '翻译',
711
+ translateCopy: '复制',
712
+ translateSpeak: '朗读',
713
+ translateRetry: '重译',
714
+ translateShowSource: '原文',
715
+ translateLoading: '翻译中…',
716
+ translateFailed: '翻译失败',
717
+ translateEmpty: '模型没有返回内容',
718
+ translateNoHistory: '暂无历史',
719
+ translateUnconfigured: '未配置',
720
+ translateSave: '保存',
721
+ translateCopied: '已复制',
722
+ translateSaved: '已保存',
723
+ translateMtYoudao: '有道',
724
+ translateMtBaidu: '百度',
725
+ translateMtCaiyun: '彩云',
726
+ translateMtDeepl: 'DeepL',
727
+ translateMtDeeplx: 'DeepLX',
728
+ translateMtNiu: '小牛',
729
+ translateMtTencent: '腾讯',
730
+ translateMtAliyun: '阿里',
731
+ translateMtVolc: '火山',
732
+ translateDesc: '划词翻译的触发方式、目标语言、面板尺寸与机翻密钥;通道和提示词在翻译面板上切换。',
733
+ translateTrigger: '触发方式',
734
+ translateTriggerCtrlDrag: '按住 Ctrl 拖选',
735
+ translateTriggerCtrlTap: '选中后敲一下 Ctrl',
736
+ translateTriggerAltDrag: '按住 Alt 拖选',
737
+ translateTargetLang: '目标语言',
738
+ translatePanelWidth: '面板宽度(px)',
739
+ translatePanelHeight: '面板最高占屏(%)',
740
+ translateTheme: '面板主题',
741
+ translateThemeFollow: '跟随系统',
742
+ translateThemeLight: '浅色',
743
+ translateThemeDark: '深色',
744
+ translateHistoryLimit: '历史条数上限',
745
+ translateMtCreds: '机翻服务密钥',
746
+ translateGetKey: '获取密钥',
747
+ translateMtCredsDesc: '只在本地 ~/.zcode/zcode-translate.json 里保存;不填的通道在下拉中标注“未配置”',
748
+ translateTest: '测试当前通道',
554
749
  featureSessionLink: '会话 ID 显示为任务名链接',
555
750
  featureSessionLinkDesc: '提问与回答里的会话 ID(sess_ / session_ 开头)显示为任务名,点击切换到该会话,悬停可看原始 ID。',
556
751
  featureComposerProviderDesc: '模型名前显示供应商名(如 BigModel-Max1 / glm-5.3),区分同名模型。',
@@ -588,13 +783,15 @@ const zh = {
588
783
  acEnabled: '启用',
589
784
  acPrompt: '继续提示词',
590
785
  acMaxRetries: '最多继续次数',
591
- acMaxRetriesHint: '30 分钟内自动继续的累计上限,防止故障反复时刷屏',
592
- acCooldown: '密集失败退避基数(秒)',
593
- acCooldownHint: '2 分钟内已继续过就视为密集失败,间隔按 2 倍递增、上限 60 秒;单次失败只等 3 秒界面稳定',
594
- acStuckAfterMin: '卡死判定(分钟)',
595
- acStuckAfterMinHint: '后台终端任务、子代理或主回合多久没有动静才弹卡提示;会话本身也要静默同样久',
596
- acFailedAfterMin: '失败后自动续接(分钟)',
597
- acFailedAfterMinHint: '回合失败多久后自动继续;会先等 60 秒跳过失败后的清理事件',
786
+ acMaxRetriesHint: '30 分钟内最多自动继续几次,到上限就停',
787
+ acContinueDelay: '继续前等待(秒)',
788
+ acContinueDelayHint: '回合失败后先等这么久再发继续,让供应商的临时故障自己过去',
789
+ acContinueDelayFactor: '连续失败翻倍倍数',
790
+ acContinueDelayFactorHint: '连续失败时等待时间按此倍数增长,如 1.3 就是 2 分钟、2.6 分钟、3.4 分钟;填 1 表示固定不增长',
791
+ acStuckAfterMin: '卡死提示(分钟)',
792
+ acStuckAfterMinHint: '后台任务、子代理或主回合静默这么久后,弹提示卡片提醒你',
793
+ acFailedAfterMin: '失败后多久自动续(分钟)',
794
+ acFailedAfterMinHint: '回合失败后,静默这么久仍没人处理就自动继续',
598
795
  acLoadFailed: '读取自动继续配置失败',
599
796
  acCardKindSubagent: '子代理卡死',
600
797
  acCardKindTurn: '主轮卡死',
@@ -690,6 +887,23 @@ const zh = {
690
887
  headroomStatusTitle: '运行状态',
691
888
  hrInstRunning: '运行中',
692
889
  hrInstStopped: '未运行',
890
+ hrInstChain: '链',
891
+ hrInstUpstreams: '上游',
892
+ hrInstVia: '出网',
893
+ hrInstProviders: '供应商',
894
+ hrInstRestore: '还原',
895
+ hrRestoreFailed: '还原失败',
896
+ hrRestoreDone: '已还原为直连',
897
+ hrRestoreHint: '还原这些供应商的 API 地址:在链上可选还原到链地址或直连(退出链)',
898
+ hrRestoreConfirmTitle: '还原地址?',
899
+ hrRestoreConfirmDesc: '将处理:{names}',
900
+ hrRestoreNext: '下一步',
901
+ hrRestoreChooseTitle: '还原到哪里?',
902
+ hrRestoreChooseDesc: '{names} 在代理链上',
903
+ hrRestoreOptChain: '还原为链地址(保留在链上)',
904
+ hrRestoreOptDirect: '直连真实地址(同时退出链)',
905
+ hrRestoreChainDone: '地址已归位到链入口',
906
+ chainLeaveHint: '退出压缩时清理 headroom 登记失败(重新勾选可恢复)',
693
907
  headroomStatusLoadFailed: '读取运行状态失败',
694
908
  headroomProxyUp: '代理运行中',
695
909
  headroomProxyDown: '代理未运行',
@@ -816,7 +1030,7 @@ const en = {
816
1030
  tabProxy: 'Proxy',
817
1031
  tabBehavior: 'Behavior',
818
1032
  tabAgents: 'Global Prompt',
819
- tabZcode: 'ZCode CLI',
1033
+ tabZcode: 'Runtime',
820
1034
  zcodeDesc: 'ZCode behavior settings (written to ~/.zcode/cli/config.json); takes effect for new sessions.',
821
1035
  zcodeStatsTitle: 'Skill listing check',
822
1036
  zcodeStatsCounts: '{total} skills ({user} local · {plugin} from plugins)',
@@ -854,6 +1068,17 @@ const en = {
854
1068
  agentsSave: 'Save',
855
1069
  agentsSaved: 'Global prompt saved.',
856
1070
  agentsLoadFailed: 'Failed to load the global prompt',
1071
+ injectTitle: 'Prompt injection',
1072
+ injectDesc: 'Appended to the end of the system prompt as requests are forwarded, so it rides along with every turn. Unlike the global prompt above, this lands in the system layer rather than the conversation layer. It only applies to providers whose requests are forwarded locally; enabling injection turns forwarding on for every enabled provider.',
1073
+ injectPlaceholder: 'Rules the model should follow on every turn; leave empty and save to stop injecting',
1074
+ injectEnable: 'Enable injection',
1075
+ injectDisable: 'Disable injection',
1076
+ injectSaved: 'Prompt injection saved.',
1077
+ injectChars: '{n} characters',
1078
+ injectLongHint: 'This is long and will take a noticeable bite out of the conversation context.',
1079
+ injectSubagents: 'Also inject into subagents',
1080
+ injectChainStatus: ', active on {active} of {providers} providers',
1081
+ injectChainNone: ', no enabled providers yet',
857
1082
  proxyDesc: 'Set an HTTP proxy for network access made by the local helper: plugin marketplace updates and installs, plugin dependency installs and upgrades, and WebDAV sync can all use it — pick the scopes with the toggles below. Does not affect the ZCode app itself or model requests.',
858
1083
  proxyPlaceholder: 'http://127.0.0.1:7890',
859
1084
  proxySave: 'Save',
@@ -869,8 +1094,105 @@ const en = {
869
1094
  proxyScopeDepsDesc: 'headroom and rtk installs, update checks and upgrades (pip and GitHub downloads) go through the proxy.',
870
1095
  proxyScopeSync: 'Sync',
871
1096
  proxyScopeSyncDesc: 'WebDAV upload and download go through the proxy.',
1097
+ proxySubSoftware: 'Software proxy',
1098
+ proxySubVendor: 'Proxy chains',
1099
+ proxyVendorDesc: 'Per provider: when on, that provider\'s model requests hit a local forward port and then leave through the proxy chain shown on its card; when off, its address stays as-is. Does not change ZCode\'s global proxy or affect other providers.',
1100
+ proxyVendorEmpty: 'No provider proxies added yet. Use “Add provider” below to pick a provider; it takes effect once added.',
1101
+ proxySharedTitle: 'Shared proxies',
1102
+ proxySharedDesc: 'Define a few proxies here, then pick them inside each provider\'s proxy chain below. Changing an address here affects every provider that references it.',
1103
+ proxySharedEmpty: 'No shared proxies yet.',
1104
+ proxySharedAdd: 'Add shared proxy',
1105
+ proxySharedDelete: 'Delete',
1106
+ proxySharedName: 'Name',
1107
+ proxySharedInvalid: 'The proxy address must look like http://127.0.0.1:7890',
1108
+ chainDesc: 'A proxy chain processes each request through its nodes in order: headroom compression, prompt injection, custom proxy for egress. One chain can be linked to several providers, which share its settings and a single forwarder. Egress proxies (e.g. clash) belong at the end of the chain: ordinary proxies usually refuse to forward to local ports, so placing one before headroom will fail.',
1109
+ chainMasterSwitch: 'Proxy chain master switch',
1110
+ chainMasterSwitchDesc: 'Off: one-click restore. Chain settings are kept; all checked providers go back to their real upstream addresses and forwarding stops. On: checked providers are managed by their chain.',
1111
+ chainMasterOffHint: 'Master switch is off: chain settings are kept and checked providers are back on direct connections.',
1112
+ chainGoCompat: 'OpenCode Go compatibility',
1113
+ chainGoCompatDesc: 'When a provider goes through a chain, zcode-pro adds the session header required by the OpenCode Go endpoint. Turn it off and OpenCode Go providers will be rejected through a chain; keep them direct instead.',
1114
+ chainDeleteConfirmTitle: 'Delete this chain?',
1115
+ chainDeleteConfirmDesc: 'The {n} checked providers will be restored to direct connections and leave headroom compression.',
1116
+ chainDeleteConfirmDescEmpty: 'No providers are checked in this chain.',
1117
+ chainDeleteConfirmGo: 'Delete',
1118
+ injectGoChain: 'Open proxy chains',
1119
+ injectChainHint: 'Only takes effect on providers checked under “Proxy → Proxy chains”',
1120
+ chainProvidersHint: 'Checked = requests go through zcode-pro (compression, injection, proxies) and the address is managed by the chain; unchecked = restored to a direct connection and kept.',
1121
+ chainManualEditHint: 'If the address changes to another value (edited in ZCode or synced from another device), the provider automatically leaves the chain and keeps the new address; a card appears in the corner.',
1122
+ noticeAutoUncheckedTitle: 'Providers left the proxy chain automatically',
1123
+ noticeAutoUncheckedDesc: 'These providers were checked in a chain, but their address changed (edited in ZCode or synced from another device). They left the chain and no longer go through compression or prompt injection:',
1124
+ noticeAutoUncheckedItem: '{name} → {url} (was in the “{chain}” chain)',
1125
+ noticeAutoUncheckedHow: 'To send them through compression and prompt injection again, check them again under “Settings → Proxy → Proxy chains”.',
1126
+ noticeGoChain: 'Open proxy chains',
1127
+ noticeHealthTitle: 'Proxy chain health check found a problem',
1128
+ noticeHealthDesc: 'The 30-second health check found a problem and handled it automatically:',
1129
+ noticeHealthForwarder: 'Forwarder 127.0.0.1:{ports} is not listening; realigned',
1130
+ noticeHealthForwarderDown: ', still down',
1131
+ noticeHealthInstance: 'Headroom instance 127.0.0.1:{ports} is not listening; asked headroom to restart it',
1132
+ noticeHealthRouter: 'The Headroom compression router 127.0.0.1:{ports} is not listening; asked headroom to restart it',
1133
+ noticeHealthInstanceFailed: ', failed: {error}',
1134
+ noticeHealthHint: 'Restarting the compression instance takes about ten seconds; requests through the compression router may fail meanwhile. Retry later.',
1135
+ noticeHealthGoHeadroom: 'Open Headroom',
1136
+ noticeTitleGenTitle: 'Task title generation failed',
1137
+ noticeTitleGenDesc: 'The model call that names a new session did not succeed, so the session keeps the default ZCode name.',
1138
+ noticeTitleGenItem: '{provider} with {model}: {error}',
1139
+ noticeTitleGenSession: 'the session provider',
1140
+ noticeTitleGenHow: 'Switch to a provider or model the endpoint supports under “Settings → Global Prompt → Auto rename”.',
1141
+ noticeTitleGenGo: 'Open auto rename settings',
1142
+ noticeToolNameTitle: 'Tool name check: some files could not be changed',
1143
+ noticeToolNameDesc: 'The server names in these files were not shortened; other files were handled as usual:',
1144
+ noticeToolNameItem: '{file} (wanted to shorten {changes}): {error}',
1145
+ noticeToolNameNoPerm: 'no write permission',
1146
+ noticeToolNameFix: 'The files are read-only (in the system install folder, usually owned by root). Copy this line into a terminal to grant write permission:',
1147
+ noticeToolNameFixNoCmd: 'The files are read-only (in the system install folder). Grant write permission to them with administrator rights; the check retries on every launch.',
1148
+ noticeToolNameAfter: 'With permission granted they are shortened automatically on every launch; if a ZCode update restores the permissions, run this line again.',
1149
+ noticeToolNameGo: 'Open runtime settings',
1150
+ chainAutoUnchecked: 'Address was changed manually; left the chain automatically: {list}',
1151
+ chainEmpty: 'No proxy chains yet. Use “New proxy chain” below; it starts with a prompt-injection node (plus a headroom node when the headroom plugin is installed).',
1152
+ chainAdd: 'New proxy chain',
1153
+ chainDefaultName: 'New chain',
1154
+ chainNodePinned: 'This hop is ordered by the chain; use the arrows to move it',
1155
+ chainSwitchHint: 'Turning this off disables the whole chain',
1156
+ chainProvidersLabel: 'Linked providers',
1157
+ chainNoProviders: 'The provider list has not loaded yet',
1158
+ chainOwnedByOther: 'Already linked to another chain',
1159
+ chainForwardPort: 'Forward port',
1160
+ proxyChainInjection: 'Prompt injection',
1161
+ proxyChainUpstream: 'Upstream',
1162
+ proxyChainCustom: 'Custom',
1163
+ proxyChainUseShared: 'Shared',
1164
+ proxyChainAddNode: 'Add proxy',
1165
+ proxyChainOnChain: 'on chain',
1166
+ proxyChainNotInstalled: 'not enabled',
1167
+ proxyChainPinnedHint: 'This hop is decided by its own feature; it cannot be changed here',
1168
+ proxyChainSwitchHint: 'Turning this off disables the whole chain',
1169
+ proxyChainHeadroomBlocksProxy: 'While headroom is on the chain, custom proxies do not take effect (headroom sends the request upstream itself)',
1170
+ proxyChainMultiNotEffective: 'Only the first proxy takes effect; chained proxies are not supported yet',
1171
+ proxyChainUpstreamViaHeadroom: 'decided by headroom',
1172
+ proxyChainSharedGone: 'The referenced shared proxy was deleted',
1173
+ proxyVendorAdd: 'Add provider',
1174
+ proxyVendorRemove: 'Remove',
1175
+ proxyVendorUseGlobal: 'Follow the global proxy',
1176
+ proxyVendorProtocol: 'Protocol',
1177
+ proxyVendorHost: 'Host',
1178
+ proxyVendorHostRequired: 'Enter the proxy host',
1179
+ proxyVendorHostPlaceholder: '127.0.0.1',
1180
+ proxyVendorPortLabel: 'Port',
1181
+ proxyVendorPortInvalid: 'Port must be an integer from 1 to 65535',
1182
+ proxyVendorForcedHint: 'This provider\'s address already points at the local forward port, but the other source (provider config or the provider table) could not be rewritten — check file permissions.',
1183
+ proxyVendorUpstreamMissing: 'No real upstream found (provider may have been deleted); skipped.',
1184
+ headroomUpstreamProxy: 'Upstream proxy',
1185
+ headroomUpstreamProxyDesc: 'Used by headroom instances when they call upstream model services (the inner layer of two-layer proxying). Empty = no proxy.',
1186
+ headroomUpstreamProxyPlaceholder: 'http://127.0.0.1:7897',
1187
+ toolNameCheckTitle: 'Tool name compliance',
1188
+ toolNameCheckDesc: 'Some model services (Meta, for example) cap MCP tool names at 64 characters and reject the whole request when exceeded. This shortens over-long server keys (the mapping is saved in the config).',
1189
+ toolNameCheckBtn: 'Check and rewrite',
1190
+ toolNameCheckRunning: 'Checking…',
1191
+ toolNameCheckFailed: 'Check failed',
1192
+ toolNameAuto: 'Auto-rewrite on startup',
1193
+ toolNameAutoDesc: 'ZCode upgrades and plugin updates can restore long server keys. When on, they are shortened at each startup. When off, only the button above applies the change.',
872
1194
  tabSync: 'Sync',
873
- tabImport: 'Session import',
1195
+ tabImport: 'Import',
874
1196
  tabDebug: 'Debug',
875
1197
  importDesc: 'Copy sessions from Codex, Claude Code, dsh and pi into ZCode tasks. The copy is a snapshot; later changes in the source session are not synced.',
876
1198
  importSearch: 'Search title or folder',
@@ -1181,6 +1503,8 @@ const en = {
1181
1503
  sbLabelOut: 'out',
1182
1504
  sbLabelCache: 'cache',
1183
1505
  sbLabelTps: 'out tok/s',
1506
+ sbLabelTtft: 'ttft',
1507
+ sbLabelReasoning: 'think',
1184
1508
  sbLabelInOut: 'in/out',
1185
1509
  sbLabelHit: 'avg hit',
1186
1510
  turnUsageTitle: 'Turn tokens',
@@ -1188,6 +1512,8 @@ const en = {
1188
1512
  sbItemTodayTokens: 'Tokens today',
1189
1513
  sbItemTasks: 'Tasks',
1190
1514
  sbLabelCtx: 'ctx',
1515
+ sbTipTools: 'tool schemas',
1516
+ sbTipToolCount: ' tools',
1191
1517
  sbLabelTurns: 'calls',
1192
1518
  sbLabelToday: 'today',
1193
1519
  sbLabelTasks: 'tasks',
@@ -1227,6 +1553,83 @@ const en = {
1227
1553
  featureComposerProvider: 'Provider in model name',
1228
1554
  featureImageCopyDesc: 'Right-click an image in chat or the enlarged preview to copy it to the clipboard.',
1229
1555
  featureTableCopyDesc: 'Copy-table button on the table toolbar; pastes into Excel / editors as a clean table.',
1556
+ featureTranslate: 'Selection translate',
1557
+ featureTranslateDesc: 'Hold Ctrl and drag-select text to translate it in a popup next to the selection; channel, thinking level and prompt switch on the panel',
1558
+ tabTranslate: 'Translate',
1559
+ translateEngine: 'Translation service',
1560
+ translateEngineLlm: 'AI translation',
1561
+ translateMtService: 'MT service',
1562
+ translateProvider: 'Provider (LLM channel)',
1563
+ translateModelLabel: 'Model',
1564
+ translateTitle: 'Translate',
1565
+ translatePin: 'Pin (keep open when clicking outside)',
1566
+ translatePinned: 'Pinned',
1567
+ translateUnpinned: 'Unpinned',
1568
+ translateHistory: 'History',
1569
+ translateSettings: 'Open translate settings',
1570
+ translateChannelSession: 'Follow current session',
1571
+ translateChannelLlm: 'LLM',
1572
+ translateChannelMt: 'Machine translation',
1573
+ translateModelEmpty: 'Model name',
1574
+ translateThinking: 'Thinking level',
1575
+ translateThinkingUnsupported: 'The selected model does not support thinking',
1576
+ translateThinkingFollowSession: 'Thinking (follows session model {model})',
1577
+ translateThinking_off: 'Thinking: off',
1578
+ translateThinking_minimal: 'Thinking: minimal',
1579
+ translateThinking_low: 'Thinking: low',
1580
+ translateThinking_medium: 'Thinking: medium',
1581
+ translateThinking_high: 'Thinking: high',
1582
+ translateThinking_xhigh: 'Thinking: xhigh',
1583
+ translateThinking_max: 'Thinking: max',
1584
+ translateThinking_enabled: 'Thinking: on',
1585
+ translatePrompt: 'Prompt',
1586
+ translatePromptEdit: 'Edit prompt',
1587
+ translatePromptEditTitle: 'Edit prompt preset',
1588
+ translatePromptName: 'Preset name',
1589
+ translatePromptHint: '{target} is replaced with the target language; takes effect immediately; renaming saves it as a new preset',
1590
+ translatePromptRequired: 'Name and content are both required',
1591
+ translateInputPh: 'Type text and press Enter to translate',
1592
+ translateToolbarLabel: 'Translate',
1593
+ translateToolbarTitle: 'Translate selected text',
1594
+ translateGo: 'Translate',
1595
+ translateCopy: 'Copy',
1596
+ translateSpeak: 'Speak',
1597
+ translateRetry: 'Retry',
1598
+ translateShowSource: 'Source',
1599
+ translateLoading: 'Translating…',
1600
+ translateFailed: 'Translation failed',
1601
+ translateEmpty: 'The model returned no content',
1602
+ translateNoHistory: 'No history yet',
1603
+ translateUnconfigured: 'not configured',
1604
+ translateSave: 'Save',
1605
+ translateCopied: 'Copied',
1606
+ translateSaved: 'Saved',
1607
+ translateMtYoudao: 'Youdao',
1608
+ translateMtBaidu: 'Baidu',
1609
+ translateMtCaiyun: 'Caiyun',
1610
+ translateMtDeepl: 'DeepL',
1611
+ translateMtDeeplx: 'DeepLX',
1612
+ translateMtNiu: 'Niu Trans',
1613
+ translateMtTencent: 'Tencent',
1614
+ translateMtAliyun: 'Aliyun',
1615
+ translateMtVolc: 'Volc',
1616
+ translateDesc: 'Trigger, target language, panel size and machine-translation keys for selection translate; channel and prompt switch on the panel.',
1617
+ translateTrigger: 'Trigger',
1618
+ translateTriggerCtrlDrag: 'Hold Ctrl + drag',
1619
+ translateTriggerCtrlTap: 'Select, then tap Ctrl',
1620
+ translateTriggerAltDrag: 'Hold Alt + drag',
1621
+ translateTargetLang: 'Target language',
1622
+ translatePanelWidth: 'Panel width (px)',
1623
+ translatePanelHeight: 'Panel max height (% of screen)',
1624
+ translateTheme: 'Panel theme',
1625
+ translateThemeFollow: 'Follow system',
1626
+ translateThemeLight: 'Light',
1627
+ translateThemeDark: 'Dark',
1628
+ translateHistoryLimit: 'History limit',
1629
+ translateMtCreds: 'Machine translation keys',
1630
+ translateGetKey: 'Get key',
1631
+ translateMtCredsDesc: 'Stored only in the local ~/.zcode/zcode-translate.json; services without keys are marked "not configured" in the dropdown',
1632
+ translateTest: 'Test current channel',
1230
1633
  featureSessionLink: 'Session ID links',
1231
1634
  featureSessionLinkDesc: 'Shows session IDs (sess_ / session_) in chat as task names; click to switch to that session, hover for the raw ID.',
1232
1635
  featureComposerProviderDesc: 'Shows the provider before the model name (e.g. BigModel-Max1 / glm-5.3).',
@@ -1264,13 +1667,15 @@ const en = {
1264
1667
  acEnabled: 'Enable',
1265
1668
  acPrompt: 'Continue prompt',
1266
1669
  acMaxRetries: 'Max auto-continues',
1267
- acMaxRetriesHint: 'Cap on auto-continues within 30 minutes, to avoid flooding on repeated failures',
1268
- acCooldown: 'Backoff base for burst failures (s)',
1269
- acCooldownHint: 'A continue within 2 minutes counts as a burst: interval doubles up to 60s; a single failure only waits 3s for the UI to settle',
1270
- acStuckAfterMin: 'Stuck threshold (min)',
1271
- acStuckAfterMinHint: 'How long a background terminal task, subagent or main turn may stay silent before the card appears; the session itself must also be silent this long',
1670
+ acMaxRetriesHint: 'How many times auto-continue may fire within 30 minutes; stops at the cap',
1671
+ acContinueDelay: 'Wait before continue (s)',
1672
+ acContinueDelayHint: 'After a failed turn, wait this long before sending continue so transient provider errors can clear',
1673
+ acContinueDelayFactor: 'Growth factor for repeat failures',
1674
+ acContinueDelayFactorHint: 'Each consecutive failure grows the wait by this factor (1.3 → 2 min, 2.6 min, 3.4 min…); 1 = stay fixed',
1675
+ acStuckAfterMin: 'Stuck alert (min)',
1676
+ acStuckAfterMinHint: 'A background task, subagent or main turn silent this long raises the reminder card',
1272
1677
  acFailedAfterMin: 'Auto-continue after failure (min)',
1273
- acFailedAfterMinHint: 'How long after a failed turn to continue automatically; waits 60s first to skip post-failure cleanup events',
1678
+ acFailedAfterMinHint: 'Resume automatically when a failed turn has stayed silent this long',
1274
1679
  acLoadFailed: 'Failed to load the auto-continue config',
1275
1680
  acCardKindSubagent: 'Subagent stuck',
1276
1681
  acCardKindTurn: 'Main turn stuck',
@@ -1366,6 +1771,23 @@ const en = {
1366
1771
  headroomStatusTitle: 'Status',
1367
1772
  hrInstRunning: 'running',
1368
1773
  hrInstStopped: 'down',
1774
+ hrInstChain: 'chain',
1775
+ hrInstUpstreams: 'upstreams',
1776
+ hrInstVia: 'via',
1777
+ hrInstProviders: 'providers',
1778
+ hrInstRestore: 'Restore',
1779
+ hrRestoreFailed: 'Restore failed',
1780
+ hrRestoreDone: 'Restored to direct',
1781
+ hrRestoreHint: 'Restore these providers API address: on chains choose chain entry or direct (leaving chains)',
1782
+ hrRestoreConfirmTitle: 'Restore address?',
1783
+ hrRestoreConfirmDesc: 'Providers: {names}',
1784
+ hrRestoreNext: 'Next',
1785
+ hrRestoreChooseTitle: 'Restore to where?',
1786
+ hrRestoreChooseDesc: '{names} are on proxy chains',
1787
+ hrRestoreOptChain: 'Chain address (stay on chains)',
1788
+ hrRestoreOptDirect: 'Direct to real upstream (leave chains)',
1789
+ hrRestoreChainDone: 'Address restored to chain entry',
1790
+ chainLeaveHint: 'Failed to clean headroom registry on leaving (re-check to restore)',
1369
1791
  headroomStatusLoadFailed: 'Failed to load the status',
1370
1792
  headroomProxyUp: 'Proxy running',
1371
1793
  headroomProxyDown: 'Proxy down',
@@ -1592,7 +2014,21 @@ const errEn = {
1592
2014
  'vision-read': 'Failed to read zcode-vision.json',
1593
2015
  'vision-write': 'Failed to write zcode-vision.json',
1594
2016
  'vision-test': 'Vision test failed',
2017
+ 'translate-invalid': 'Invalid translation settings',
2018
+ 'translate-write': 'Failed to write zcode-translate.json',
2019
+ 'translate-too-long': 'Selected text is too long',
2020
+ 'translate-conn': 'Translation channel unavailable: reselect provider/model on the panel',
2021
+ 'translate-llm': 'LLM translation request failed',
2022
+ 'translate-mt': 'Machine translation request failed',
2023
+ 'translate-test': 'Translation channel test failed',
2024
+ 'translate-empty': 'The translation model returned no text',
1595
2025
  'proxy-invalid': 'The proxy must be a URL like http://127.0.0.1:7890, or be empty',
2026
+ 'provider-proxy-invalid': 'Provider proxy setting is invalid: the proxy must be a URL like http://127.0.0.1:7890 (or empty to follow the global proxy)',
2027
+ 'shared-proxy-invalid': 'Shared proxies contain an invalid entry: name cannot be empty, the address must be a URL like http://127.0.0.1:7890, and ids must be unique',
2028
+ 'proxy-chain-invalid': 'A proxy chain entry is invalid: each chain needs an id, nodes must be headroom / inject / custom proxy, and a custom proxy address must be a URL like http://127.0.0.1:7890',
2029
+ 'headroom-restore': 'Failed to restore providers from the chain (check headroom.json)',
2030
+ 'headroom-proxy-invalid': 'The headroom upstream proxy must be a URL like http://127.0.0.1:7890, or be empty',
2031
+ 'tool-name-check': 'Tool name compliance check failed',
1596
2032
  'proxy-not-set': 'Set the proxy address first',
1597
2033
  'rtk-invalid': 'Invalid rtk config',
1598
2034
  'rtk-update': 'Failed to check for rtk updates (GitHub Releases unreachable? Set a proxy in the Proxy tab)',