zcode-pro 1.6.1 → 1.6.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.en.md +31 -21
- package/README.md +20 -12
- package/dist/inject.js +9624 -8634
- package/package.json +2 -1
- package/src/host/cdp.mjs +13 -3
- package/src/host/helper.mjs +982 -464
- package/src/host/main.mjs +368 -30
- package/src/host/paths.mjs +17 -9
- package/src/host/pickFolder.mjs +11 -4
- package/src/host/settings.mjs +15 -2
- package/src/host/setup.mjs +54 -15
- package/src/host/skill-stats.mjs +6 -1
- package/src/host/taskIndex.mjs +198 -66
- package/src/host/taskOrder.mjs +128 -57
- package/src/host/version.mjs +15 -7
- package/src/host/wallpaper.mjs +76 -59
- package/src/host/webdav.mjs +66 -10
- package/src/inject/core.js +184 -95
- package/src/inject/features/alias-migration.js +5 -1
- package/src/inject/features/auto-rename.js +166 -0
- package/src/inject/features/file-menu.js +6 -2
- package/src/inject/features/idle-reclaim.js +31 -8
- package/src/inject/features/newtab-panels.js +11 -1
- package/src/inject/features/pinned-collapse.js +11 -3
- package/src/inject/features/plugin-card-retry.js +18 -8
- package/src/inject/features/sandbox-reclaim.js +17 -1
- package/src/inject/features/session-link.js +200 -0
- package/src/inject/features/session-switch.js +57 -23
- package/src/inject/features/settings-dialog.js +242 -110
- package/src/inject/features/status-bar.js +126 -24
- package/src/inject/features/table-copy.js +18 -2
- package/src/inject/features/task-order.js +47 -13
- package/src/inject/features/theme.js +88 -31
- package/src/inject/features/title-gen.js +5 -4
- package/src/inject/features/title-lock.js +13 -8
- package/src/inject/features/turn-usage.js +69 -29
- package/src/inject/features/ws-running.js +26 -11
- package/src/inject/index.js +5 -0
- package/src/inject/provider-fields.js +2 -2
- package/src/inject/ui.js +6 -0
package/src/inject/core.js
CHANGED
|
@@ -27,28 +27,33 @@ export function rpc(path, options = {}) {
|
|
|
27
27
|
|
|
28
28
|
// 配置缓存:菜单每次打开时拉取,保证设置弹窗里的开关即时生效。
|
|
29
29
|
// 并发合并:config-changed 事件的多个监听方会同时 getConfig(true)(绕过
|
|
30
|
-
// 缓存),不合并时一次保存触发 N 个并发全量拉取(每个都是 helper
|
|
30
|
+
// 缓存),不合并时一次保存触发 N 个并发全量拉取(每个都是 helper 读盘+序列化)。
|
|
31
|
+
// force 不并入在途请求:保存后的刷新必须拿到保存后的内容,并入保存前发起的
|
|
32
|
+
// 请求会拿到旧值、还会把旧值写回缓存
|
|
31
33
|
let configCache = { value: null, at: 0 };
|
|
32
34
|
let configInflight = null;
|
|
35
|
+
let configGen = 0; // clearConfigCache 时 +1,作废在途请求写缓存的资格
|
|
33
36
|
export async function getConfig(force = false) {
|
|
34
37
|
const now = Date.now();
|
|
35
38
|
if (!force && configCache.value && now - configCache.at < 3000) return configCache.value;
|
|
36
|
-
if (configInflight) return configInflight;
|
|
37
|
-
|
|
39
|
+
if (!force && configInflight) return configInflight;
|
|
40
|
+
const gen = configGen;
|
|
41
|
+
const p = (async () => {
|
|
38
42
|
try {
|
|
39
43
|
const res = await rpc('/config');
|
|
40
44
|
if (res.ok && res.config) {
|
|
41
|
-
configCache = { value: res.config, at: Date.now() };
|
|
45
|
+
if (gen === configGen) configCache = { value: res.config, at: Date.now() };
|
|
42
46
|
return res.config;
|
|
43
47
|
}
|
|
44
48
|
return configCache.value || { features: {} };
|
|
45
49
|
} finally {
|
|
46
|
-
configInflight = null;
|
|
50
|
+
if (configInflight === p) configInflight = null;
|
|
47
51
|
}
|
|
48
52
|
})();
|
|
49
|
-
|
|
53
|
+
configInflight = p;
|
|
54
|
+
return p;
|
|
50
55
|
}
|
|
51
|
-
export function clearConfigCache() { configCache = { value: null, at: 0 }; }
|
|
56
|
+
export function clearConfigCache() { configCache = { value: null, at: 0 }; configGen++; }
|
|
52
57
|
|
|
53
58
|
// 会话快捷切换的默认键位(按住 alt 再按);settings 的“快捷键”标签页可改,
|
|
54
59
|
// 配置存在 config.shortcuts,未写的项回退到这里
|
|
@@ -62,8 +67,8 @@ export const DEFAULT_SHORTCUTS = {
|
|
|
62
67
|
|
|
63
68
|
// 状态栏任务统计项的两个组:会话级跟随当前会话,全局级始终显示;
|
|
64
69
|
// 设置里两节各自排序,保存时归一化为会话组在前(状态栏两组间一道竖线)
|
|
65
|
-
export const STATUS_SESSION_IDS = new Set(['ctx', '
|
|
66
|
-
export const STATUS_GLOBAL_IDS = new Set(['todayTokens', '
|
|
70
|
+
export const STATUS_SESSION_IDS = new Set(['ctx', 'questions', 'tokRate']);
|
|
71
|
+
export const STATUS_GLOBAL_IDS = new Set(['todayTokens', 'totalTokens', 'tasks']);
|
|
67
72
|
|
|
68
73
|
// 状态栏统计项的默认清单(顺序即默认显示顺序);设置 → 外观 → 状态栏里
|
|
69
74
|
// 可调顺序与显隐,配置存在 config.statusBar.items(整表覆盖)
|
|
@@ -75,6 +80,7 @@ export const DEFAULT_TURN_ITEMS = [
|
|
|
75
80
|
];
|
|
76
81
|
|
|
77
82
|
export const DEFAULT_STATUS_ITEMS = [
|
|
83
|
+
{ id: 'tokRate', on: true }, // 最近输出 tokens/s(60 秒窗口,本会话)
|
|
78
84
|
{ id: 'ctx', on: true }, // 上下文占用
|
|
79
85
|
{ id: 'questions', on: true }, // 提问次数
|
|
80
86
|
{ id: 'todayTokens', on: true }, // 今日 token(今天的会话记录完整,数据准确)
|
|
@@ -84,16 +90,20 @@ export const DEFAULT_STATUS_ITEMS = [
|
|
|
84
90
|
|
|
85
91
|
// —— ZCode 版本判断(按官方版本启用/停用功能)——
|
|
86
92
|
// 版本来源:启动器从 app.asar 读出后写进 bootstrap(window.__ZCODEPRO__.zcodeVersion),
|
|
87
|
-
// helper 的 /config
|
|
93
|
+
// 只经注入 bootstrap 传进页面(helper 的 /config 响应不带这个字段)。读不到时为空串,
|
|
94
|
+
// 各判断保持旧行为。
|
|
88
95
|
export function zcodeAppVersion() {
|
|
89
96
|
const v = liveBoot().zcodeVersion;
|
|
90
97
|
return typeof v === 'string' && v ? v : '';
|
|
91
98
|
}
|
|
92
99
|
|
|
93
100
|
export function zcodeVersionGte(version, major, minor, patch = 0) {
|
|
94
|
-
|
|
101
|
+
// 允许两段式版本("3.17")与前缀 v,缺省段按 0;预发布号(-rc.1 等)截在正式
|
|
102
|
+
// 版段后不参与比较、按正式版处理——取舍:预发布版也按新版启用功能,比误判回
|
|
103
|
+
// 老版本少丢功能
|
|
104
|
+
const m = String(version || '').match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?/);
|
|
95
105
|
if (!m) return false;
|
|
96
|
-
const a = Number(m[1]), b = Number(m[2]), c = Number(m[3]);
|
|
106
|
+
const a = Number(m[1]), b = Number(m[2] || 0), c = Number(m[3] || 0);
|
|
97
107
|
return a > major || (a === major && (b > minor || (b === minor && c >= patch)));
|
|
98
108
|
}
|
|
99
109
|
|
|
@@ -128,7 +138,7 @@ const zh = {
|
|
|
128
138
|
zcodeStatsCounts: '技能 {total} 个(本地 {user} · 插件 {plugin})',
|
|
129
139
|
zcodeStatsChars: '完整清单约 {n} 字符',
|
|
130
140
|
zcodeBudgetDefaultTag: '(默认值)',
|
|
131
|
-
zcodeStatsDegraded: '
|
|
141
|
+
zcodeStatsDegraded: '超出预算:完整清单放不下,降级为只剩技能名和路径,模型看不到技能描述',
|
|
132
142
|
zcodeStatsOk: '预算充足:清单带完整描述注入新会话',
|
|
133
143
|
zcodeStatsSuggest: '建议预算 {n} 字符(留 20% 余量)',
|
|
134
144
|
zcodeBudgetApply: '用建议值',
|
|
@@ -139,7 +149,7 @@ const zh = {
|
|
|
139
149
|
zcodeSkillIncludeInstructions: '技能说明注入',
|
|
140
150
|
zcodeSkillIncludeInstructionsDesc: 'skills.includeInstructions:技能说明是否随清单一起注入',
|
|
141
151
|
zcodeSkillBudget: '技能清单预算(字符)',
|
|
142
|
-
zcodeSkillBudgetDesc: 'skills.metadataBudget
|
|
152
|
+
zcodeSkillBudgetDesc: 'skills.metadataBudget:完整清单超过该长度就降级为只剩技能名和路径,默认 20000',
|
|
143
153
|
zcodeSkillRoots: '额外技能目录',
|
|
144
154
|
zcodeSkillRootsDesc: 'skills.roots:每行一个目录,目录下的技能会被发现(~/.zcode/skills、~/.agents/skills 之外的补充)',
|
|
145
155
|
zcodeSave: '保存',
|
|
@@ -265,10 +275,10 @@ const zh = {
|
|
|
265
275
|
featureTaskOrder: '侧边栏会话拖动排序',
|
|
266
276
|
featureTaskOrderDesc: '拖动调整置顶、项目与分组中的会话顺序,重启后不变。',
|
|
267
277
|
featureSessionSwitch: '会话快捷切换',
|
|
268
|
-
featureSessionSwitchDesc: '{last}
|
|
278
|
+
featureSessionSwitchDesc: '{last} 来回上次会话;按 alt+字母打开切换弹窗,弹窗里用方向键或快捷键选择;键位可改',
|
|
269
279
|
featureTitleLock: '重命名会话名锁定',
|
|
270
280
|
featureTitleLockDesc: '手动重命名过的会话不被自动标题覆盖,侧栏始终显示重命名后的名字。',
|
|
271
|
-
tabTitleGen: '
|
|
281
|
+
tabTitleGen: '自动重命名',
|
|
272
282
|
titleGenShortDesc: '新会话开始作答时,按所选供应商与提示词生成任务名并按手动重命名保存,官方自动标题不再覆盖。',
|
|
273
283
|
titleGenEnabled: '启用',
|
|
274
284
|
titleGenProvider: '供应商',
|
|
@@ -292,6 +302,17 @@ const zh = {
|
|
|
292
302
|
titleGenTesting: '生成中…',
|
|
293
303
|
titleGenTestOk: '生成结果:',
|
|
294
304
|
titleGenTestFailed: '生成失败',
|
|
305
|
+
// 手动“自动重命名”(任务行悬浮按钮 / 右键菜单入口)与其开关
|
|
306
|
+
titleGenManual: '手动重命名',
|
|
307
|
+
titleGenHoverBtn: '任务行悬浮按钮',
|
|
308
|
+
titleGenHoverBtnDesc: '鼠标悬停任务行时,在归档按钮旁显示“自动重命名”按钮。',
|
|
309
|
+
titleGenMenuEntry: '右键菜单项',
|
|
310
|
+
titleGenMenuEntryDesc: '任务右键菜单“重命名任务”下方显示“自动重命名”。',
|
|
311
|
+
titleGenRecentQa: '最近问答数',
|
|
312
|
+
titleGenRecentQaDesc: '手动重命名取会话最近几轮问答作为起名素材。',
|
|
313
|
+
autoRenameItem: '自动重命名',
|
|
314
|
+
autoRenameWorking: '正在生成任务名…',
|
|
315
|
+
autoRenameDone: '已重命名:',
|
|
295
316
|
featureWsRunning: '折叠时任务运行中提示',
|
|
296
317
|
featureWsRunningDesc: '有会话运行时,折叠的项目与任务分区头显示加载图标,全部结束消失。',
|
|
297
318
|
tabPerformance: '性能',
|
|
@@ -339,12 +360,13 @@ const zh = {
|
|
|
339
360
|
featureNewtabPanelsDesc: '新标签页加入第三方插件(headroom、rtk 等)的面板卡片,点击在侧边面板打开。',
|
|
340
361
|
ntpDescSuffix: '插件面板',
|
|
341
362
|
ntpNeedSession: '先打开一个任务会话,再从新标签页打开插件面板',
|
|
363
|
+
ntpOpenMissing: '当前界面没有打开插件面板的入口,无法从新标签页打开插件面板',
|
|
342
364
|
featureStatusBarDesc: '提问输入框右下角和每轮回答最后显示统计项。',
|
|
343
365
|
tabStylesPane: '样式',
|
|
344
366
|
tabStatusPane: '状态栏',
|
|
345
367
|
themeColorsPane: '主题',
|
|
346
368
|
themeBgRegions: '分区背景',
|
|
347
|
-
themeBgRegionFollow: '
|
|
369
|
+
themeBgRegionFollow: '跟随全局壁纸',
|
|
348
370
|
themeBgRegionLeft: '左侧边栏',
|
|
349
371
|
themeBgRegionCenter: '中间区域',
|
|
350
372
|
themeBgRegionRight: '右侧边栏',
|
|
@@ -361,7 +383,7 @@ const zh = {
|
|
|
361
383
|
themeCustomFg: '正文',
|
|
362
384
|
themeCustomMuted: '次级文字',
|
|
363
385
|
themeCustomAccent: '强调色',
|
|
364
|
-
themeBgDesc: '
|
|
386
|
+
themeBgDesc: '壁纸支持图片、视频、网页三类,铺在界面后方;来源可选本地图库(单选一张)、文件夹(定时轮换)、图片网址(定时刷新)或网页地址;左栏 / 中栏 / 右栏可分区独立设置(仅静态图,缩放与遮罩可单独调)。侧栏、会话流、输入框和设置弹窗都可透出画面——设置弹窗是磨砂玻璃,磨砂效果可在本页关掉;右键菜单与其他弹窗保持不透明保可读。本地图库随 WebDAV 同步上传(覆盖式,不留历史版本)。',
|
|
365
387
|
themeBgModeNone: '无壁纸',
|
|
366
388
|
themeBgModeLibrary: '本地图库',
|
|
367
389
|
themeBgModeFolder: '文件夹',
|
|
@@ -371,31 +393,34 @@ const zh = {
|
|
|
371
393
|
themeBgUpload: '上传图片/视频',
|
|
372
394
|
themeBgEmpty: '还没有上传文件;图片支持 png / jpg / webp / gif / bmp / avif(10MB 以内),视频支持 mp4 / webm / mov(200MB 以内)',
|
|
373
395
|
themeBgDelete: '删除',
|
|
374
|
-
themeBgNoneHint: '
|
|
396
|
+
themeBgNoneHint: '选择一种壁纸来源;文件夹可定时轮换,图片网址可配合随机图 API 定时刷新。',
|
|
375
397
|
themeBgFolderPick: '浏览',
|
|
376
398
|
themeBgFolderPickTitle: '选择壁纸文件夹',
|
|
377
399
|
themeBgFolderHint: '选择一个装壁纸的文件夹,文件原地读取不复制。',
|
|
378
400
|
themeBgFolderRandom: '随机顺序',
|
|
379
|
-
themeBgIntervalHint: '
|
|
380
|
-
themeBgIntervalUnit: '
|
|
401
|
+
themeBgIntervalHint: '轮换间隔(分钟)',
|
|
402
|
+
themeBgIntervalUnit: '分钟后轮换,设为 0 不轮换',
|
|
381
403
|
themeBgFolderCount: '文件夹里有 {n} 个壁纸文件,定时轮换中。',
|
|
404
|
+
themeBgFolderCountIdle: '文件夹里有 {n} 个壁纸文件,当前不轮换。',
|
|
382
405
|
themeBgFolderMissing: '文件夹不存在或里面没有壁纸文件。',
|
|
383
|
-
|
|
384
|
-
themeBgUrlIntervalHint: '刷新间隔(分钟)',
|
|
406
|
+
themeBgUrlIntervalUnit: '分钟后刷新,设为 0 不刷新',
|
|
385
407
|
themeBgUrlInvalid: '网址需以 http(s):// 开头',
|
|
386
408
|
themeBgWebHint: '网页壁纸用沙箱 iframe 铺在界面后方,页面需自行播放动画或视频;仅页面自身透明底时能透出壁纸,部分依赖登录态的页面无法显示。',
|
|
409
|
+
themeBgSource: '来源',
|
|
410
|
+
themeBgImage: '画面',
|
|
387
411
|
themeBgFit: '缩放方式',
|
|
388
412
|
themeBgFitCover: '填满',
|
|
389
413
|
themeBgFitContain: '适应',
|
|
390
414
|
themeBgFitFill: '拉伸',
|
|
391
415
|
themeBgFitTile: '平铺',
|
|
392
416
|
themeBgMask: '遮罩不透明度',
|
|
393
|
-
themeBgMaskHint: '数值越高,画面越向主题背景色淡化,文字对比越清晰',
|
|
394
|
-
themeBgMaskHint2: '画面向主题背景色淡化的程度',
|
|
395
417
|
themeBgBlur: '画面模糊',
|
|
396
418
|
themeBgPanel: '面板不透明度',
|
|
397
|
-
|
|
398
|
-
|
|
419
|
+
themeBgDialogFrost: '设置弹窗磨砂',
|
|
420
|
+
themeBgMisc: '其他',
|
|
421
|
+
themeBgFollowGlobal: '跟随全局',
|
|
422
|
+
themeBgRegionsHint: '每行的缩放、遮罩可单独设置,选“跟随全局”即跟随“画面”的值;模糊、转场、播放仅作用于全局壁纸(分区只能铺图,不能播视频)。分区用文件夹时,轮换间隔与随机顺序沿用全局设置。',
|
|
423
|
+
themeBgPlayback: '播放(视频壁纸)',
|
|
399
424
|
themeBgVolume: '音量',
|
|
400
425
|
themeBgVolumeHint: '视频壁纸的音轨音量,0 = 静音(默认)',
|
|
401
426
|
themeBgRate: '倍速',
|
|
@@ -403,7 +428,7 @@ const zh = {
|
|
|
403
428
|
themeBgFpsOff: '原始帧率',
|
|
404
429
|
themeBgFpsHint: '对视频壁纸重编码抽帧以省资源,需要 ffmpeg;未安装时保持原始帧率。',
|
|
405
430
|
themeBgTransition: '切换转场',
|
|
406
|
-
themeBgTransitionCut: '
|
|
431
|
+
themeBgTransitionCut: '直接切换',
|
|
407
432
|
themeBgTransitionFade: '淡入淡出',
|
|
408
433
|
themeBgPause: '暂停条件',
|
|
409
434
|
themeBgPauseHidden: '窗口最小化时',
|
|
@@ -413,6 +438,7 @@ const zh = {
|
|
|
413
438
|
tableCopyBtn: '复制表格',
|
|
414
439
|
tableCopied: '表格已复制',
|
|
415
440
|
sbItemCtx: '上下文占用',
|
|
441
|
+
sbItemTokRate: '最近输出 tokens/s',
|
|
416
442
|
sbItemQuestions: '提问次数',
|
|
417
443
|
sbMaster: '启用统计',
|
|
418
444
|
sbMasterDesc: '总开关:关闭后输入框右下角的统计行与每轮回答的用量标注一起停用。',
|
|
@@ -466,6 +492,8 @@ const zh = {
|
|
|
466
492
|
featureComposerProvider: '模型名显示供应商',
|
|
467
493
|
featureImageCopyDesc: '右键会话中的图片或点击放大的预览图,可将图片复制到剪贴板。',
|
|
468
494
|
featureTableCopyDesc: '表格工具条新增复制表格,粘贴进 Excel / 富文本编辑器即为干净表格。',
|
|
495
|
+
featureSessionLink: '会话 ID 显示为任务名链接',
|
|
496
|
+
featureSessionLinkDesc: '提问与回答里的会话 ID(sess_ / session_ 开头)显示为任务名,点击切换到该会话,悬停可看原始 ID。',
|
|
469
497
|
featureComposerProviderDesc: '模型名前显示供应商名(如 BigModel-Max1 / glm-5.3),区分同名模型。',
|
|
470
498
|
imageCopy: '复制图片',
|
|
471
499
|
imageCopied: '图片已复制到剪贴板',
|
|
@@ -477,6 +505,10 @@ const zh = {
|
|
|
477
505
|
pathCopyFailed: '复制路径失败',
|
|
478
506
|
fileOpenDefault: '默认应用打开',
|
|
479
507
|
fileReveal: '打开所在目录',
|
|
508
|
+
fileActionFailed: '{label}失败:{err}',
|
|
509
|
+
unknownError: '未知错误',
|
|
510
|
+
pluginLabel: '插件',
|
|
511
|
+
manualInput: '(手动输入)',
|
|
480
512
|
featureAutoUpdatePlugins: '自动更新',
|
|
481
513
|
featureAutoUpdatePluginsRepo: 'duanluan/zcode-plugins',
|
|
482
514
|
featureAutoUpdatePluginsDesc: '',
|
|
@@ -495,7 +527,7 @@ const zh = {
|
|
|
495
527
|
visionForceInterceptAuto: '不能识图就使用插件',
|
|
496
528
|
visionForceInterceptTrue: '始终使用插件',
|
|
497
529
|
visionForceInterceptFalse: '不使用插件',
|
|
498
|
-
visionForceInterceptHint: '不能识图就使用插件 = 跟随 ZCode
|
|
530
|
+
visionForceInterceptHint: '不能识图就使用插件 = 跟随 ZCode“模型设置”里该模型的图片开关:开 = 模型自看不重复识别,关 = 走识别代理(tool 模式出识别卡片);始终使用插件 = 能看图也强制走识别代理(双重识别换卡片);不使用插件 = 能看图就放行(不能识图的模型仍走识别代理)',
|
|
499
531
|
visionMode: '链模式',
|
|
500
532
|
visionModeFallback: '依次尝试',
|
|
501
533
|
visionModeFallbackDesc: '前一个失败才试下一个,任一成功即止(主力 + 备用)。',
|
|
@@ -523,6 +555,7 @@ const zh = {
|
|
|
523
555
|
visionCompressKB: '压缩阈值 KB',
|
|
524
556
|
visionCompressKBHint: '超过该大小的图先压缩再识别(最长边 2000、JPEG);0 = 不压缩',
|
|
525
557
|
visionLoadFailed: '读取视觉代理配置失败',
|
|
558
|
+
titleGenLoadFailed: '读取自动重命名配置失败',
|
|
526
559
|
tabRtk: 'rtk',
|
|
527
560
|
rtkDesc: 'rtk 插件:把常见开发命令的输出压缩 60-90% 再进入上下文(/rtk-* 命令编辑同一配置)。',
|
|
528
561
|
rtkEnabled: '启用',
|
|
@@ -664,7 +697,7 @@ const zh = {
|
|
|
664
697
|
relocateTitle: '切换文件夹',
|
|
665
698
|
relocateDesc: '将该项目指向另一个文件夹:侧边栏、已打开标签页与本地任务历史一并迁移,目录本身不会被移动,会话记录不会丢失。',
|
|
666
699
|
relocateNewPathLabel: '新文件夹',
|
|
667
|
-
relocateConfirm: '
|
|
700
|
+
relocateConfirm: '切换',
|
|
668
701
|
relocateHint: '目标文件夹需已存在,可输入路径或点击“浏览”选择;完成后界面将自动刷新。',
|
|
669
702
|
relocateSuccess: '已切换文件夹,正在刷新界面…',
|
|
670
703
|
relocateIndexSkipped: '已切换文件夹;任务历史未能同步(本机缺少 SQLite 支持),旧任务条目可能仍指向旧路径。',
|
|
@@ -689,10 +722,10 @@ const en = {
|
|
|
689
722
|
tabZcode: 'ZCode CLI',
|
|
690
723
|
zcodeDesc: 'ZCode behavior settings (written to ~/.zcode/cli/config.json); takes effect for new sessions.',
|
|
691
724
|
zcodeStatsTitle: 'Skill listing check',
|
|
692
|
-
zcodeStatsCounts: '{total} skills ({user} local · {plugin}
|
|
725
|
+
zcodeStatsCounts: '{total} skills ({user} local · {plugin} from plugins)',
|
|
693
726
|
zcodeStatsChars: 'Full listing ≈ {n} characters',
|
|
694
727
|
zcodeBudgetDefaultTag: ' (default)',
|
|
695
|
-
zcodeStatsDegraded: 'Over budget: the listing degrades to names only, so the model cannot see skill descriptions',
|
|
728
|
+
zcodeStatsDegraded: 'Over budget: the listing degrades to names and file paths only, so the model cannot see skill descriptions',
|
|
696
729
|
zcodeStatsOk: 'Within budget: the full listing with descriptions is injected into new sessions',
|
|
697
730
|
zcodeStatsSuggest: 'Suggested budget {n} characters (with 20% margin)',
|
|
698
731
|
zcodeBudgetApply: 'Use suggested',
|
|
@@ -703,7 +736,7 @@ const en = {
|
|
|
703
736
|
zcodeSkillIncludeInstructions: 'Skill instructions injection',
|
|
704
737
|
zcodeSkillIncludeInstructionsDesc: 'skills.includeInstructions: whether skill instructions are injected along with the listing',
|
|
705
738
|
zcodeSkillBudget: 'Skill listing budget (characters)',
|
|
706
|
-
zcodeSkillBudgetDesc: 'skills.metadataBudget: the listing degrades to names only beyond this length; default 20000',
|
|
739
|
+
zcodeSkillBudgetDesc: 'skills.metadataBudget: the listing degrades to names and file paths only beyond this length; default 20000',
|
|
707
740
|
zcodeSkillRoots: 'Extra skill directories',
|
|
708
741
|
zcodeSkillRootsDesc: 'skills.roots: one directory per line; skills under them are discovered (beyond ~/.zcode/skills and ~/.agents/skills)',
|
|
709
742
|
zcodeSave: 'Save',
|
|
@@ -718,9 +751,9 @@ const en = {
|
|
|
718
751
|
zcodeFeatSkillDesc: 'features.skill: the Skill tool is available (the skill system must also be on)',
|
|
719
752
|
zcodeFeatMcp: 'MCP tools',
|
|
720
753
|
zcodeFeatMcpDesc: 'features.mcp: use tools provided by MCP servers',
|
|
721
|
-
zcodeMemoryHint: '
|
|
754
|
+
zcodeMemoryHint: 'Workspace memory is not configured here; toggle it in the official settings under Settings → Agent capabilities → Memory (with the memory viewer).',
|
|
722
755
|
agentsDesc: 'Written to ~/.zcode/AGENTS.md and used as default instructions in every session across all projects. Takes effect for new sessions; per-project AGENTS.md can extend or override it. Content over 100 KB is truncated by the app.',
|
|
723
|
-
agentsPlaceholder: 'Instructions followed by all projects by default;
|
|
756
|
+
agentsPlaceholder: 'Instructions followed by all projects by default; leave empty and save to remove the global prompt',
|
|
724
757
|
agentsSave: 'Save',
|
|
725
758
|
agentsSaved: 'Global prompt saved.',
|
|
726
759
|
agentsLoadFailed: 'Failed to load the global prompt',
|
|
@@ -741,7 +774,7 @@ const en = {
|
|
|
741
774
|
proxyScopeSyncDesc: 'WebDAV upload and download go through the proxy.',
|
|
742
775
|
tabSync: 'Sync',
|
|
743
776
|
tabDebug: 'Debug',
|
|
744
|
-
testNoSessionHint: 'With
|
|
777
|
+
testNoSessionHint: 'With "Follow current session" selected, the provider and model of the last session are used (the label shows the model name in brackets).',
|
|
745
778
|
syncDesc: 'Manually back up ZCode Pro settings and model settings to WebDAV, or restore them on a new computer. The two items are stored as separate files, so you can upload or overwrite either one alone; every upload also keeps a timestamped history version (how many to keep is set in the "History" row; older ones are removed automatically after upload) and download lets you pick any of them. Data moves only when you click, never automatically.',
|
|
746
779
|
syncUrlPlaceholder: 'https://dav.example.com/dav/',
|
|
747
780
|
syncDir: 'Folder',
|
|
@@ -754,7 +787,7 @@ const en = {
|
|
|
754
787
|
syncPruned: 'removed {n} older history versions',
|
|
755
788
|
syncSave: 'Save',
|
|
756
789
|
syncSaved: 'Sync settings saved.',
|
|
757
|
-
syncFormHint: 'Sync files go inside the folder (default zcode-pro, multi-level allowed, created automatically): zcodepro.json and model.json
|
|
790
|
+
syncFormHint: 'Sync files go inside the folder (default zcode-pro, multi-level allowed, created automatically): zcodepro.json and model.json always hold the latest version; timestamped history versions are kept alongside.',
|
|
758
791
|
syncRecLink: 'Jianguoyun WebDAV',
|
|
759
792
|
syncRecSuffix: ' — use the app password, not your account password.',
|
|
760
793
|
syncIncludeZcp: 'ZCode Pro settings',
|
|
@@ -764,7 +797,7 @@ const en = {
|
|
|
764
797
|
syncUpload: 'Upload',
|
|
765
798
|
syncDownload: 'Download',
|
|
766
799
|
syncUploading: 'Uploading…',
|
|
767
|
-
syncUploaded: 'Uploaded to the server
|
|
800
|
+
syncUploaded: 'Uploaded to the server',
|
|
768
801
|
syncDownloaded: 'Restored from the server.',
|
|
769
802
|
syncLastPush: 'Last upload',
|
|
770
803
|
syncLastPull: 'Last download',
|
|
@@ -772,7 +805,7 @@ const en = {
|
|
|
772
805
|
syncConfirmTitle: 'Download from the server',
|
|
773
806
|
syncConfirmDesc: 'The selected file will overwrite the matching local section (a .zcodepro-backup copy is kept next to each file); your local sync config and credentials stay untouched. Restarting ZCode is recommended after restoring model settings. Import now?',
|
|
774
807
|
syncConfirmGo: 'Import',
|
|
775
|
-
syncPickDesc: 'Fixed names
|
|
808
|
+
syncPickDesc: 'Fixed names always hold the latest version; timestamped files are the history each upload leaves behind. Import overwrites the matching local section.',
|
|
776
809
|
syncVerDeleteLatestNote: 'Note: this is the "latest" file that older zcode-pro installs download from; deleting it breaks their download. Timestamped history versions are not affected.',
|
|
777
810
|
syncHint: 'Sync credentials are stored locally in zcodepro.json only; model settings contain the API keys of custom providers and go to your own WebDAV only.',
|
|
778
811
|
syncTest: 'Test',
|
|
@@ -817,11 +850,11 @@ const en = {
|
|
|
817
850
|
lineHeightName: 'Answer line height',
|
|
818
851
|
lineHeightDesc: 'Line height of answer text (multiplier).',
|
|
819
852
|
thinkingLineHeightName: 'Work-log line height',
|
|
820
|
-
thinkingLineHeightDesc: 'Line height of the
|
|
853
|
+
thinkingLineHeightDesc: 'Line height of the "worked for…" history panel (tool entries and reasoning, multiplier).',
|
|
821
854
|
userLineHeightName: 'Question line height',
|
|
822
855
|
userLineHeightDesc: 'Line height of question text (multiplier).',
|
|
823
856
|
contentWidthName: 'Content width',
|
|
824
|
-
contentWidthDesc: 'Max width of conversation content; accepts px or % (e.g. 900px, 85%).',
|
|
857
|
+
contentWidthDesc: 'Max width of conversation content; accepts px or % (e.g. 900px, 85%). Shows the current actual width by default; % is relative to the session area.',
|
|
825
858
|
defaultValue: 'default',
|
|
826
859
|
resetDefault: 'Reset to default',
|
|
827
860
|
featureProjectMenu: 'Project menu actions',
|
|
@@ -829,37 +862,47 @@ const en = {
|
|
|
829
862
|
featureTaskOrder: 'Sidebar session drag ordering',
|
|
830
863
|
featureTaskOrderDesc: 'Drag to reorder sessions in Pinned, Projects and Groups; survives restarts.',
|
|
831
864
|
featureSessionSwitch: 'Session quick switch',
|
|
832
|
-
featureSessionSwitchDesc: '{last} toggles
|
|
865
|
+
featureSessionSwitchDesc: '{last} toggles between the current and the last session; alt + letter opens the switcher popup, pick with arrows or hotkeys inside; keys remappable',
|
|
833
866
|
featureTitleLock: 'Keep renamed session titles',
|
|
834
867
|
featureTitleLockDesc: 'Sessions you renamed keep their custom title in the sidebar.',
|
|
835
|
-
tabTitleGen: '
|
|
836
|
-
titleGenShortDesc: 'When a new session starts answering, generates the task name with the chosen provider and prompt and saves it as a manual rename the built-in title never overrides.',
|
|
868
|
+
tabTitleGen: 'Auto rename',
|
|
869
|
+
titleGenShortDesc: 'When a new session starts answering, generates the task name with the chosen provider and prompt and saves it as a manual rename that the built-in title never overrides.',
|
|
837
870
|
titleGenEnabled: 'Enable',
|
|
838
871
|
titleGenProvider: 'Provider',
|
|
839
872
|
titleGenProviderNone: 'Custom endpoint (no provider)',
|
|
840
873
|
titleGenProviderSession: 'Follow current session',
|
|
841
874
|
titleGenProviderDeleted: ' (deleted)',
|
|
842
875
|
titleGenModel: 'Model',
|
|
843
|
-
titleGenModelHint: 'Pick from the list, or type a model
|
|
876
|
+
titleGenModelHint: 'Pick from the list, or type a model ID',
|
|
844
877
|
titleGenModelEmpty: '(not set)',
|
|
845
878
|
titleGenModelSessionHint: 'Pick from the list; the first entry follows the session model',
|
|
846
879
|
titleGenModelFollowSession: 'Follow the session model',
|
|
847
|
-
titleGenModelManualHint: 'Type a model
|
|
880
|
+
titleGenModelManualHint: 'Type a model ID',
|
|
848
881
|
titleGenBaseUrl: 'Base URL',
|
|
849
882
|
titleGenApiKey: 'API Key',
|
|
850
883
|
titleGenFormat: 'Protocol',
|
|
851
884
|
titleGenPrompt: 'Prompt',
|
|
852
|
-
titleGenPromptPlaceholder: 'Leave empty for the built-in default prompt (button below shows it)',
|
|
885
|
+
titleGenPromptPlaceholder: 'Leave empty for the built-in default prompt (the button below shows it)',
|
|
853
886
|
titleGenPromptReset: 'Use default prompt',
|
|
854
887
|
titleGenSample: 'Test message',
|
|
855
888
|
titleGenTest: 'Test',
|
|
856
889
|
titleGenTesting: 'Generating…',
|
|
857
890
|
titleGenTestOk: 'Result: ',
|
|
858
891
|
titleGenTestFailed: 'Generation failed',
|
|
892
|
+
titleGenManual: 'Manual rename',
|
|
893
|
+
titleGenHoverBtn: 'Task row hover button',
|
|
894
|
+
titleGenHoverBtnDesc: 'Show an "Auto rename" button next to the archive button when hovering a task row.',
|
|
895
|
+
titleGenMenuEntry: 'Context menu item',
|
|
896
|
+
titleGenMenuEntryDesc: 'Show "Auto rename" below "Rename task" in the task context menu.',
|
|
897
|
+
titleGenRecentQa: 'Recent Q&A rounds',
|
|
898
|
+
titleGenRecentQaDesc: 'Manual rename uses the last N Q&A rounds as input.',
|
|
899
|
+
autoRenameItem: 'Auto rename',
|
|
900
|
+
autoRenameWorking: 'Generating title…',
|
|
901
|
+
autoRenameDone: 'Renamed: ',
|
|
859
902
|
featureWsRunning: 'Running indicator when collapsed',
|
|
860
903
|
featureWsRunningDesc: 'Collapsed project and task headers show a loader while sessions run.',
|
|
861
904
|
tabPerformance: 'Performance',
|
|
862
|
-
perfDesc: 'ZCode keeps a session process resident for every project you have opened and never reclaims it, so memory grows with projects. When enabled, projects unused for a while with nothing running release their memory automatically: sessions are untouched and reload when reopened, with a few seconds wait on the first reply. The project in use, running sessions, background commands and scheduled tasks are never reclaimed. Background-command detection reads system process info via built-in tools (Linux / macOS / Windows); when unavailable, the feature disables itself.',
|
|
905
|
+
perfDesc: 'ZCode keeps a session process resident for every project you have opened and never reclaims it, so memory grows with projects. When enabled, projects unused for a while with nothing running release their memory automatically: sessions are untouched and reload when reopened, with a few seconds\' wait on the first reply. The project in use, running sessions, background commands and scheduled tasks are never reclaimed. Background-command detection reads system process info via built-in tools (Linux / macOS / Windows); when unavailable, the feature disables itself.',
|
|
863
906
|
featureIdleReclaim: 'Idle project memory reclaim',
|
|
864
907
|
featureIdleReclaimDesc: 'Qualifying projects release their memory; sessions are untouched and reload when reopened.',
|
|
865
908
|
idleReclaimMinutesLabel: 'Idle minutes before reclaim',
|
|
@@ -875,9 +918,9 @@ const en = {
|
|
|
875
918
|
featurePinnedCollapse: 'Collapsible Pinned section',
|
|
876
919
|
featurePinnedCollapseDesc: 'The Pinned header collapses/expands its task list.',
|
|
877
920
|
featureSandboxReclaim: 'Plugin card sandbox reclaim',
|
|
878
|
-
featureSandboxReclaimDesc: 'Reclaims the oldest sandboxes
|
|
921
|
+
featureSandboxReclaimDesc: 'Reclaims the oldest sandboxes when the 64-slot cap is hit so new cards keep opening; released cards come back when their session is reopened.',
|
|
879
922
|
featurePluginCardRetry: 'Plugin card auto-retry',
|
|
880
|
-
featurePluginCardRetryDesc: 'Auto-clicks "Reload" on cards that
|
|
923
|
+
featurePluginCardRetryDesc: 'Auto-clicks "Reload" on cards that hit the slot cap; they recover as soon as a slot frees up.',
|
|
881
924
|
visionCardUi: 'Vision cards',
|
|
882
925
|
pinnedToggleAria: 'Collapse/expand Pinned',
|
|
883
926
|
sidebarProjectSpacingName: 'Project spacing',
|
|
@@ -903,18 +946,19 @@ const en = {
|
|
|
903
946
|
featureNewtabPanelsDesc: "Adds third-party plugin panels (headroom, rtk, ...) to the new tab page; click to open in the side pane.",
|
|
904
947
|
ntpDescSuffix: 'plugin panel',
|
|
905
948
|
ntpNeedSession: 'Open a task session first, then open plugin panels from the new tab page',
|
|
949
|
+
ntpOpenMissing: 'No plugin-panel opener in this UI; cannot open plugin panels from the new tab page',
|
|
906
950
|
featureStatusBarDesc: 'Shows statistics at the bottom-right of the input box and at the end of each answer.',
|
|
907
951
|
tabStylesPane: 'Styles',
|
|
908
952
|
tabStatusPane: 'Status bar',
|
|
909
953
|
themeColorsPane: 'Theme',
|
|
910
954
|
themeBgRegions: 'Regional backgrounds',
|
|
911
|
-
themeBgRegionFollow: '
|
|
955
|
+
themeBgRegionFollow: 'Follow global',
|
|
912
956
|
themeBgRegionLeft: 'Left sidebar',
|
|
913
957
|
themeBgRegionCenter: 'Center area',
|
|
914
958
|
themeBgRegionRight: 'Right sidebar',
|
|
915
959
|
themeBgPane: 'Wallpaper',
|
|
916
960
|
themeSkinTitle: 'Skins',
|
|
917
|
-
themeSkinDesc: '
|
|
961
|
+
themeSkinDesc: 'Well-known editor theme palettes, auto-matching ZCode\'s light / dark mode; "Default" keeps ZCode as-is, "Custom" is tuned below.',
|
|
918
962
|
themeSkinCustom: 'Custom',
|
|
919
963
|
themeCustomTitle: 'Custom theme',
|
|
920
964
|
themeCustomHint: 'Color changes apply live (auto-switches to the custom skin); set light and dark separately — pick 5 colors and the whole palette is derived.',
|
|
@@ -925,7 +969,7 @@ const en = {
|
|
|
925
969
|
themeCustomFg: 'Text',
|
|
926
970
|
themeCustomMuted: 'Muted text',
|
|
927
971
|
themeCustomAccent: 'Accent',
|
|
928
|
-
themeBgDesc: 'Wallpapers can be images, videos or web pages, rendered behind the UI. Sources: local library, folder (rotate on a timer), image URL (refresh on a timer) or a web page; left / center / right regions can each have their own (static images only). Sidebar, chat and
|
|
972
|
+
themeBgDesc: 'Wallpapers can be images, videos or web pages, rendered behind the UI. Sources: local library (pick one image), folder (rotate on a timer), image URL (refresh on a timer) or a web page; left / center / right regions can each have their own background (static images only, with their own fit and mask). Sidebar, chat, composer and the settings window reveal the wallpaper — the settings window is frosted; the frosting can be turned off here; context menus and other dialogs stay opaque for readability. The library uploads over WebDAV with the zcode-pro sync group (overwrite, no history versions).',
|
|
929
973
|
themeBgModeNone: 'None',
|
|
930
974
|
themeBgModeLibrary: 'Library',
|
|
931
975
|
themeBgModeFolder: 'Folder',
|
|
@@ -935,31 +979,34 @@ const en = {
|
|
|
935
979
|
themeBgUpload: 'Upload images/videos',
|
|
936
980
|
themeBgEmpty: 'Nothing uploaded yet. Images: png / jpg / webp / gif / bmp / avif (up to 10MB); videos: mp4 / webm / mov (up to 200MB)',
|
|
937
981
|
themeBgDelete: 'Delete',
|
|
938
|
-
themeBgNoneHint: 'Pick a wallpaper source;
|
|
982
|
+
themeBgNoneHint: 'Pick a wallpaper source; folders rotate on a timer, image URLs refresh on a timer for random-image APIs.',
|
|
939
983
|
themeBgFolderPick: 'Browse',
|
|
940
984
|
themeBgFolderPickTitle: 'Choose a wallpaper folder',
|
|
941
985
|
themeBgFolderHint: 'Pick a folder of wallpapers; files are read in place, not copied.',
|
|
942
986
|
themeBgFolderRandom: 'Random order',
|
|
943
|
-
themeBgIntervalHint: '
|
|
944
|
-
themeBgIntervalUnit: '
|
|
987
|
+
themeBgIntervalHint: 'Rotation interval (minutes)',
|
|
988
|
+
themeBgIntervalUnit: 'minutes between rotations; 0 = no rotation',
|
|
945
989
|
themeBgFolderCount: '{n} wallpaper files in the folder, rotating on the timer.',
|
|
990
|
+
themeBgFolderCountIdle: '{n} wallpaper files in the folder, rotation off.',
|
|
946
991
|
themeBgFolderMissing: 'Folder missing or contains no wallpaper files.',
|
|
947
|
-
|
|
948
|
-
themeBgUrlIntervalHint: 'Refresh interval (minutes)',
|
|
992
|
+
themeBgUrlIntervalUnit: 'minutes between refreshes; 0 = no refresh',
|
|
949
993
|
themeBgUrlInvalid: 'URL must start with http(s)://',
|
|
950
994
|
themeBgWebHint: 'Web wallpapers render behind the UI in a sandboxed iframe; the page plays its own animation or video. Only pages with their own transparent background reveal the wallpaper; pages that need a login session may not show.',
|
|
995
|
+
themeBgSource: 'Source',
|
|
996
|
+
themeBgImage: 'Display',
|
|
951
997
|
themeBgFit: 'Fit',
|
|
952
998
|
themeBgFitCover: 'Fill',
|
|
953
999
|
themeBgFitContain: 'Fit',
|
|
954
1000
|
themeBgFitFill: 'Stretch',
|
|
955
1001
|
themeBgFitTile: 'Tile',
|
|
956
1002
|
themeBgMask: 'Mask opacity',
|
|
957
|
-
themeBgMaskHint: 'Higher values fade the wallpaper toward the theme background color for clearer text',
|
|
958
|
-
themeBgMaskHint2: 'How much the wallpaper fades toward the theme background color',
|
|
959
1003
|
themeBgBlur: 'Wallpaper blur',
|
|
960
1004
|
themeBgPanel: 'Panel opacity',
|
|
961
|
-
|
|
962
|
-
|
|
1005
|
+
themeBgDialogFrost: 'Frosted settings window',
|
|
1006
|
+
themeBgMisc: 'Other',
|
|
1007
|
+
themeBgFollowGlobal: 'Follow global',
|
|
1008
|
+
themeBgRegionsHint: 'Fit and mask can be set per row; "Follow global" uses the Display values. Blur, transition and playback apply only to the global wallpaper (regions are static images, no video). Region folders reuse the global rotation interval and order settings.',
|
|
1009
|
+
themeBgPlayback: 'Playback (video)',
|
|
963
1010
|
themeBgVolume: 'Volume',
|
|
964
1011
|
themeBgVolumeHint: 'Audio track volume of video wallpapers, 0 = muted (default)',
|
|
965
1012
|
themeBgRate: 'Speed',
|
|
@@ -967,7 +1014,7 @@ const en = {
|
|
|
967
1014
|
themeBgFpsOff: 'Native',
|
|
968
1015
|
themeBgFpsHint: 'Re-encodes video wallpapers to a lower frame rate to save resources; needs ffmpeg, otherwise the native rate is kept.',
|
|
969
1016
|
themeBgTransition: 'Transition',
|
|
970
|
-
themeBgTransitionCut: '
|
|
1017
|
+
themeBgTransitionCut: 'Instant',
|
|
971
1018
|
themeBgTransitionFade: 'Fade',
|
|
972
1019
|
themeBgPause: 'Pause when',
|
|
973
1020
|
themeBgPauseHidden: 'Window minimized',
|
|
@@ -977,10 +1024,11 @@ const en = {
|
|
|
977
1024
|
tableCopyBtn: 'Copy table',
|
|
978
1025
|
tableCopied: 'Table copied',
|
|
979
1026
|
sbItemCtx: 'Context usage',
|
|
1027
|
+
sbItemTokRate: 'Recent output tokens/s',
|
|
980
1028
|
sbItemQuestions: 'Questions asked',
|
|
981
1029
|
sbMaster: 'Enable statistics',
|
|
982
1030
|
sbMasterDesc: 'Master switch: turning this off disables both the input-box statistics and per-turn labels.',
|
|
983
|
-
sbGroupSession: 'Session statistics (follows current session)',
|
|
1031
|
+
sbGroupSession: 'Session statistics (follows the current session)',
|
|
984
1032
|
sbGroupGlobal: 'Global statistics',
|
|
985
1033
|
sbGroupTurn: 'Per-turn statistics (answer rows)',
|
|
986
1034
|
sbLabelIn: 'in',
|
|
@@ -988,7 +1036,7 @@ const en = {
|
|
|
988
1036
|
sbLabelCache: 'cache',
|
|
989
1037
|
turnUsageTitle: 'Turn tokens',
|
|
990
1038
|
sbLabelQuestions: 'asks',
|
|
991
|
-
sbItemTodayTokens: '
|
|
1039
|
+
sbItemTodayTokens: 'Tokens today',
|
|
992
1040
|
sbItemTasks: 'Tasks',
|
|
993
1041
|
sbLabelCtx: 'ctx',
|
|
994
1042
|
sbLabelTurns: 'calls',
|
|
@@ -1003,8 +1051,8 @@ const en = {
|
|
|
1003
1051
|
tabShortcuts: 'Shortcuts',
|
|
1004
1052
|
hkTitle: 'Session quick switch',
|
|
1005
1053
|
hkAltZ: 'Toggle between the current and the last-used session',
|
|
1006
|
-
hkAltX: 'Move the highlight up (earlier
|
|
1007
|
-
hkAltC: 'Move the highlight down (recent
|
|
1054
|
+
hkAltX: 'Move the highlight up (earlier tasks) in the popup',
|
|
1055
|
+
hkAltC: 'Move the highlight down (more recent tasks); at the bottom it loads 5 more and highlights the first newly loaded entry',
|
|
1008
1056
|
hkAltE: 'Open the last 10 tasks',
|
|
1009
1057
|
hkAltR: 'Open running / finished-but-unseen tasks',
|
|
1010
1058
|
hkArrow: 'Move the highlight while the popup is open (same rules as alt + {prev} / alt + {next})',
|
|
@@ -1025,11 +1073,13 @@ const en = {
|
|
|
1025
1073
|
hkResetDone: 'Shortcuts reset to defaults',
|
|
1026
1074
|
featureFileActions: 'File menu actions',
|
|
1027
1075
|
featureFileActionsDesc: 'Adds "Open with default app" and "Reveal in file manager" to the right-click menu of file links in chat.',
|
|
1028
|
-
featureImageCopy: '
|
|
1076
|
+
featureImageCopy: 'Copy image',
|
|
1029
1077
|
featureTableCopy: 'Copy table',
|
|
1030
1078
|
featureComposerProvider: 'Provider in model name',
|
|
1031
1079
|
featureImageCopyDesc: 'Right-click an image in chat or the enlarged preview to copy it to the clipboard.',
|
|
1032
1080
|
featureTableCopyDesc: 'Copy-table button on the table toolbar; pastes into Excel / editors as a clean table.',
|
|
1081
|
+
featureSessionLink: 'Session ID links',
|
|
1082
|
+
featureSessionLinkDesc: 'Shows session IDs (sess_ / session_) in chat as task names; click to switch to that session, hover for the raw ID.',
|
|
1033
1083
|
featureComposerProviderDesc: 'Shows the provider before the model name (e.g. BigModel-Max1 / glm-5.3).',
|
|
1034
1084
|
imageCopy: 'Copy image',
|
|
1035
1085
|
imageCopied: 'Image copied to the clipboard.',
|
|
@@ -1041,6 +1091,10 @@ const en = {
|
|
|
1041
1091
|
pathCopyFailed: 'Failed to copy the path.',
|
|
1042
1092
|
fileOpenDefault: 'Open with default app',
|
|
1043
1093
|
fileReveal: 'Reveal in file manager',
|
|
1094
|
+
fileActionFailed: '{label} failed: {err}',
|
|
1095
|
+
unknownError: 'Unknown error',
|
|
1096
|
+
pluginLabel: 'Plugin',
|
|
1097
|
+
manualInput: ' (manual input)',
|
|
1044
1098
|
featureAutoUpdatePlugins: 'Auto-update',
|
|
1045
1099
|
featureAutoUpdatePluginsRepo: 'duanluan/zcode-plugins',
|
|
1046
1100
|
featureAutoUpdatePluginsDesc: '',
|
|
@@ -1056,10 +1110,10 @@ const en = {
|
|
|
1056
1110
|
visionDesc: 'When the main model cannot see images (e.g. glm-5.3), images in messages are recognized by the vision models below and passed to the main model as text (zcode-vision plugin; /vision-* commands edit the same file).',
|
|
1057
1111
|
visionEnabled: 'Enable',
|
|
1058
1112
|
visionForceIntercept: 'Main model',
|
|
1059
|
-
visionForceInterceptAuto: "Use plugin only if model
|
|
1060
|
-
visionForceInterceptTrue: 'Always use plugin',
|
|
1061
|
-
visionForceInterceptFalse: 'Never use plugin',
|
|
1062
|
-
visionForceInterceptHint: "Use plugin only if model
|
|
1113
|
+
visionForceInterceptAuto: "Use the plugin only if the model cannot see images",
|
|
1114
|
+
visionForceInterceptTrue: 'Always use the plugin',
|
|
1115
|
+
visionForceInterceptFalse: 'Never use the plugin',
|
|
1116
|
+
visionForceInterceptHint: "Use the plugin only if the model cannot see images = follow the image toggle in ZCode model settings: on = the model sees images itself (no duplicate recognition), off = route through the vision proxy (tool mode shows the result card); Always use the plugin = forced double recognition for the card; Never use the plugin = let capable models see images (models that can't still go through the plugin)",
|
|
1063
1117
|
visionMode: 'Chain mode',
|
|
1064
1118
|
visionModeFallback: 'Fallback',
|
|
1065
1119
|
visionModeFallbackDesc: 'Try in order until one succeeds (primary + backup).',
|
|
@@ -1073,10 +1127,10 @@ const en = {
|
|
|
1073
1127
|
visionUseProvider: 'Provider',
|
|
1074
1128
|
visionSkipAfterFailures: 'Skip after failures',
|
|
1075
1129
|
visionSkipAfterFailuresHint: 'After this many consecutive failures a proxy is skipped and the next one is tried; 0 = never skip',
|
|
1076
|
-
visionSkipMinutes: 'Skip minutes',
|
|
1130
|
+
visionSkipMinutes: 'Skip for (minutes)',
|
|
1077
1131
|
visionSkipMinutesHint: 'How long a skipped proxy rests before being retried; any success resets the counter',
|
|
1078
1132
|
visionResetChain: 'Reset default chain',
|
|
1079
|
-
visionResetChainConfirm: 'Reset chain mode and the proxy list to the default single-level chain (session
|
|
1133
|
+
visionResetChainConfirm: 'Reset chain mode and the proxy list to the default single-level chain (the "session" entry follows the session\'s provider and model)? Current proxy edits will be lost. Continue?',
|
|
1080
1134
|
visionBaseUrl: 'API URL',
|
|
1081
1135
|
visionModel: 'Model',
|
|
1082
1136
|
visionApiKey: 'API Key',
|
|
@@ -1084,9 +1138,10 @@ const en = {
|
|
|
1084
1138
|
visionTest: 'Test',
|
|
1085
1139
|
visionTesting: 'Testing…',
|
|
1086
1140
|
visionTestFailed: 'Vision proxy test failed',
|
|
1087
|
-
visionCompressKB: '
|
|
1141
|
+
visionCompressKB: 'Compression threshold (KB)',
|
|
1088
1142
|
visionCompressKBHint: 'Images above this size are compressed first (max edge 2000, JPEG); 0 = never',
|
|
1089
1143
|
visionLoadFailed: 'Failed to load the vision config',
|
|
1144
|
+
titleGenLoadFailed: 'Failed to load the auto-rename config',
|
|
1090
1145
|
tabRtk: 'rtk',
|
|
1091
1146
|
rtkDesc: 'rtk plugin: compresses common dev command output by 60-90% before it reaches the context (/rtk-* commands edit the same files).',
|
|
1092
1147
|
rtkEnabled: 'Enable',
|
|
@@ -1095,15 +1150,15 @@ const en = {
|
|
|
1095
1150
|
rtkBinInstalled: 'rtk installed; PATH takes effect for sessions after signing out and back in — the plugin hook works immediately',
|
|
1096
1151
|
rtkWhitelistTitle: 'Whitelist (pass through without compression)',
|
|
1097
1152
|
rtkBuiltinLabel: 'Built-in exemptions (read-only, follow plugin updates):',
|
|
1098
|
-
rtkWhitelistDesc: 'Each entry is name (e.g. docker) or git:name (e.g. git:clone); added commands skip compression. Built-ins (git add/commit/push, mkdir/cp, …) cannot be removed.',
|
|
1153
|
+
rtkWhitelistDesc: 'Each entry is a name (e.g. docker) or git:name (e.g. git:clone); added commands skip compression. Built-ins (git add/commit/push, mkdir/cp, …) cannot be removed.',
|
|
1099
1154
|
rtkWhitelistPlaceholder: 'name or git:name, press Enter to add',
|
|
1100
1155
|
rtkWhitelistAdd: 'Add',
|
|
1101
1156
|
rtkWhitelistClear: 'Clear',
|
|
1102
1157
|
rtkWhitelistCleared: 'Whitelist cleared',
|
|
1103
|
-
rtkWhitelistInvalid: 'Entry must be name or git:name',
|
|
1158
|
+
rtkWhitelistInvalid: 'Entry must be a name or git:name',
|
|
1104
1159
|
rtkLoadFailed: 'Failed to load the rtk config',
|
|
1105
1160
|
tabHeadroom: 'Headroom',
|
|
1106
|
-
headroomDesc: 'Headroom plugin: a local compression proxy on 127.0.0.1 (port 8787 by default) that compresses context sent to the model to save tokens (/hr-* commands edit the same file). Switching the device restarts the proxy, so requests in progress may be interrupted once.',
|
|
1161
|
+
headroomDesc: 'Headroom plugin: a local compression proxy on 127.0.0.1 (port 8787 by default) that compresses context sent to the model to save tokens (/hr-* commands edit the same file). Switching the compression device restarts the proxy, so requests in progress may be interrupted once.',
|
|
1107
1162
|
headroomBinMissing: 'The headroom program was not found, so the proxy cannot start. The settings below take effect once it is installed.',
|
|
1108
1163
|
hrInstallBin: 'Install headroom binary',
|
|
1109
1164
|
hrBinInstalled: 'headroom installed; reopen the app or a session and the proxy will start automatically',
|
|
@@ -1145,7 +1200,7 @@ const en = {
|
|
|
1145
1200
|
headroomWatcher: 'Watcher',
|
|
1146
1201
|
headroomWatcherOn: 'Running',
|
|
1147
1202
|
headroomWatcherOff: 'Stopped',
|
|
1148
|
-
headroomSaverDetect: 'Power-
|
|
1203
|
+
headroomSaverDetect: 'Power-save detection',
|
|
1149
1204
|
headroomRefresh: 'Refresh',
|
|
1150
1205
|
headroomStart: 'Start',
|
|
1151
1206
|
headroomRestart: 'Restart',
|
|
@@ -1155,28 +1210,28 @@ const en = {
|
|
|
1155
1210
|
headroomStoppedWarn: 'Proxy stopped; providers pointing at 127.0.0.1 cannot connect.',
|
|
1156
1211
|
headroomBackend: 'Compression device',
|
|
1157
1212
|
headroomBackendAuto: 'Auto · GPU first',
|
|
1158
|
-
headroomBackendCpu: 'Power
|
|
1213
|
+
headroomBackendCpu: 'Power-save · CPU first',
|
|
1159
1214
|
headroomBackendNative: ' (native)',
|
|
1160
|
-
headroomBackendDesc: 'Auto lets headroom pick the fastest device (CUDA/MPS); CPU forces CPU compression (power saving, no VRAM). Native headroom values (onnx, pytorch_mps, …) also work. Switching restarts the proxy to apply.',
|
|
1215
|
+
headroomBackendDesc: 'Auto lets headroom pick the fastest device (CUDA/MPS); CPU forces CPU compression (power saving, no VRAM). Native headroom values (onnx, pytorch_mps, …) also work. Switching restarts the proxy to apply the change.',
|
|
1161
1216
|
headroomPower: 'Power-save auto switch',
|
|
1162
1217
|
headroomPowerOff: 'Off',
|
|
1163
1218
|
headroomPowerOffDesc: 'No auto switching; always follow the compression device.',
|
|
1164
1219
|
headroomPowerBattery: 'On battery',
|
|
1165
1220
|
headroomPowerBatteryDesc: 'On battery (discharging) → CPU; switches back when plugged in.',
|
|
1166
|
-
headroomPowerSaver: 'Power
|
|
1167
|
-
headroomPowerSaverDesc: 'Only the system power
|
|
1221
|
+
headroomPowerSaver: 'Power saver',
|
|
1222
|
+
headroomPowerSaverDesc: 'Only the system power saver mode → CPU; back when it exits.',
|
|
1168
1223
|
hrCpuPinnedHint: 'The compression device is pinned to CPU, so power-save switching no longer changes anything.',
|
|
1169
1224
|
headroomInterval: 'Watch interval',
|
|
1170
1225
|
headroomIntervalDesc: 'Seconds between power checks (10–3600, default 60); applies from the next round.',
|
|
1171
1226
|
headroomSecUnit: 's',
|
|
1172
|
-
upgradeCheck: 'Check
|
|
1227
|
+
upgradeCheck: 'Check for updates',
|
|
1173
1228
|
upgradeChecking: 'Checking…',
|
|
1174
1229
|
upgradeUpToDate: 'Up to date ({v})',
|
|
1175
1230
|
upgradeFound: '{v} available',
|
|
1176
1231
|
upgradeNow: 'Update',
|
|
1177
1232
|
upgradeRunning: 'Updating…',
|
|
1178
1233
|
upgradeStop: 'Stop',
|
|
1179
|
-
upgradeStopped: '
|
|
1234
|
+
upgradeStopped: 'Update stopped',
|
|
1180
1235
|
upgradeDone: 'Updated to {v}',
|
|
1181
1236
|
upgradeFinished: 'Update finished',
|
|
1182
1237
|
upgradeCheckFailed: 'Update check failed',
|
|
@@ -1193,9 +1248,9 @@ const en = {
|
|
|
1193
1248
|
aliasSaved: 'Alias updated.',
|
|
1194
1249
|
aliasCleared: 'Real name restored.',
|
|
1195
1250
|
aliasHint: 'The directory name on disk is unchanged: terminals, file managers and other path-based UI still show the real name.',
|
|
1196
|
-
featureProjectMenuDescNew: 'Open folder and copy path in the project "More" menu. Renaming is built
|
|
1251
|
+
featureProjectMenuDescNew: 'Open folder and copy path in the project "More" menu. Renaming is built into ZCode ≥ 3.16.1 ("Edit project"), so the custom alias is retired.',
|
|
1197
1252
|
aliasMigrateTitle: 'Migrate project aliases',
|
|
1198
|
-
aliasMigrateDesc: 'This ZCode supports renaming projects (project "More" menu → Edit project), so the custom alias feature is retired.
|
|
1253
|
+
aliasMigrateDesc: 'This ZCode supports renaming projects (project "More" menu → Edit project), so the custom alias feature is retired. Apply your saved aliases to the official project names by picking the projects below; only the project name changes, folders on disk are untouched.',
|
|
1199
1254
|
aliasMigrateItemHint: 'The alias becomes the project name (re-editable anytime via "Edit project"). Only unmarked entries can be checked; migrated, merged, deleted, not-on-this-machine and manually-renamed ones cannot — to rename those projects, use "Edit project" in the project "More" menu directly.',
|
|
1200
1255
|
aliasMigrateStateDone: 'Migrated',
|
|
1201
1256
|
aliasMigrateStateMerged: 'Merged into "{name}"',
|
|
@@ -1228,7 +1283,7 @@ const en = {
|
|
|
1228
1283
|
relocateTitle: 'Switch folder',
|
|
1229
1284
|
relocateDesc: 'Points this project at another folder: the sidebar, open tabs and local task history move along. The directory itself is not moved and no sessions are lost.',
|
|
1230
1285
|
relocateNewPathLabel: 'New folder',
|
|
1231
|
-
relocateConfirm: '
|
|
1286
|
+
relocateConfirm: 'Switch',
|
|
1232
1287
|
relocateHint: 'The target folder must already exist. Enter a path or use Browse; the UI refreshes automatically afterwards.',
|
|
1233
1288
|
relocateSuccess: 'Folder switched. Refreshing…',
|
|
1234
1289
|
relocateIndexSkipped: 'Folder switched, but the task history was not synced (SQLite support missing); old entries may still point to the old path.',
|
|
@@ -1265,12 +1320,18 @@ export function startLocaleResolver() {
|
|
|
1265
1320
|
.catch(() => { /* 取回失败:沿用 navigator.language 兜底 */ });
|
|
1266
1321
|
}
|
|
1267
1322
|
|
|
1323
|
+
let zhCache = { at: 0, v: null };
|
|
1268
1324
|
export function isZhLocale() {
|
|
1325
|
+
// 结果缓存 3 秒:一轮渲染里要调十几次,localStorage 每次读有成本;
|
|
1326
|
+
// 语言切换本来就会重载界面,短缓存跟得上
|
|
1327
|
+
if (zhCache.v != null && Date.now() - zhCache.at < 3000) return zhCache.v;
|
|
1269
1328
|
let pref = null;
|
|
1270
1329
|
try { pref = window.localStorage.getItem('zcode-locale-preference'); } catch { /* ignore */ }
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1330
|
+
const v = (pref === 'zh-CN' || pref === 'en-US') ? pref === 'zh-CN'
|
|
1331
|
+
: cachedSystemLocale ? cachedSystemLocale === 'zh-CN'
|
|
1332
|
+
: /^zh/i.test(navigator.language || 'zh-CN');
|
|
1333
|
+
zhCache = { at: Date.now(), v };
|
|
1334
|
+
return v;
|
|
1274
1335
|
}
|
|
1275
1336
|
|
|
1276
1337
|
export function t() {
|
|
@@ -1287,7 +1348,6 @@ const errEn = {
|
|
|
1287
1348
|
'agents-read': 'Failed to read AGENTS.md',
|
|
1288
1349
|
'agents-write': 'Failed to write AGENTS.md',
|
|
1289
1350
|
'config-save': 'Failed to save config',
|
|
1290
|
-
'settings-write': 'Failed to update setting.json',
|
|
1291
1351
|
'workspace-empty': 'Workspace not found or has no sessions',
|
|
1292
1352
|
'order-write': 'Failed to persist ordering',
|
|
1293
1353
|
'group-not-found': 'No group contains these sessions',
|
|
@@ -1301,10 +1361,10 @@ const errEn = {
|
|
|
1301
1361
|
'vision-read': 'Failed to read zcode-vision.json',
|
|
1302
1362
|
'vision-write': 'Failed to write zcode-vision.json',
|
|
1303
1363
|
'vision-test': 'Vision test failed',
|
|
1304
|
-
'proxy-invalid': '
|
|
1364
|
+
'proxy-invalid': 'The proxy must be a URL like http://127.0.0.1:7890, or be empty',
|
|
1305
1365
|
'proxy-not-set': 'Set the proxy address first',
|
|
1306
1366
|
'rtk-invalid': 'Invalid rtk config',
|
|
1307
|
-
'rtk-update': 'Failed to check rtk updates (GitHub Releases unreachable? Set a proxy in the Proxy tab)',
|
|
1367
|
+
'rtk-update': 'Failed to check for rtk updates (GitHub Releases unreachable? Set a proxy in the Proxy tab)',
|
|
1308
1368
|
'rtk-write': 'Failed to write the rtk config',
|
|
1309
1369
|
'headroom-read': 'Failed to read headroom.json',
|
|
1310
1370
|
'headroom-write': 'Failed to write headroom.json',
|
|
@@ -1313,7 +1373,8 @@ const errEn = {
|
|
|
1313
1373
|
'headroom-sh': 'sh not found; cannot run the headroom plugin script',
|
|
1314
1374
|
'headroom-action': 'The headroom action failed',
|
|
1315
1375
|
'headroom-status': 'Failed to read the headroom status',
|
|
1316
|
-
'headroom-
|
|
1376
|
+
'headroom-update': 'headroom update failed',
|
|
1377
|
+
'ZCODE_NOT_FOUND': 'ZCode executable not found',
|
|
1317
1378
|
'plugins-status': 'Failed to read the plugin list',
|
|
1318
1379
|
'plugins-update': 'Failed to update plugins',
|
|
1319
1380
|
'sync-invalid': 'Invalid sync settings',
|
|
@@ -1324,6 +1385,34 @@ const errEn = {
|
|
|
1324
1385
|
'sync-run': 'Sync failed',
|
|
1325
1386
|
'sync-file-invalid': 'Invalid backup file name',
|
|
1326
1387
|
'sync-export': 'Failed to save the backup to disk',
|
|
1388
|
+
// 壁纸(bg-*)
|
|
1389
|
+
'bg-folder': 'Invalid or unreadable wallpaper folder path',
|
|
1390
|
+
'bg-name': 'Invalid file name (must end with a supported extension and include no path separators)',
|
|
1391
|
+
'bg-data': 'Image data must be a data:image/*;base64 URL (upload videos via /bg/upload)',
|
|
1392
|
+
'bg-size': 'The file is too large',
|
|
1393
|
+
'bg-count': 'The wallpaper library is full; delete some files first',
|
|
1394
|
+
'bg-magic': 'The file content does not match its extension',
|
|
1395
|
+
'bg-write': 'Failed to write the wallpaper file',
|
|
1396
|
+
'bg-delete': 'Failed to delete the wallpaper file',
|
|
1397
|
+
// 视频转码
|
|
1398
|
+
'transcode-src': 'Invalid source video for transcoding',
|
|
1399
|
+
'transcode-fps': 'Unsupported frame-rate cap',
|
|
1400
|
+
'transcode-busy': 'The transcode queue is full; retry later',
|
|
1401
|
+
'no-ffmpeg': 'ffmpeg not found; the frame-rate cap is unavailable',
|
|
1402
|
+
// 配置/文件读写
|
|
1403
|
+
'config-unreadable': 'zcodepro.json is unreadable or corrupted; fix the config file first',
|
|
1404
|
+
'zcode-config-unreadable': 'The ZCode config is unparseable; write aborted',
|
|
1405
|
+
'read-error': 'Failed to read the file',
|
|
1406
|
+
'cli-not-found': 'ZCode CLI not found (resources/glm/zcode.cjs)',
|
|
1407
|
+
// 重定位(relocate)
|
|
1408
|
+
'new-not-found': 'The target folder does not exist',
|
|
1409
|
+
'protected-path': 'Refused: the path points inside the ZCode data directory',
|
|
1410
|
+
'same-path': 'The new location is the same as the current one',
|
|
1411
|
+
'export-cancelled': 'Canceled',
|
|
1412
|
+
// 其他
|
|
1413
|
+
'no-content': 'This session has no Q&A content yet',
|
|
1414
|
+
'title-gen-disabled': 'Auto rename is not enabled',
|
|
1415
|
+
'headroom-provider-config': 'ZCode provider config not found (v2/config.json)',
|
|
1327
1416
|
};
|
|
1328
1417
|
|
|
1329
1418
|
export function errText(res) {
|