@hncode/hncode 0.8.6 → 1.0.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.
- package/README.md +30 -0
- package/README_CN.md +27 -0
- package/package.json +1 -1
- package/src/agent.js +172 -43
- package/src/bootstrap.js +63 -56
- package/src/ci.js +247 -247
- package/src/colors.js +5 -1
- package/src/commands.js +121 -0
- package/src/composer.js +31 -1
- package/src/config.js +177 -45
- package/src/context.js +29 -0
- package/src/files.js +32 -0
- package/src/fx.js +19 -2
- package/src/i18n.js +180 -131
- package/src/index.js +558 -77
- package/src/permission-gate.js +103 -0
- package/src/plugin.js +221 -2
- package/src/prompt-presets.js +36 -0
- package/src/protocol.js +184 -0
- package/src/registry-browser.js +14 -3
- package/src/remote.js +117 -5
- package/src/schedule.js +148 -11
- package/src/serve.js +613 -0
- package/src/session-client.js +148 -0
- package/src/session-host.js +52 -0
- package/src/session.js +26 -3
- package/src/settings-schema.js +2 -2
- package/src/status-line.js +48 -0
- package/src/toml.js +18 -4
- package/src/tool-status.js +45 -0
- package/src/tools/bash.js +43 -24
- package/src/tools/edit.js +10 -5
- package/src/tools/web-search.js +8 -5
- package/src/tools/write.js +28 -3
- package/src/tui.js +448 -1380
- package/src/ws.js +248 -0
- package/src/session-hub.js +0 -445
- package/src/web-auth.js +0 -98
- package/src/web-daemon-cli.js +0 -63
- package/src/web-daemon-client.js +0 -203
- package/src/web-daemon.js +0 -894
- package/src/web-live.js +0 -250
- package/src/web-public/app.css +0 -1524
- package/src/web-public/app.js +0 -2969
- package/src/web-public/complete.js +0 -154
- package/src/web-public/fonts/JetBrainsMono-Bold.woff2 +0 -0
- package/src/web-public/fonts/JetBrainsMono-Regular.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-100-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-101-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-102-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-103-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-104-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-105-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-106-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-107-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-108-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-109-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-110-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-111-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-112-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-113-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-114-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-115-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-116-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-117-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-118-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-119-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-21-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-22-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-23-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-24-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-25-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-26-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-27-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-28-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-29-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-30-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-31-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-32-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-33-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-34-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-35-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-36-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-37-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-38-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-39-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-4-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-40-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-41-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-42-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-43-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-44-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-45-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-46-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-47-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-48-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-49-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-5-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-50-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-51-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-52-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-53-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-54-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-55-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-56-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-57-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-58-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-59-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-6-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-60-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-61-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-62-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-63-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-64-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-65-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-66-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-67-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-68-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-69-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-70-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-71-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-72-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-73-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-74-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-75-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-76-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-77-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-78-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-79-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-80-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-81-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-82-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-83-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-84-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-85-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-86-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-87-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-88-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-89-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-90-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-91-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-97-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-98-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc-99-400-normal.woff2 +0 -0
- package/src/web-public/fonts/noto-sans-sc.css +0 -775
- package/src/web-public/fonts.css +0 -31
- package/src/web-public/home.css +0 -222
- package/src/web-public/home.html +0 -33
- package/src/web-public/home.js +0 -160
- package/src/web-public/i18n.js +0 -983
- package/src/web-public/index.html +0 -196
- package/src/web-public/login.css +0 -123
- package/src/web-public/login.html +0 -25
- package/src/web-public/login.js +0 -46
- package/src/web-public/settings.js +0 -290
- package/src/web-ws.js +0 -226
- package/src/web.js +0 -430
package/src/i18n.js
CHANGED
|
@@ -561,7 +561,7 @@ export const MESSAGES = {
|
|
|
561
561
|
// States the user watches for, rather than descriptions of a feature.
|
|
562
562
|
'tui.state.thinking': { zh: '思考中', en: 'thinking' },
|
|
563
563
|
'tui.state.working': { zh: '处理中', en: 'working' },
|
|
564
|
-
'tui.state.restoring': { zh: '正在恢复 {n} 条消息…', en: 'Restoring {n} messages…' },
|
|
564
|
+
'tui.state.restoring': { zh: '正在恢复 {n} 条消息…', en: 'Restoring {n} messages…' },
|
|
565
565
|
'tui.state.interrupted': { zh: '已中断', en: 'interrupted' },
|
|
566
566
|
'tui.state.stopped': { zh: '已停止', en: 'stopped' },
|
|
567
567
|
'tui.state.done': { zh: '完成', en: 'done' },
|
|
@@ -666,6 +666,7 @@ export const MESSAGES = {
|
|
|
666
666
|
'cmd.stash': { zh: '暂存改动:list / push / pop' },
|
|
667
667
|
'cmd.rebase': { zh: '把当前分支变基到另一个分支(会先问)' },
|
|
668
668
|
'cmd.cache': { zh: '开关长稳定前缀的提示缓存(省输入 token)' },
|
|
669
|
+
'cmd.time': { zh: '开关把当前时间注入提示词(默认开,关掉可避免暴露时区)' },
|
|
669
670
|
'cmd.logout': { zh: '退出已配置的服务商登录' },
|
|
670
671
|
'cmd.feedback': { zh: '打开预填好的 GitHub issue(标题 + 正文)' },
|
|
671
672
|
'cmd.update': { zh: '检查并安装新版本' },
|
|
@@ -679,14 +680,17 @@ export const MESSAGES = {
|
|
|
679
680
|
"… {n} more line not shown; ctrl+o collapses, ctrl+e shows all of it": "… {n} 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
680
681
|
"… {n} more lines not shown; ctrl+o collapses, ctrl+e shows all of it": "… {n} 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
681
682
|
"… +{n} more (done: {n}) · ctrl+t to expand · drag the top rule to resize": "… 还有 {n} 条(已完成 {n})· ctrl+t 展开 · 拖动顶部横线调整大小",
|
|
682
|
-
'plan.summary': { zh: "步骤:{steps} 行数:{lines} 涉及文件:{files}", en: "Steps: {steps} Lines: {lines} Files mentioned: {files}" },
|
|
683
|
-
'plan.andMore': { zh: "… 另有 {n} 个", en: "… and {n} more" },
|
|
684
|
-
'keybindings.header': { zh: "快捷键({n})— {file}", en: "Keybindings ({n}) — {file}" },
|
|
685
|
-
// ---- the status row tallies ----
|
|
686
|
-
'status.turns': { zh: "{n} 轮", en: "{n} turns" },
|
|
687
|
-
'status.turnsOne': { zh: "{n} 轮", en: "{n} turn" },
|
|
688
|
-
'status.steps': { zh: "{n} 步", en: "{n} steps" },
|
|
689
|
-
'status.stepsOne': { zh: "{n} 步", en: "{n} step" },
|
|
683
|
+
'plan.summary': { zh: "步骤:{steps} 行数:{lines} 涉及文件:{files}", en: "Steps: {steps} Lines: {lines} Files mentioned: {files}" },
|
|
684
|
+
'plan.andMore': { zh: "… 另有 {n} 个", en: "… and {n} more" },
|
|
685
|
+
'keybindings.header': { zh: "快捷键({n})— {file}", en: "Keybindings ({n}) — {file}" },
|
|
686
|
+
// ---- the status row tallies ----
|
|
687
|
+
'status.turns': { zh: "{n} 轮", en: "{n} turns" },
|
|
688
|
+
'status.turnsOne': { zh: "{n} 轮", en: "{n} turn" },
|
|
689
|
+
'status.steps': { zh: "{n} 步", en: "{n} steps" },
|
|
690
|
+
'status.stepsOne': { zh: "{n} 步", en: "{n} step" },
|
|
691
|
+
// The spend, as the status row labels it. It lived only in the notice table, which `t()` does
|
|
692
|
+
// not read, so the row printed the English word under a Chinese interface.
|
|
693
|
+
cost: { zh: "花费", en: "cost" },
|
|
690
694
|
};
|
|
691
695
|
|
|
692
696
|
|
|
@@ -706,6 +710,50 @@ export function t(lang, key, vars) {
|
|
|
706
710
|
return s;
|
|
707
711
|
}
|
|
708
712
|
|
|
713
|
+
// ---- what a plugin added ----
|
|
714
|
+
//
|
|
715
|
+
// The entries a plugin registered, so unloading can take exactly those away. Kept apart from
|
|
716
|
+
// MESSAGES rather than merged with a marker, because a plugin may legitimately register a key
|
|
717
|
+
// that shadows nothing today and must not be left behind when it is disabled.
|
|
718
|
+
const pluginEntries = new Map(); // key -> Set of owner ids
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Add translations for a plugin's own keys.
|
|
722
|
+
*
|
|
723
|
+
* A plugin's copy has to travel with the plugin: its command descriptions, its panel titles and
|
|
724
|
+
* its notices are written by the plugin, so hncode cannot translate them. This is where they go,
|
|
725
|
+
* and the table is the SAME one both front ends read — a key registered here is translated in the
|
|
726
|
+
* terminal and in the window without the plugin knowing which one is running.
|
|
727
|
+
*
|
|
728
|
+
* @param {string} owner - an id that identifies the plugin, used to undo the registration.
|
|
729
|
+
* @param {object} table - `{ 'my.key': { zh: '…', en: '…' } }`, the shape MESSAGES uses.
|
|
730
|
+
* @returns {() => void} an unregister function.
|
|
731
|
+
*/
|
|
732
|
+
export function registerPluginMessages(owner, table) {
|
|
733
|
+
const id = String(owner || 'plugin');
|
|
734
|
+
const keys = [];
|
|
735
|
+
for (const [key, entry] of Object.entries(table || {})) {
|
|
736
|
+
if (!entry || typeof entry !== 'object') continue;
|
|
737
|
+
MESSAGES[key] = entry;
|
|
738
|
+
if (!pluginEntries.has(key)) pluginEntries.set(key, new Set());
|
|
739
|
+
pluginEntries.get(key).add(id);
|
|
740
|
+
keys.push(key);
|
|
741
|
+
}
|
|
742
|
+
return () => {
|
|
743
|
+
for (const key of keys) {
|
|
744
|
+
const owners = pluginEntries.get(key);
|
|
745
|
+
if (!owners) continue;
|
|
746
|
+
owners.delete(id);
|
|
747
|
+
// A key another plugin still claims stays: two plugins may share a prefix, and dropping it
|
|
748
|
+
// because one unloaded would blank the other's text.
|
|
749
|
+
if (!owners.size) { pluginEntries.delete(key); delete MESSAGES[key]; }
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/** Every key a plugin registered, for /plugins and for tests. */
|
|
755
|
+
export function pluginMessageKeys() { return [...pluginEntries.keys()]; }
|
|
756
|
+
|
|
709
757
|
/**
|
|
710
758
|
* Look up a string that may be TRANSLATED-OR-NOT, returning `fallback` when there is no
|
|
711
759
|
* entry for this language.
|
|
@@ -738,6 +786,7 @@ export function tOr(lang, key, fallback) {
|
|
|
738
786
|
// This is a MAP, not a table of entries: there is nothing to fall back to, because the
|
|
739
787
|
// English is already the key.
|
|
740
788
|
export const NOTICE_ZH = {
|
|
789
|
+
"Create a file, or REPLACE a whole one.\n\nOVERWRITE IS DESTRUCTIVE: every byte in the target is replaced by `content`. Before calling\nthis with the default mode on a file that already exists:\n 1. Read it first. Never write over a file you have not read this turn.\n 2. Prefer Edit for changing part of a file. Edit leaves the rest alone and its diff is\n reviewable; Write replaces the whole thing, which is how a file loses the parts nobody\n asked about.\n 3. Stay inside the workspace. Do not write to config, credential, lock or history files\n unless the user asked for exactly that file.\n\nWriting over an existing file from memory is the usual way this tool destroys work: the\nmodel is sure of the contents from earlier in the turn, the file has moved on, and the\nwrite says nothing about it.\n\nmode: overwrite (default) | append.": "创建文件,或整体替换一个文件。\n\n覆盖是破坏性的:目标文件的每一个字节都会被 content 替换。对一个已存在的文件使用默认模式之前:\n 1. 先读它。这一轮没读过的文件,不要写。\n 2. 改文件的一部分时优先用 Edit。Edit 只动该动的部分,diff 也能看;Write 是整个替换,文件就是这样丢掉没人提到的内容的。\n 3. 待在工作区内。不要在没被明确要求的情况下去写配置、凭据、锁或历史文件。\n\n凭记忆覆盖一个已存在的文件,是这个工具毁掉工作最常见的方式:模型以为内容还是这一轮早些时候的样子,文件已经变了,而写入什么都没说。\n\nmode: overwrite(默认)| append。",
|
|
741
790
|
'Loading provider list…': '正在加载服务商列表…',
|
|
742
791
|
'No known providers found in catalog.': '目录里找不到已知的服务商',
|
|
743
792
|
'That is the session you are in. Use /new first, or pick another one.': '这就是你当前所在的会话。先用 /new 开一个,再选别的',
|
|
@@ -766,13 +815,13 @@ export const NOTICE_ZH = {
|
|
|
766
815
|
'Nothing to steer into (the agent is idle)': '没有正在进行的回合可以注入(agent 空闲)',
|
|
767
816
|
'Nothing queued to steer': '排队里没有内容可以注入',
|
|
768
817
|
'Interrupted': '已中断',
|
|
818
|
+
'cost': '花费',
|
|
769
819
|
'Pick at least one option with Space, or type an answer under Other.': '至少用空格选中一个选项,或在 Other 下自己输入答案',
|
|
770
820
|
'No provider selected — use /model to pick one.': '没有选择服务商,用 /model 选一个',
|
|
771
821
|
'Nothing to select': '没有可选中的内容',
|
|
772
822
|
'Nothing selected to cut': '没有选中可剪切的内容',
|
|
773
823
|
'Nothing to copy — select text first (or use the right-click menu)': '没有可复制的内容,先选中文字(或用右键菜单)',
|
|
774
824
|
'Nothing is waiting for input — no command is running in the foreground': '没有在等待输入,前台没有正在运行的命令',
|
|
775
|
-
'Use `@name message` to send straight to a member.': '用 `@名字 消息` 直接发给某个成员',
|
|
776
825
|
'No team. Create one: /team create <name>': '还没有团队。用 /team create <名字> 创建一个',
|
|
777
826
|
'That command has finished — input goes to the model again': '该命令已结束,输入重新交给模型',
|
|
778
827
|
'Add members with /team add <name>; it asks which model each should run.': '用 /team add <名字> 添加成员,会询问每个人用哪个模型',
|
|
@@ -1291,127 +1340,127 @@ export const NOTICE_ZH = {
|
|
|
1291
1340
|
"setting.hint.lang": { zh: "终端界面使用的语言。模型读到的仍然是英文" },
|
|
1292
1341
|
"setting.label.thinking_tags": { zh: "行内推理标签" },
|
|
1293
1342
|
"setting.hint.thinking_tags": { zh: "要求模型把推理包在 <|thinking|> 标签里。auto 表示只对没有独立推理通道的模型生效" },
|
|
1294
|
-
// ---- user-visible notices and panel labels ----
|
|
1295
|
-
"Activated skill: ": "已激活技能:",
|
|
1296
|
-
"Clipboard unavailable: ": "剪贴板不可用:",
|
|
1297
|
-
"Config problems:": "配置问题:",
|
|
1298
|
-
"Could not clear ": "无法清除 ",
|
|
1299
|
-
"Could not read ": "无法读取 ",
|
|
1300
|
-
"Could not write ": "无法写入 ",
|
|
1301
|
-
"Could not write config.toml: ": "无法写入 config.toml:",
|
|
1302
|
-
"Could not write: ": "无法写入:",
|
|
1303
|
-
"Discovered tools:": "发现的工具:",
|
|
1304
|
-
"Files touched": "改动过的文件",
|
|
1305
|
-
"Interface language: English": "界面语言:English",
|
|
1306
|
-
"No commits yet.": "还没有提交。",
|
|
1307
|
-
"No Markdown files found in ": "没有找到 Markdown 文件:",
|
|
1308
|
-
"No pricing for this model.": "这个模型没有价格信息。",
|
|
1309
|
-
"No saved plans yet. Approve a plan in Plan mode to save it.": "还没有保存的计划。在计划模式下批准一个计划即可保存。",
|
|
1310
|
-
"No staged changes.": "没有已暂存的改动。",
|
|
1311
|
-
"No subagent is running.": "没有正在运行的子 agent。",
|
|
1312
|
-
"No uncommitted changes.": "没有未提交的改动。",
|
|
1313
|
-
"Not a file: ": "不是文件:",
|
|
1314
|
-
"ON (read-only planning)": "开(只读规划)",
|
|
1315
|
-
"ON (Read/Write/Edit/Bash only)": "开(只有 Read/Write/Edit/Bash)",
|
|
1316
|
-
"Pasted image": "已粘贴图片",
|
|
1317
|
-
"Rebase complete.": "rebase 完成。",
|
|
1318
|
-
"Save failed: ": "保存失败:",
|
|
1319
|
-
"Search: ": "搜索:",
|
|
1320
|
-
"Skill imported": "技能已导入",
|
|
1321
|
-
"Skill overwritten": "技能已覆盖",
|
|
1322
|
-
"Stash popped.": "已 pop stash。",
|
|
1323
|
-
"Summary: ": "摘要:",
|
|
1324
|
-
"Switch back with /cost usd.": "用 /cost usd 切回去。",
|
|
1325
|
-
"That Markdown file is empty: ": "那个 Markdown 文件是空的:",
|
|
1326
|
-
"The agent is waiting for permission to run ": "agent 正在等待运行许可:",
|
|
1327
|
-
"Tools used": "用到的工具",
|
|
1328
|
-
"Update check failed: ": "更新检查失败:",
|
|
1329
|
-
"Update check: ": "更新检查:",
|
|
1330
|
-
"Web UI is not running.": "Web UI 没有运行。",
|
|
1331
|
-
"Web UI stopped (this session is no longer listed).": "Web UI 已停止(本会话已不在列表里)。",
|
|
1332
|
-
"OFF": "关",
|
|
1333
|
-
"OFF (all tools)": "关(全部工具)",
|
|
1334
|
-
"Interface language: 中文": "界面语言:中文",
|
|
1335
|
-
"Ctrl+G: send a line to this command": "Ctrl+G:给这个命令发送一行输入",
|
|
1336
|
-
// ---- the /doctor report and the plan review panel ----
|
|
1337
|
-
"Restart, or check the server command.": "重启,或检查服务端命令",
|
|
1338
|
-
"Fix the command/URL in /mcp-config.": "在 /mcp-config 里修正命令/URL",
|
|
1339
|
-
"No problems found.": "没有发现问题",
|
|
1340
|
-
"Run /doctor --all to include the passing checks.": "运行 /doctor --all 以包含通过的检查",
|
|
1341
|
-
"Run /model.": "运行 /model",
|
|
1342
|
-
"Files this plan will touch:": "这个计划会改动的文件:",
|
|
1343
|
-
"No specific files named in the plan.": "计划里没有点名具体文件",
|
|
1344
|
-
"Steps: ": "步骤:",
|
|
1345
|
-
"Lines: ": "行数:",
|
|
1346
|
-
"Files mentioned: ": "涉及文件:",
|
|
1347
|
-
"Enter = approve & execute e = edit the plan Esc = keep planning": "Enter = 批准并执行 e = 编辑计划 Esc = 继续规划",
|
|
1348
|
-
"… and ": "… 另有 ",
|
|
1349
|
-
" more": " 个",
|
|
1350
|
-
"Press Ctrl+B to run in background": "按 Ctrl+B 转到后台运行",
|
|
1351
|
-
"Categories: ": "分类:",
|
|
1352
|
-
"Experiment": "实验",
|
|
1353
|
-
"ON": "开",
|
|
1354
|
-
// ---- multi-line command panels ----
|
|
1355
|
-
"Auto-trim OFF — tool results are sent in full (use /trim to elide them once)": "自动裁剪已关 — 工具结果完整发送(用 /trim 手动裁剪一次)",
|
|
1356
|
-
"No additional directories.": "没有额外目录",
|
|
1357
|
-
"Config reloaded.": "配置已重新加载",
|
|
1358
|
-
"Prompt caching disabled — every request sends the full prompt as fresh input.": "提示缓存已关 — 每次请求都把完整提示作为新输入发送",
|
|
1359
|
-
"Sampling parameters": "采样参数",
|
|
1360
|
-
"OpenAI-compatible only": "仅限 OpenAI 兼容接口",
|
|
1361
|
-
"No saved sessions.": "没有保存的会话",
|
|
1362
|
-
"Swarm mode ON - the model will decompose work across parallel subagents (AgentSwarm)": "Swarm 模式开 — 模型会把工作拆分给并行子 agent(AgentSwarm)",
|
|
1363
|
-
"Auto title: ON — the first message names the session.": "自动标题开 — 用第一条消息给会话命名",
|
|
1364
|
-
"PTC mode: ON — the model gets only the PTC tool and reaches everything else through its sandbox.": "PTC 模式开 — 模型只有 PTC 一个工具,其余全通过它的沙箱访问",
|
|
1365
|
-
"External paths: ON — tools may read and write outside the workspace.": "外部路径开 — 工具可以读写工作区之外",
|
|
1366
|
-
"Access token (paste it into the login page):": "访问令牌(粘贴到登录页):",
|
|
1367
|
-
"Anyone with this token can run commands as you. Stop this session with": "拿到这个令牌的人可以以你的身份运行命令。停止本会话用",
|
|
1368
|
-
"Raw mode: ON — replies shown exactly as the model sent them.": "原始模式开 — 按模型发来的原样显示回复",
|
|
1369
|
-
"Reduced motion: ON — animation is replaced by a slow-breathing dot.": "减弱动效开 — 动画换成缓慢呼吸的点",
|
|
1370
|
-
"Auto-update ON — checks npm at startup and every 30 min, installs in the background": "自动更新开 — 启动时检查 npm,之后每 30 分钟一次,后台安装",
|
|
1371
|
-
"What travels: the conversation, with paths rewritten.": "会带走的:整个对话,路径已重写",
|
|
1372
|
-
"What does not: background jobs, token totals, and session approvals —": "不会带走的:后台任务、token 统计、会话内的批准记录 —",
|
|
1373
|
-
"Move it with scp/ssh, then on the other side:": "用 scp/ssh 传过去,然后在另一边:",
|
|
1374
|
-
"The machine-wide daemon is unavailable, so this session is served": "全局守护进程不可用,因此本会话直接由",
|
|
1375
|
-
"The root page lists every workspace and session — running ones live,": "首页列出所有工作区和会话 — 运行中的会实时更新,",
|
|
1376
|
-
"read-only tools and read-only shell commands run automatically; everything else asks": "只读工具和只读 shell 命令自动运行,其他一律先问",
|
|
1377
|
-
"never asks and never waits for approval: everything runs and is decided automatically (an explicit deny or ask rule still wins)": "从不询问也不等待批准:全部自动运行并自行决定(显式的 deny 或 ask 规则仍然优先)",
|
|
1378
|
-
"Nothing to background — no command is running in the foreground": "没有可转后台的 — 前台没有正在运行的命令",
|
|
1379
|
-
"Nothing to background — the agent is idle": "没有可转后台的 — agent 空闲",
|
|
1380
|
-
"Input goes to the running command (Ctrl+G to stop)": "输入会发给正在运行的命令(Ctrl+G 停止)",
|
|
1381
|
-
"Input goes back to the model": "输入回到模型",
|
|
1382
|
-
"Staged changes": "已暂存的改动",
|
|
1383
|
-
"Uncommitted changes": "未提交的改动",
|
|
1384
|
-
"Calm mode": "Calm 模式",
|
|
1385
|
-
"ON — the model will keep explanations to a minimum": "开 — 模型会尽量少解释",
|
|
1386
|
-
"Yes, for this session": "是,仅本会话",
|
|
1387
|
-
"Yes, and remember this directory": "是,并记住这个目录",
|
|
1388
|
-
"No": "否",
|
|
1389
|
-
"Add directory to workspace": "把目录加入工作区",
|
|
1390
|
-
"Directory does not exist": "目录不存在",
|
|
1391
|
-
"Saved": "已保存",
|
|
1392
|
-
"key": "个密钥",
|
|
1393
|
-
"The next search uses them.": "下次搜索就会用它们",
|
|
1394
|
-
"Nothing is set away from its default.": "没有任何项被改成非默认值",
|
|
1395
|
-
"Browse everything with /settings,": "用 /settings 浏览全部,",
|
|
1396
|
-
"or set one directly: /set <key> <value>": "或直接设置:/set <key> <value>",
|
|
1397
|
-
"WebSearch keys cleared — searches use keyless mode (rate-limited per IP).": "WebSearch 密钥已清除 — 搜索改用无密钥模式(按 IP 限流)",
|
|
1398
|
-
"cost": "费用",
|
|
1399
|
-
"No keybindings set.": "没有设置快捷键",
|
|
1400
|
-
"File": "文件",
|
|
1401
|
-
"Add one with /keybindings add <key> <key|/command>": "用 /keybindings add <键> <键|/命令> 添加一条",
|
|
1402
|
-
"Problems": "问题",
|
|
1403
|
-
"Prompt caching": "提示缓存",
|
|
1404
|
-
"The stable prefix (tools + system + conversation head) is marked cacheable.": "稳定的前缀(工具 + 系统 + 对话开头)会被标记为可缓存。",
|
|
1405
|
-
"Providers bill cached input at a fraction of the normal rate. Effective for:": "服务商对缓存输入按正常价格的零头计费。适用于:",
|
|
1406
|
-
// ---- speech input ----
|
|
1407
|
-
"Listening… speak now": "正在听… 请说话",
|
|
1408
|
-
"Already listening…": "正在监听中…",
|
|
1409
|
-
"Inserted {n} characters": "已插入 {n} 个字符",
|
|
1410
|
-
"Speech input failed": "语音输入失败",
|
|
1411
|
-
// ---- speech input ----
|
|
1412
|
-
"Listening… release to insert": "正在听… 松开插入",
|
|
1413
|
-
"Speech input is unavailable": "语音输入不可用",
|
|
1414
|
-
"No speech engine was found.": "没有找到语音识别引擎",
|
|
1343
|
+
// ---- user-visible notices and panel labels ----
|
|
1344
|
+
"Activated skill: ": "已激活技能:",
|
|
1345
|
+
"Clipboard unavailable: ": "剪贴板不可用:",
|
|
1346
|
+
"Config problems:": "配置问题:",
|
|
1347
|
+
"Could not clear ": "无法清除 ",
|
|
1348
|
+
"Could not read ": "无法读取 ",
|
|
1349
|
+
"Could not write ": "无法写入 ",
|
|
1350
|
+
"Could not write config.toml: ": "无法写入 config.toml:",
|
|
1351
|
+
"Could not write: ": "无法写入:",
|
|
1352
|
+
"Discovered tools:": "发现的工具:",
|
|
1353
|
+
"Files touched": "改动过的文件",
|
|
1354
|
+
"Interface language: English": "界面语言:English",
|
|
1355
|
+
"No commits yet.": "还没有提交。",
|
|
1356
|
+
"No Markdown files found in ": "没有找到 Markdown 文件:",
|
|
1357
|
+
"No pricing for this model.": "这个模型没有价格信息。",
|
|
1358
|
+
"No saved plans yet. Approve a plan in Plan mode to save it.": "还没有保存的计划。在计划模式下批准一个计划即可保存。",
|
|
1359
|
+
"No staged changes.": "没有已暂存的改动。",
|
|
1360
|
+
"No subagent is running.": "没有正在运行的子 agent。",
|
|
1361
|
+
"No uncommitted changes.": "没有未提交的改动。",
|
|
1362
|
+
"Not a file: ": "不是文件:",
|
|
1363
|
+
"ON (read-only planning)": "开(只读规划)",
|
|
1364
|
+
"ON (Read/Write/Edit/Bash only)": "开(只有 Read/Write/Edit/Bash)",
|
|
1365
|
+
"Pasted image": "已粘贴图片",
|
|
1366
|
+
"Rebase complete.": "rebase 完成。",
|
|
1367
|
+
"Save failed: ": "保存失败:",
|
|
1368
|
+
"Search: ": "搜索:",
|
|
1369
|
+
"Skill imported": "技能已导入",
|
|
1370
|
+
"Skill overwritten": "技能已覆盖",
|
|
1371
|
+
"Stash popped.": "已 pop stash。",
|
|
1372
|
+
"Summary: ": "摘要:",
|
|
1373
|
+
"Switch back with /cost usd.": "用 /cost usd 切回去。",
|
|
1374
|
+
"That Markdown file is empty: ": "那个 Markdown 文件是空的:",
|
|
1375
|
+
"The agent is waiting for permission to run ": "agent 正在等待运行许可:",
|
|
1376
|
+
"Tools used": "用到的工具",
|
|
1377
|
+
"Update check failed: ": "更新检查失败:",
|
|
1378
|
+
"Update check: ": "更新检查:",
|
|
1379
|
+
"Web UI is not running.": "Web UI 没有运行。",
|
|
1380
|
+
"Web UI stopped (this session is no longer listed).": "Web UI 已停止(本会话已不在列表里)。",
|
|
1381
|
+
"OFF": "关",
|
|
1382
|
+
"OFF (all tools)": "关(全部工具)",
|
|
1383
|
+
"Interface language: 中文": "界面语言:中文",
|
|
1384
|
+
"Ctrl+G: send a line to this command": "Ctrl+G:给这个命令发送一行输入",
|
|
1385
|
+
// ---- the /doctor report and the plan review panel ----
|
|
1386
|
+
"Restart, or check the server command.": "重启,或检查服务端命令",
|
|
1387
|
+
"Fix the command/URL in /mcp-config.": "在 /mcp-config 里修正命令/URL",
|
|
1388
|
+
"No problems found.": "没有发现问题",
|
|
1389
|
+
"Run /doctor --all to include the passing checks.": "运行 /doctor --all 以包含通过的检查",
|
|
1390
|
+
"Run /model.": "运行 /model",
|
|
1391
|
+
"Files this plan will touch:": "这个计划会改动的文件:",
|
|
1392
|
+
"No specific files named in the plan.": "计划里没有点名具体文件",
|
|
1393
|
+
"Steps: ": "步骤:",
|
|
1394
|
+
"Lines: ": "行数:",
|
|
1395
|
+
"Files mentioned: ": "涉及文件:",
|
|
1396
|
+
"Enter = approve & execute e = edit the plan Esc = keep planning": "Enter = 批准并执行 e = 编辑计划 Esc = 继续规划",
|
|
1397
|
+
"… and ": "… 另有 ",
|
|
1398
|
+
" more": " 个",
|
|
1399
|
+
"Press Ctrl+B to run in background": "按 Ctrl+B 转到后台运行",
|
|
1400
|
+
"Categories: ": "分类:",
|
|
1401
|
+
"Experiment": "实验",
|
|
1402
|
+
"ON": "开",
|
|
1403
|
+
// ---- multi-line command panels ----
|
|
1404
|
+
"Auto-trim OFF — tool results are sent in full (use /trim to elide them once)": "自动裁剪已关 — 工具结果完整发送(用 /trim 手动裁剪一次)",
|
|
1405
|
+
"No additional directories.": "没有额外目录",
|
|
1406
|
+
"Config reloaded.": "配置已重新加载",
|
|
1407
|
+
"Prompt caching disabled — every request sends the full prompt as fresh input.": "提示缓存已关 — 每次请求都把完整提示作为新输入发送",
|
|
1408
|
+
"Sampling parameters": "采样参数",
|
|
1409
|
+
"OpenAI-compatible only": "仅限 OpenAI 兼容接口",
|
|
1410
|
+
"No saved sessions.": "没有保存的会话",
|
|
1411
|
+
"Swarm mode ON - the model will decompose work across parallel subagents (AgentSwarm)": "Swarm 模式开 — 模型会把工作拆分给并行子 agent(AgentSwarm)",
|
|
1412
|
+
"Auto title: ON — the first message names the session.": "自动标题开 — 用第一条消息给会话命名",
|
|
1413
|
+
"PTC mode: ON — the model gets only the PTC tool and reaches everything else through its sandbox.": "PTC 模式开 — 模型只有 PTC 一个工具,其余全通过它的沙箱访问",
|
|
1414
|
+
"External paths: ON — tools may read and write outside the workspace.": "外部路径开 — 工具可以读写工作区之外",
|
|
1415
|
+
"Access token (paste it into the login page):": "访问令牌(粘贴到登录页):",
|
|
1416
|
+
"Anyone with this token can run commands as you. Stop this session with": "拿到这个令牌的人可以以你的身份运行命令。停止本会话用",
|
|
1417
|
+
"Raw mode: ON — replies shown exactly as the model sent them.": "原始模式开 — 按模型发来的原样显示回复",
|
|
1418
|
+
"Reduced motion: ON — animation is replaced by a slow-breathing dot.": "减弱动效开 — 动画换成缓慢呼吸的点",
|
|
1419
|
+
"Auto-update ON — checks npm at startup and every 30 min, installs in the background": "自动更新开 — 启动时检查 npm,之后每 30 分钟一次,后台安装",
|
|
1420
|
+
"What travels: the conversation, with paths rewritten.": "会带走的:整个对话,路径已重写",
|
|
1421
|
+
"What does not: background jobs, token totals, and session approvals —": "不会带走的:后台任务、token 统计、会话内的批准记录 —",
|
|
1422
|
+
"Move it with scp/ssh, then on the other side:": "用 scp/ssh 传过去,然后在另一边:",
|
|
1423
|
+
"The machine-wide daemon is unavailable, so this session is served": "全局守护进程不可用,因此本会话直接由",
|
|
1424
|
+
"The root page lists every workspace and session — running ones live,": "首页列出所有工作区和会话 — 运行中的会实时更新,",
|
|
1425
|
+
"read-only tools and read-only shell commands run automatically; everything else asks": "只读工具和只读 shell 命令自动运行,其他一律先问",
|
|
1426
|
+
"never asks and never waits for approval: everything runs and is decided automatically (an explicit deny or ask rule still wins)": "从不询问也不等待批准:全部自动运行并自行决定(显式的 deny 或 ask 规则仍然优先)",
|
|
1427
|
+
"Nothing to background — no command is running in the foreground": "没有可转后台的 — 前台没有正在运行的命令",
|
|
1428
|
+
"Nothing to background — the agent is idle": "没有可转后台的 — agent 空闲",
|
|
1429
|
+
"Input goes to the running command (Ctrl+G to stop)": "输入会发给正在运行的命令(Ctrl+G 停止)",
|
|
1430
|
+
"Input goes back to the model": "输入回到模型",
|
|
1431
|
+
"Staged changes": "已暂存的改动",
|
|
1432
|
+
"Uncommitted changes": "未提交的改动",
|
|
1433
|
+
"Calm mode": "Calm 模式",
|
|
1434
|
+
"ON — the model will keep explanations to a minimum": "开 — 模型会尽量少解释",
|
|
1435
|
+
"Yes, for this session": "是,仅本会话",
|
|
1436
|
+
"Yes, and remember this directory": "是,并记住这个目录",
|
|
1437
|
+
"No": "否",
|
|
1438
|
+
"Add directory to workspace": "把目录加入工作区",
|
|
1439
|
+
"Directory does not exist": "目录不存在",
|
|
1440
|
+
"Saved": "已保存",
|
|
1441
|
+
"key": "个密钥",
|
|
1442
|
+
"The next search uses them.": "下次搜索就会用它们",
|
|
1443
|
+
"Nothing is set away from its default.": "没有任何项被改成非默认值",
|
|
1444
|
+
"Browse everything with /settings,": "用 /settings 浏览全部,",
|
|
1445
|
+
"or set one directly: /set <key> <value>": "或直接设置:/set <key> <value>",
|
|
1446
|
+
"WebSearch keys cleared — searches use keyless mode (rate-limited per IP).": "WebSearch 密钥已清除 — 搜索改用无密钥模式(按 IP 限流)",
|
|
1447
|
+
"cost": "费用",
|
|
1448
|
+
"No keybindings set.": "没有设置快捷键",
|
|
1449
|
+
"File": "文件",
|
|
1450
|
+
"Add one with /keybindings add <key> <key|/command>": "用 /keybindings add <键> <键|/命令> 添加一条",
|
|
1451
|
+
"Problems": "问题",
|
|
1452
|
+
"Prompt caching": "提示缓存",
|
|
1453
|
+
"The stable prefix (tools + system + conversation head) is marked cacheable.": "稳定的前缀(工具 + 系统 + 对话开头)会被标记为可缓存。",
|
|
1454
|
+
"Providers bill cached input at a fraction of the normal rate. Effective for:": "服务商对缓存输入按正常价格的零头计费。适用于:",
|
|
1455
|
+
// ---- speech input ----
|
|
1456
|
+
"Listening… speak now": "正在听… 请说话",
|
|
1457
|
+
"Already listening…": "正在监听中…",
|
|
1458
|
+
"Inserted {n} characters": "已插入 {n} 个字符",
|
|
1459
|
+
"Speech input failed": "语音输入失败",
|
|
1460
|
+
// ---- speech input ----
|
|
1461
|
+
"Listening… release to insert": "正在听… 松开插入",
|
|
1462
|
+
"Speech input is unavailable": "语音输入不可用",
|
|
1463
|
+
"No speech engine was found.": "没有找到语音识别引擎",
|
|
1415
1464
|
};
|
|
1416
1465
|
|
|
1417
1466
|
// The UI's active language, shared with the render modules (rows, panels, file tree)
|