@xmanrui/dsh-im 1.4.0 → 2.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.
Files changed (82) hide show
  1. package/README.en.md +18 -6
  2. package/README.md +18 -6
  3. package/lib/index.js +206 -176
  4. package/package.json +1 -1
  5. package/plugin-src/host/index.mjs +2 -0
  6. package/src/channels/dingtalk/config-store.mjs +5 -3
  7. package/src/channels/dingtalk/dingtalk-api.mjs +105 -82
  8. package/src/channels/dingtalk/dingtalk-bridge.mjs +79 -110
  9. package/src/channels/dingtalk/dingtalk-card-stream.mjs +3 -1
  10. package/src/channels/dingtalk/dingtalk-controller.mjs +24 -23
  11. package/src/channels/dingtalk/dingtalk-runtime.mjs +4 -3
  12. package/src/channels/dingtalk/state-store.mjs +3 -1
  13. package/src/channels/discord/config-store.mjs +2 -1
  14. package/src/channels/discord/discord-api.mjs +25 -1
  15. package/src/channels/discord/discord-runtime.mjs +237 -11
  16. package/src/channels/feishu/bridge.mjs +169 -180
  17. package/src/channels/feishu/feishu-cards.mjs +62 -54
  18. package/src/channels/feishu/feishu-channel.mjs +57 -21
  19. package/src/channels/feishu/feishu-runtime.mjs +10 -9
  20. package/src/channels/feishu/message-utils.mjs +4 -3
  21. package/src/channels/office/office-job-executor.mjs +15 -14
  22. package/src/channels/office/office-runtime.mjs +6 -5
  23. package/src/channels/qq/config-store.mjs +3 -1
  24. package/src/channels/qq/markdown-reply.mjs +4 -2
  25. package/src/channels/qq/qq-bridge.mjs +149 -130
  26. package/src/channels/qq/qq-controller.mjs +17 -16
  27. package/src/channels/qq/qq-runtime.mjs +3 -2
  28. package/src/channels/shared/agent-preset.mjs +3 -1
  29. package/src/channels/shared/compact-command.mjs +15 -14
  30. package/src/channels/shared/connection-test.mjs +6 -4
  31. package/src/channels/shared/control-command.mjs +13 -11
  32. package/src/channels/shared/editable-message-stream.mjs +4 -2
  33. package/src/channels/shared/harness-approval.mjs +23 -21
  34. package/src/channels/shared/harness-client.mjs +3 -2
  35. package/src/channels/shared/harness-question.mjs +8 -6
  36. package/src/channels/shared/i18n-en/dingtalk.mjs +52 -0
  37. package/src/channels/shared/i18n-en/discord.mjs +8 -0
  38. package/src/channels/shared/i18n-en/feishu.mjs +217 -0
  39. package/src/channels/shared/i18n-en/office.mjs +23 -0
  40. package/src/channels/shared/i18n-en/qq.mjs +54 -0
  41. package/src/channels/shared/i18n-en/shared-a.mjs +91 -0
  42. package/src/channels/shared/i18n-en/shared-b.mjs +215 -0
  43. package/src/channels/shared/i18n-en/shared-c.mjs +99 -0
  44. package/src/channels/shared/i18n-en/slack.mjs +27 -0
  45. package/src/channels/shared/i18n-en/telegram.mjs +21 -0
  46. package/src/channels/shared/i18n-en/wecom.mjs +38 -0
  47. package/src/channels/shared/i18n-en/weixin.mjs +80 -0
  48. package/src/channels/shared/i18n-en/whatsapp.mjs +17 -0
  49. package/src/channels/shared/i18n-en.mjs +35 -0
  50. package/src/channels/shared/i18n.mjs +35 -0
  51. package/src/channels/shared/image-prompt.mjs +17 -15
  52. package/src/channels/shared/inbound-file.mjs +5 -3
  53. package/src/channels/shared/model-command.mjs +35 -31
  54. package/src/channels/shared/preset-command.mjs +41 -38
  55. package/src/channels/shared/semantic/artifact-delivery.mjs +170 -0
  56. package/src/channels/shared/semantic/artifact.mjs +2 -2
  57. package/src/channels/shared/semantic/delivery.mjs +40 -0
  58. package/src/channels/shared/text-harness-bridge.mjs +154 -136
  59. package/src/channels/shared/token-bot-controller.mjs +32 -11
  60. package/src/channels/shared/workspace-command.mjs +69 -58
  61. package/src/channels/slack/config-store.mjs +3 -1
  62. package/src/channels/slack/slack-api.mjs +6 -5
  63. package/src/channels/slack/slack-controller.mjs +10 -9
  64. package/src/channels/slack/slack-runtime.mjs +16 -4
  65. package/src/channels/telegram/config-store.mjs +2 -1
  66. package/src/channels/telegram/telegram-api.mjs +111 -19
  67. package/src/channels/telegram/telegram-rich-message.mjs +147 -0
  68. package/src/channels/telegram/telegram-runtime.mjs +383 -5
  69. package/src/channels/wecom/config-store.mjs +3 -1
  70. package/src/channels/wecom/wecom-bridge.mjs +154 -153
  71. package/src/channels/wecom/wecom-controller.mjs +20 -19
  72. package/src/channels/wecom/wecom-runtime.mjs +2 -1
  73. package/src/channels/weixin/config-store.mjs +2 -1
  74. package/src/channels/weixin/weixin-api.mjs +140 -107
  75. package/src/channels/weixin/weixin-bridge.mjs +86 -123
  76. package/src/channels/weixin/weixin-controller.mjs +22 -21
  77. package/src/channels/weixin/weixin-runtime.mjs +3 -2
  78. package/src/channels/whatsapp/config-store.mjs +3 -1
  79. package/src/channels/whatsapp/whatsapp-bridge.mjs +3 -1
  80. package/src/channels/whatsapp/whatsapp-controller.mjs +15 -14
  81. package/src/channels/whatsapp/whatsapp-runtime.mjs +47 -13
  82. package/src/channels/whatsapp/whatsapp-web-session.mjs +3 -1
@@ -0,0 +1,217 @@
1
+ // English translations (feishu area). Keys are exact Chinese literals passed to t().
2
+ export default {
3
+ // feishu/bridge.mjs — welcome / help
4
+ '北汇星河 AIOS 已连接 DeepSeek Harness。':
5
+ 'BeiHui XingHe AIOS is connected to DeepSeek Harness.',
6
+ '/repair 修复卡片按钮回调': '/repair Repair the card-button callback',
7
+ '/m(或 /menu) 打开交互卡片菜单': '/m (or /menu) Open the interactive card menu',
8
+ '/watch [Session ID 或序号] 关注会话,任务完成自动推送':
9
+ '/watch [Session ID or index] Watch a session; completion is pushed automatically',
10
+ '/unwatch [Session ID 或序号] 取消关注':
11
+ '/unwatch [Session ID or index] Stop watching',
12
+ '/watchlist 查看关注列表': '/watchlist View the watch list',
13
+ '/archived on|off 会话列表是否包含归档会话':
14
+ '/archived on|off Whether the session list includes archived sessions',
15
+ '工作区必须是绝对路径。': 'The workspace must be an absolute path.',
16
+ '工作区路径不存在。': 'The workspace path does not exist.',
17
+ '工作区路径必须指向一个目录。': 'The workspace path must point to a directory.',
18
+ '机器人正在移除或已重新接入,无法操作原会话的工作区。':
19
+ 'The bot is being removed or has been reconnected; the original session’s workspace cannot be changed.',
20
+ '操作失败,请稍后重试。': 'The operation failed. Please try again later.',
21
+ '结果文件「{name}」已生成,但机器人缺少飞书文件上传权限。请为应用添加 im:resource 并完成必要审批后重试。':
22
+ 'The result file "{name}" was generated, but the bot lacks Feishu file-upload permission. Add the im:resource scope to the app, complete the required approval, and try again.',
23
+ '结果文件「{name}」超过飞书 30 MB 上限,未发送。':
24
+ 'The result file "{name}" exceeds the Feishu 30 MB limit and was not sent.',
25
+ '结果文件「{name}」为空,飞书不允许发送空文件。':
26
+ 'The result file "{name}" is empty; Feishu does not allow sending empty files.',
27
+ '结果文件「{name}」暂时被飞书限流,未能发送,请稍后重试。':
28
+ 'The result file "{name}" was temporarily rate-limited by Feishu and could not be sent. Please try again later.',
29
+ '结果文件「{name}」已生成,但暂时未能发送,请稍后重试。':
30
+ 'The result file "{name}" was generated but could not be sent right now. Please try again later.',
31
+ '处理失败,请稍后重试。如果问题持续,请在 DeepSeek Harness 的飞书插件页面检查连接状态。':
32
+ 'Message processing failed. Please try again later. If the problem persists, check the connection status on the Feishu plugin page in DeepSeek Harness.',
33
+ '已开启全新 Harness 会话。': 'A brand-new Harness session has started.',
34
+ '飞书机器人与 DeepSeek Harness 连接正常。':
35
+ 'The Feishu bot is connected to DeepSeek Harness and working normally.',
36
+ '用法:/archived on(包含归档会话)或 /archived off(隐藏归档会话)':
37
+ 'Usage: /archived on (include archived sessions) or /archived off (hide archived sessions)',
38
+ '已开启:会话列表包含归档会话。': 'On: the session list includes archived sessions.',
39
+ '已关闭:会话列表隐藏归档会话。': 'Off: the session list hides archived sessions.',
40
+
41
+ // feishu/bridge.mjs — repair flow
42
+ '为避免授权链接暴露,请私聊机器人发送 /repair。':
43
+ 'To keep the authorization link private, send /repair to the bot in a direct message.',
44
+ '当前机器人没有可验证的接入者身份,不能从聊天发起修复;请先在插件页设置管理员。':
45
+ 'This bot has no verifiable owner identity, so repair cannot be started from chat. Set an administrator on the plugin page first.',
46
+ '此操作只能由机器人接入者在私聊中发起,未进行任何修改。':
47
+ 'This action can only be started by the bot owner in a direct message. Nothing was changed.',
48
+ '当前 Host 版本暂不支持聊天内修复,请先更新插件。':
49
+ 'The current Host version does not support in-chat repair. Update the plugin first.',
50
+ '用法:/repair、/repair qr、/repair status、/repair cancel 或 /repair verify':
51
+ 'Usage: /repair, /repair qr, /repair status, /repair cancel, or /repair verify',
52
+ '当前 Runtime 没有可恢复的修复任务记录(机器人可能刚完成密钥更新并重启)。本命令不会启动新的授权;请查看机器人发送的验证结果,确认上一次任务已结束后再发送 /repair。':
53
+ 'The current Runtime has no recoverable repair attempt (the bot may have just rotated its secret and restarted). This command starts no new authorization. Check the verification result the bot sent, then send /repair after the previous attempt has finished.',
54
+ '另一位管理员正在修复该机器人,本次不会显示其授权信息。':
55
+ 'Another administrator is repairing this bot; its authorization info will not be shown this time.',
56
+ '暂时无法取消修复任务,请稍后重试。':
57
+ 'Could not cancel the repair task right now. Please try again later.',
58
+ '暂时无法查询修复状态,请稍后重试。':
59
+ 'Could not check the repair status right now. Please try again later.',
60
+ '修复流程暂时失败,现有机器人连接不受影响;请稍后发送 /repair 重试。':
61
+ 'The repair flow failed for now; the existing bot connection is unaffected. Send /repair again later.',
62
+ '飞书返回了无法安全验证的授权链接,已中止本次修复。':
63
+ 'Feishu returned an authorization link that cannot be verified safely. This repair was aborted.',
64
+ '飞书未返回授权链接,已中止本次修复。':
65
+ 'Feishu did not return an authorization link. This repair was aborted.',
66
+ '授权已确认,正在发送并等待测试按钮回调;收到真实回调后才会完成。':
67
+ 'Authorization confirmed. Sending a test button and waiting for its callback; this completes only after a real callback arrives.',
68
+ '修复状态查询中断,现有机器人连接不受影响;发送 /repair status 重试查询。':
69
+ 'The repair status query was interrupted; the existing bot connection is unaffected. Send /repair status to retry.',
70
+ '链接为短期有效': 'The link is valid for a short time.',
71
+ '链接约 {minutes} 分钟后过期': 'The link expires in about {minutes} minutes',
72
+ '已有一个修复任务在等待授权。': 'A repair task is already waiting for authorization.',
73
+ '🔧 准备修复卡片按钮。': '🔧 Preparing to repair the card buttons.',
74
+ '本次只会增量添加 card.action.trigger。请核对确认页只显示这一项;若出现其他权限或事件,请取消。':
75
+ 'Only card.action.trigger will be added. Check that the confirmation page shows only this item; cancel if any other permission or event appears.',
76
+ '当前设备直接打开:': 'Open directly on this device:',
77
+ '若要用另一台设备扫码,发送 /repair qr。{expiry}。':
78
+ 'To scan with another device, send /repair qr. {expiry}.',
79
+ '请用另一台设备扫码完成授权{remaining}。':
80
+ 'Complete authorization by scanning with another device{remaining}.',
81
+ '(剩余约 {minutes} 分钟)': ' (about {minutes} minutes left)',
82
+ '二维码暂时无法发送,请直接打开授权链接:\n{url}':
83
+ 'The QR code could not be sent. Open the authorization link directly:\n{url}',
84
+ '授权链接已过期;平台未返回成功结果,无法确认已修复。发送 /repair 生成新链接。':
85
+ 'The authorization link expired; the platform returned no success, so the repair cannot be confirmed. Send /repair for a new link.',
86
+ '已取消本次修复授权,未确认完成修复。':
87
+ 'Repair authorization was cancelled; the repair was not confirmed.',
88
+ '你已取消或拒绝授权,没有确认修复;发送 /repair 可重试。':
89
+ 'You cancelled or declined authorization, so the repair was not confirmed. Send /repair to retry.',
90
+ '授权已提交,但未收到测试按钮回调。可能尚未点击或配置仍在传播;稍后发送 /repair verify 查询,不要盲目重复授权。':
91
+ 'Authorization was submitted, but no test-button callback arrived. It may not have been tapped yet, or the config is still propagating. Send /repair verify later to check; do not authorize blindly again.',
92
+ '修复流程暂时失败,现有机器人连接不受影响;发送 /repair 可重试。':
93
+ 'The repair flow failed for now; the existing bot connection is unaffected. Send /repair to retry.',
94
+ '授权已确认,正在等待专用测试按钮的真实回调;回调到达前不会宣告成功。':
95
+ 'Authorization confirmed. Waiting for the real callback from the dedicated test button; success is not declared until it arrives.',
96
+ '授权尚未完成,暂时不能验证卡片按钮。请先打开授权链接并确认。':
97
+ 'Authorization is not complete, so the card buttons cannot be verified yet. Open the authorization link and confirm first.',
98
+ '修复任务正在等待授权{remaining}。发送 /repair qr 可获取二维码,/repair cancel 可取消。':
99
+ 'The repair task is waiting for authorization{remaining}. Send /repair qr for the QR code, or /repair cancel to cancel.',
100
+ ',剩余约 {minutes} 分钟': ', about {minutes} minutes left',
101
+ '这个菜单已过期,请回复 /m 重新打开。': 'This menu has expired. Send /m to reopen it.',
102
+ '菜单没有这个编号,回复 /m 重新打开。': 'This menu has no such number. Send /m to reopen it.',
103
+ '本页只有 {count} 个会话,回复 /sessionlist 重新查看。':
104
+ 'This page has only {count} sessions. Send /sessionlist to view them again.',
105
+ '只有 {count} 个工作区,回复 /workspacelist 重新查看。':
106
+ 'There are only {count} workspaces. Send /workspacelist to view them again.',
107
+ '关注列表只有 {count} 个会话。': 'The watch list has only {count} sessions.',
108
+
109
+
110
+
111
+
112
+ '已绑定会话「{title}」\nID:{id}': 'Session bound: "{title}"\nID: {id}',
113
+ '绑定失败:{message}': 'Binding failed: {message}',
114
+
115
+ '切换失败:{message}': 'Switch failed: {message}',
116
+ '用法:/watch <Session ID 或当前工作区序号>':
117
+ 'Usage: /watch <Session ID or the current workspace index>',
118
+ '当前机器人没有可用的工作区,无法按序号解析会话。':
119
+ 'This bot has no available workspace, so sessions cannot be resolved by index.',
120
+ '当前工作区只有 {count} 个会话。': 'The current workspace has only {count} sessions.',
121
+ '没有找到这个会话,请用 /sessionlist 查看可用会话。':
122
+ 'Session not found. Use /sessionlist to see the available sessions.',
123
+ '当前状态存储不支持关注。': 'The current state store does not support watching.',
124
+ '无法解析会话:{message}': 'Could not resolve the session: {message}',
125
+ '每个聊天最多关注 {count} 个会话。': 'Each chat can watch at most {count} sessions.',
126
+ '关注列表里没有这个会话,回复 /watchlist 查看。':
127
+ 'This session is not in the watch list. Send /watchlist to view it.',
128
+ '已关注会话「{title}」,任务完成会推送结果。':
129
+ 'Watching session "{title}"; results are pushed when the task completes.',
130
+ '关注失败:{message}': 'Could not watch: {message}',
131
+ '已取消关注「{title}」。': 'Unwatched "{title}".',
132
+ '取消失败:{message}': 'Could not unwatch: {message}',
133
+ '飞书交互问题发送失败。': 'Failed to send the Feishu interaction question.',
134
+
135
+ // feishu/feishu-cards.mjs — interactive cards
136
+ '🤖 助手菜单': '🤖 Assistant menu',
137
+ '**点击按钮或直接回复数字**': '**Tap a button or reply with a number**',
138
+ '1 · 会话列表': '1 · Sessions',
139
+ '2 · 工作区': '2 · Workspace',
140
+ '3 · 新会话': '3 · New session',
141
+ '4 · 状态': '4 · Status',
142
+ '5 · 帮助': '5 · Help',
143
+ '**6 · 修复卡片按钮**(请直接回复数字 **6**)':
144
+ '**6 · Repair card buttons** (reply with the number **6**)',
145
+ '7 · 关注列表': '7 · Watch list',
146
+ '🧪 验证卡片按钮': '🧪 Verify card buttons',
147
+ '授权已提交。请点击下方按钮;机器人真实收到回调后才会判定修复成功。':
148
+ 'Authorization submitted. Tap the button below; the repair is confirmed only after the bot receives the real callback.',
149
+ '完成验证': 'Finish verification',
150
+ '**工作区**:{workspace}\n共 **{total}** 个会话{paging}':
151
+ '**Workspace**: {workspace}\n**{total}** sessions in total{paging}',
152
+ '(第 {page}/{pageCount} 页)': ' (page {page}/{pageCount})',
153
+ '⭐取关': '⭐ Unwatch',
154
+ '⭐关注': '⭐ Watch',
155
+ '◀ 上一页': '◀ Previous',
156
+ '下一页 ▶': 'Next ▶',
157
+ '回复数字(1~N)绑定本页会话。': 'Reply with a number (1–N) to bind a session on this page.',
158
+ '📂 会话列表': '📂 Session list',
159
+ '当前 Host 上没有已登记的工作区。': 'No workspaces are registered on the current Host.',
160
+ '回复数字切换工作区,或点击按钮:': 'Reply with a number to switch workspaces, or tap a button:',
161
+ '🗂 工作区': '🗂 Workspace',
162
+ '🤖 助手菜单(回复数字即可,无需记命令)':
163
+ '🤖 Assistant menu (reply with a number — no need to memorize commands)',
164
+ '1 · /sessionlist 列出会话(回复数字绑定)':
165
+ '1 · /sessionlist List sessions (reply with a number to bind)',
166
+ '2 · /workspacelist 列出工作区(回复数字切换)':
167
+ '2 · /workspacelist List workspaces (reply with a number to switch)',
168
+ '3 · /new 开启新会话': '3 · /new Start a new session',
169
+ '4 · /status 连接状态': '4 · /status Connection status',
170
+ '5 · /help 本帮助': '5 · /help This help',
171
+ '6 · /repair 修复卡片按钮(请回复数字 6)':
172
+ '6 · /repair Repair card buttons (reply with the number 6)',
173
+ '7 · /watchlist 关注列表': '7 · /watchlist Watch list',
174
+ '直接发送文字/图片即继续当前会话。':
175
+ 'Send text or an image directly to continue the current session.',
176
+ '/session ID 或序号 绑定已有会话': '/session ID or index Bind an existing session',
177
+ '/watch ID 或序号 关注会话(完成后推送)':
178
+ '/watch ID or index Watch a session (push when done)',
179
+ '/compact 压缩上下文': '/compact Compact the context',
180
+ '/workspace 绝对路径 切换工作区': '/workspace <absolute path> Switch workspace',
181
+ '/presetlist 列出可用 Agent Preset': '/presetlist List available Agent Presets',
182
+ '任务完成会自动推送,回复数字或点按钮取消关注:':
183
+ 'Completion is pushed automatically. Reply with a number or tap a button to unwatch:',
184
+ '👁 关注列表': '👁 Watch list',
185
+ '已完成': 'Completed',
186
+ '已停止': 'Stopped',
187
+ '已中止': 'Aborted',
188
+ '已取消': 'Cancelled',
189
+ '已结束': 'Ended',
190
+ '✅ 任务完成': '✅ Task complete',
191
+ '**状态**:{reason}': '**Status**: {reason}',
192
+ '打开会话列表': 'Open session list',
193
+ '工作区': 'Workspace',
194
+ '绑定该会话后可继续追问,输入文字即可。':
195
+ 'After binding this session you can keep asking; just type a message.',
196
+ '当前没有关注的会话。\n`/watch <ID|序号>` 关注后,任务完成会自动推送。':
197
+ 'No sessions are being watched.\nWatch one with `/watch <ID|index>` and completion is pushed automatically.',
198
+
199
+ // feishu/feishu-channel.mjs
200
+ '正在生成…': 'Generating…',
201
+ '回答完成': 'Answer complete',
202
+ '飞书机器人': 'Feishu bot',
203
+
204
+ // feishu/message-utils.mjs
205
+ '飞书机器人缺少图片读取权限。请在飞书开放平台为该应用添加 im:message:readonly,发布新版本并完成必要的管理员审批后,再重新发送图片。':
206
+ 'The Feishu bot is missing image-read permission. Add im:message:readonly to the app in Feishu Open Platform, publish a new version, complete the required admin approval, then resend the image.',
207
+
208
+ // feishu/feishu-runtime.mjs — callback probe notices
209
+ '✅ 修复完成:已实测收到 card.action.trigger,菜单按钮现在可用。':
210
+ '✅ Repair complete: card.action.trigger was received in a real test; the menu buttons now work.',
211
+ '⚠️ 修复验证超时:未收到测试卡按钮的 card.action.trigger,不能确认按钮已修复。请不要重复授权;先检查飞书开放平台的卡片回调配置,确认后再发送 /repair。':
212
+ '⚠️ Repair verification timed out: no card.action.trigger from the test card button was received, so the buttons cannot be confirmed repaired. Do not authorize again; check the card-callback configuration in Feishu Open Platform first, then send /repair.',
213
+ '⚠️ 修复验证失败:无法发送专用测试卡,不能确认 card.action.trigger 已恢复。请不要重复授权;先检查机器人消息权限和连接状态。':
214
+ '⚠️ Repair verification failed: the dedicated test card could not be sent, so card.action.trigger cannot be confirmed restored. Do not authorize again; check the bot message permission and connection status first.',
215
+ '⚠️ 修复验证中断:Runtime 已停止,未完成 card.action.trigger 实测,不能确认修复成功。请不要重复授权;先等待机器人恢复连接。':
216
+ '⚠️ Repair verification interrupted: the Runtime stopped before the card.action.trigger test completed, so the repair cannot be confirmed. Do not authorize again; wait for the bot to reconnect.',
217
+ };
@@ -0,0 +1,23 @@
1
+ // English translations (office area). Keys are exact Chinese literals passed to t().
2
+ export default {
3
+ 'AI Office 拒绝了 Device Token。': 'AI Office rejected the Device Token.',
4
+ 'AI Office Connector Hook 尚未就绪。': 'The AI Office Connector Hook is not ready yet.',
5
+ 'AI Office Connector 协议版本不兼容。': 'The AI Office Connector protocol version is incompatible.',
6
+ '本机暂时无法访问 AI Office。': 'This machine cannot reach AI Office right now.',
7
+ 'AI Office 连接已中断。': 'The AI Office connection was interrupted.',
8
+ '本机 Harness 已停止这次执行。': 'The local Harness stopped this run.',
9
+ 'Office Job 已被领取、取消或结束。': 'The Office Job has already been claimed, cancelled, or finished.',
10
+ '本机 Harness 未能完成任务;请检查 Harness 会话后重试。': 'The local Harness could not complete the task; check the Harness Session and try again.',
11
+ 'Office Job 引用了本机未配置的 Workspace/Preset alias。': 'The Office Job references a Workspace/Preset alias that is not configured locally.',
12
+ '你正在本机 DeepSeek Harness 中继续一个来自 AI Office 的任务。': 'You are continuing an AI Office task inside the local DeepSeek Harness.',
13
+ '只在当前 Workspace 内行动。完成后必须返回:结果摘要、改动文件、验证证据、未解决风险。': 'Act only within the current Workspace. When finished you must return: a result summary, changed files, verification evidence, and unresolved risks.',
14
+ '## 本机 Instruction Preset': '## Local Instruction Preset',
15
+ '## 本轮补充指令': '## Additional Instructions for This Round',
16
+ '## Office 时间线': '## Office Timeline',
17
+ '批准 {tool}': 'Approve {tool}',
18
+ 'Harness 工具': 'Harness tool',
19
+ 'Harness 需要 {count} 项补充信息': 'Harness needs {count} pieces of additional information',
20
+ '已领取 Job,准备 Workspace alias:{alias}': 'Job claimed; preparing Workspace alias: {alias}',
21
+ 'Harness Session 已创建。': 'Harness Session created.',
22
+ '正在使用 {tool}…': 'Using {tool}…',
23
+ };
@@ -0,0 +1,54 @@
1
+ // English translations (qq area). Keys are exact Chinese literals passed to t().
2
+ export default {
3
+
4
+ 'QQ 机器人已连接 DeepSeek Harness。':
5
+ 'The QQ bot is connected to DeepSeek Harness.',
6
+ '回答较长,后续内容未能通过 QQ 完整发送,请回复“继续”。':
7
+ 'The answer is long and the rest could not be sent fully through QQ. Reply “继续” (continue) to receive it.',
8
+
9
+
10
+
11
+
12
+ '结果文件「{name}」已生成,但 QQ 今日文件上传额度已用完,请稍后重试。':
13
+ 'The result file "{name}" was generated, but QQ\'s daily file upload quota is used up. Please try again later.',
14
+
15
+ '结果文件「{name}」已生成,但当前 QQ 机器人没有文件消息权限。':
16
+ 'The result file "{name}" was generated, but the current QQ bot does not have file message permission.',
17
+ '结果文件「{name}」超过当前 QQ 机器人可发送的文件大小,未发送。':
18
+ 'The result file "{name}" exceeds the file size the current QQ bot can send and was not sent.',
19
+ '结果文件「{name}」为空,QQ 不允许发送空文件。':
20
+ 'The result file "{name}" is empty, and QQ does not allow sending empty files.',
21
+
22
+ '结果文件「{name}」暂时被 QQ 限流,未能发送,请稍后重试。':
23
+ 'The result file "{name}" was temporarily rate-limited by QQ and was not sent. Please try again later.',
24
+ '结果文件「{name}」已生成,但 QQ 拒绝了该文件或文件消息。':
25
+ 'The result file "{name}" was generated, but QQ rejected the file or file message.',
26
+ '结果文件「{name}」已生成,但暂时未能通过 QQ 发送,请稍后重试。':
27
+ 'The result file "{name}" was generated but could not be sent via QQ right now. Please try again later.',
28
+ 'QQ 机器人与 DeepSeek Harness 连接正常。':
29
+ 'The QQ bot is connected to DeepSeek Harness normally.',
30
+ 'QQ 交互问题发送失败。': 'Failed to send the QQ interaction question.',
31
+
32
+
33
+ 'QQ 机器人凭据缺失,请移除后重新扫码。':
34
+ 'The QQ bot credentials are missing. Remove the bot and scan the QR code again.',
35
+ 'QQ 连接未就绪,插件会自动重试。':
36
+ 'The QQ connection is not ready; the plugin will retry automatically.',
37
+ 'QQ 扫码服务暂时不可用,请重新生成二维码。':
38
+ 'The QQ QR service is temporarily unavailable. Please generate a new QR code.',
39
+ '无法生成 QQ 二维码,请稍后重试。':
40
+ 'Unable to generate the QQ QR code. Please try again later.',
41
+ 'QQ 机器人已绑定,消息连接暂未就绪。':
42
+ 'The QQ bot is bound, but the message connection is not ready yet.',
43
+ 'QQ 连接仍未就绪,请稍后重试。':
44
+ 'The QQ connection is still not ready. Please try again later.',
45
+ QQ机器人尚未连接: 'The QQ bot is not connected yet',
46
+ 'QQ 机器人({appId})': 'QQ bot ({appId})',
47
+ QQ机器人: 'QQ bot',
48
+ 'QQ WebSocket 长连接运行正常': 'The QQ WebSocket long connection is running normally',
49
+ 'QQ 连接未就绪,插件会自动重试':
50
+ 'The QQ connection is not ready; the plugin will retry automatically',
51
+ 'QQ 连接当前离线': 'The QQ connection is currently offline',
52
+ 'QQ 已授权,但无法安全保存接入配置。':
53
+ 'QQ authorization succeeded, but the connection configuration could not be saved safely.',
54
+ };
@@ -0,0 +1,91 @@
1
+ // English translations (shared-a area). Keys are exact Chinese literals passed to t().
2
+ export default {
3
+ '这个问题已在其他客户端处理,无需再次回答。':
4
+ 'This question has already been answered from another client; no further reply is needed.',
5
+ '任务已完成。': 'Task completed.',
6
+ '结果文件': 'result file',
7
+ '结果文件「{name}」的发送结果未能确认,请先检查聊天内是否已收到,不要立即重试。':
8
+ 'The delivery result of the result file "{name}" could not be confirmed. Please check whether it already arrived in the chat before retrying.',
9
+ '结果文件「{name}」已生成,但 Slack 应用缺少 files:write 权限。请更新 Manifest、重新安装应用并重新连接机器人后重试。':
10
+ 'The result file "{name}" was generated, but the Slack app is missing the files:write permission. Please update the Manifest, reinstall the app, reconnect the bot, and try again.',
11
+ '结果文件「{name}」已生成,但机器人缺少 Discord 的 Send Messages、Attach Files 或 Read Message History 权限。':
12
+ 'The result file "{name}" was generated, but the bot is missing the Discord Send Messages, Attach Files, or Read Message History permission.',
13
+ '结果文件「{name}」已生成,但 Telegram 不允许机器人在当前聊天发送文档,请检查聊天权限。':
14
+ 'The result file "{name}" was generated, but Telegram does not allow the bot to send documents in this chat. Please check the chat permissions.',
15
+ '结果文件「{name}」已生成,但当前机器人没有文件发送权限,请检查渠道权限。':
16
+ 'The result file "{name}" was generated, but the bot does not have permission to send files. Please check the channel permissions.',
17
+ '结果文件「{name}」超过当前渠道大小上限,未发送。':
18
+ 'The result file "{name}" exceeds the size limit of this channel and was not sent.',
19
+ '结果文件「{name}」为空,未发送。':
20
+ 'The result file "{name}" is empty and was not sent.',
21
+ '结果文件「{name}」暂时无法读取或准备发送,请确认文件仍可访问后重试。':
22
+ 'The result file "{name}" cannot be read or prepared for sending right now. Please make sure the file is still accessible and try again.',
23
+ '结果文件「{name}」暂时被当前渠道限流,未能发送,请稍后重试。':
24
+ 'The result file "{name}" was temporarily rate-limited by this channel and could not be sent. Please try again later.',
25
+ '结果文件「{name}」已生成,但当前渠道拒绝了该文件或文件消息。':
26
+ 'The result file "{name}" was generated, but this channel rejected the file or file message.',
27
+ '结果文件「{name}」已生成,但当前渠道暂时未能发送,请稍后重试。':
28
+ 'The result file "{name}" was generated, but this channel could not send it right now. Please try again later.',
29
+ '消息处理失败,请稍后重试。': 'Failed to process the message. Please try again later.',
30
+ '{label}机器人': '{label} bot',
31
+ '目前支持文字和图片消息。': 'Only text and image messages are supported at the moment.',
32
+ '目前支持文字、图片和文件消息。':
33
+ 'Only text, image, and file messages are supported at the moment.',
34
+ '目前支持文字、图片、文件和语音转写消息。':
35
+ 'Only text, image, file, and voice-transcription messages are supported at the moment.',
36
+ '目前支持文字、图片、文件,以及微信已转成文字的语音消息。':
37
+ 'Only text, image, file, and voice messages already transcribed to text by WeChat are supported at the moment.',
38
+ '直接发送文字或图片即可继续当前会话。': 'Send text or an image directly to continue the current session.',
39
+ '直接发送文字、图片或文件即可继续当前会话。':
40
+ 'Send text, an image, or a file directly to continue the current session.',
41
+ '直接发送文字、图片、文件或带文字识别结果的语音即可继续当前会话。':
42
+ 'Send text, an image, a file, or a voice message already transcribed to text to continue the current session.',
43
+ '{label}机器人已连接 DeepSeek Harness。': 'The {label} bot is connected to DeepSeek Harness.',
44
+ '/new 开启一个全新会话': '/new Start a brand-new session',
45
+ '/compact 压缩当前会话的较早上下文': '/compact Compact the earlier context of the current session',
46
+ '/workspace 工作区绝对路径 切换工作区': '/workspace <absolute workspace path> Switch workspace',
47
+ '/workspacelist 列出工作区绝对路径': '/workspacelist List absolute workspace paths',
48
+ '/sessionlist [工作区序号或绝对路径] 列出会话 ID 和标题':
49
+ '/sessionlist [workspace index or absolute path] List session IDs and titles',
50
+ '/session Session ID 或当前工作区序号 将当前聊天绑定到指定会话':
51
+ '/session <Session ID or workspace index> Bind this chat to the specified session',
52
+ '/models 按序号列出所有可用模型': '/models List all available models by index',
53
+ '/model [序号或完整模型ID] 查看或切换当前会话模型':
54
+ '/model [index or full model ID] Show or switch the model of the current session',
55
+ '示例:先发 /models,再发 /model 2': 'Example: send /models first, then /model 2',
56
+ '/presetlist 按序号列出可用 Agent Preset': '/presetlist List available Agent Presets by index',
57
+ '/preset [序号或完整ID] 查看或设置当前机器人 Agent Preset':
58
+ '/preset [index or full ID] Show or set the Agent Preset of this bot',
59
+ '纯数字 ID:/preset id:<ID>': 'Numeric-only ID: /preset id:<ID>',
60
+ '/preset --default 跟随 Host 默认': '/preset --default Follow the Host default',
61
+ '/stop 停止当前任务': '/stop Stop the current task',
62
+ '/steer 补充指令 纠偏当前任务': '/steer <additional instruction> Steer the current task',
63
+ '/status 检查连接状态': '/status Check the connection status',
64
+ '/help 显示本帮助': '/help Show this help',
65
+ '{label}机器人与 DeepSeek Harness 连接正常。':
66
+ 'The {label} bot is connected to DeepSeek Harness and working normally.',
67
+ '{label}机器人凭据缺失,请移除后重新接入。':
68
+ '{label} bot credentials are missing. Remove the bot and connect it again.',
69
+ '{label}连接未就绪,插件会自动重试。':
70
+ 'The {label} connection is not ready yet. The plugin will retry automatically.',
71
+ '{label}机器人已接入,消息连接暂未就绪。':
72
+ 'The {label} bot is connected, but its message connection is not ready yet.',
73
+ '{label}连接仍未就绪,请稍后重试。':
74
+ 'The {label} connection is still not ready. Please try again later.',
75
+ '{label}机器人尚未连接': 'The {label} bot is not connected yet',
76
+ '{name}({id})': '{name} ({id})',
77
+ '{label}{connectionLabel}运行正常': 'The {label}{connectionLabel} is running normally',
78
+ '{label}连接未就绪,插件会自动重试':
79
+ 'The {label} connection is not ready. The plugin will retry automatically',
80
+ '{label}连接当前离线': 'The {label} connection is currently offline',
81
+ '已开启新会话。请发送你的问题。': 'A new session has started. Please send your question.',
82
+ '正在使用{name}…': 'Using {name}…',
83
+ '已停止。': 'Stopped.',
84
+ '请用文字回答当前问题。': 'Please answer the current question with text.',
85
+ '{label}交互问题发送失败。': 'Failed to send the {label} interaction question.',
86
+ '回答提交失败。': 'Failed to submit the answer.',
87
+ '回答提交失败,请重新发送当前问题的答案。':
88
+ 'Failed to submit the answer. Please resend your answer to the current question.',
89
+ '检测到这个 Session 中遗留的待回答问题,已安全取消并继续处理你刚才的消息。':
90
+ 'A pending question left over in this Session was detected. It has been safely cancelled, and your latest message is being processed.',
91
+ };
@@ -0,0 +1,215 @@
1
+ // English translations (shared-b area). Keys are exact Chinese literals passed to t().
2
+ export default {
3
+ // workspace-command.mjs
4
+ '用法:/session Session ID 或当前工作区序号(/session N)':
5
+ 'Usage: /session Session ID or the session index in the current Workspace (/session N)',
6
+ '用法:\n/sessionlist 列出当前工作区会话\n/sessionlist 工作区序号 按 /workspacelist 序号列出会话\n/sessionlist 工作区绝对路径 列出指定工作区会话':
7
+ 'Usage:\n/sessionlist List Sessions in the current Workspace\n/sessionlist Workspace index List Sessions by /workspacelist index\n/sessionlist Workspace absolute path List Sessions in the given Workspace',
8
+ '工作区必须是绝对路径。\n{usage}': 'The Workspace must be an absolute path.\n{usage}',
9
+ '工作区路径包含不支持的字符或长度超过限制。\n{usage}':
10
+ 'The Workspace path contains unsupported characters or exceeds the length limit.\n{usage}',
11
+ '工作区路径不存在。\n{usage}': 'The Workspace path does not exist.\n{usage}',
12
+ '工作区路径必须指向一个目录。\n{usage}': 'The Workspace path must point to a directory.\n{usage}',
13
+ '用法:/workspacelist': 'Usage: /workspacelist',
14
+ '当前机器人暂不支持列出工作区。': 'This bot does not support listing Workspaces yet.',
15
+ '当前 Harness Host 上没有仍然存在的已登记工作区。':
16
+ 'No registered Workspaces still exist on the current Harness Host.',
17
+ '当前 Harness Host 上存在的工作区({count}):':
18
+ 'Workspaces on the current Harness Host ({count}):',
19
+ '(当前)': '(current)',
20
+ '切换用法:/workspace 工作区绝对路径': 'To switch: /workspace Workspace absolute path',
21
+ '查看会话:/sessionlist 工作区序号或绝对路径':
22
+ 'To view Sessions: /sessionlist Workspace index or absolute path',
23
+ '机器人正在移除或已重新接入,无法列出原会话的工作区。':
24
+ 'The bot is being removed or has been reconnected; cannot list Workspaces of the original Session.',
25
+ '暂时无法获取工作区列表,请稍后重试。':
26
+ 'Unable to get the Workspace list right now; please try again later.',
27
+ '当前机器人没有可用的工作区。': 'This bot has no available Workspace.',
28
+ '当前机器人暂不支持按序号选择工作区。':
29
+ 'This bot does not support selecting a Workspace by index yet.',
30
+ '工作区序号不存在,请先执行 /workspacelist。':
31
+ 'The Workspace index does not exist; please run /workspacelist first.',
32
+ '今天 {time}': 'Today {time}',
33
+ '昨天 {time}': 'Yesterday {time}',
34
+ '前天 {time}': 'The day before yesterday {time}',
35
+ '{month}月{day}日 {time}': '{month}/{day} {time}',
36
+ '{year}年{month}月{day}日': '{year}-{month}-{day}',
37
+ '标题暂不可用': 'Title unavailable',
38
+ '暂无标题': 'No title',
39
+ '(已归档)': '(archived)',
40
+ '工作区:{workspace}\n该工作区暂无会话。': 'Workspace: {workspace}\nThis Workspace has no Sessions yet.',
41
+ '工作区:{workspace}': 'Workspace: {workspace}',
42
+ '会话({count}):': 'Sessions ({count}):',
43
+ '绑定用法:/session Session ID 或当前工作区序号(/session N)':
44
+ 'To bind: /session Session ID or the Session index in the current Workspace (/session N)',
45
+ '绑定用法:/session Session ID\n提示:/session N 只按机器人当前工作区的序号绑定。':
46
+ "To bind: /session Session ID\nNote: /session N binds by index within the bot's current Workspace only.",
47
+ '当前机器人暂不支持列出工作区会话。':
48
+ 'This bot does not support listing Workspace Sessions yet.',
49
+ '机器人正在移除或已重新接入,无法列出原会话的工作区会话。':
50
+ 'The bot is being removed or has been reconnected; cannot list Workspace Sessions of the original Session.',
51
+ '暂时无法获取工作区会话列表,请稍后重试。':
52
+ 'Unable to get the Workspace Session list right now; please try again later.',
53
+ 'Session ID 格式无效。\n{usage}': 'Invalid Session ID format.\n{usage}',
54
+ '未找到该会话,请先执行 /sessionlist 确认 Session ID。':
55
+ 'Session not found; please run /sessionlist to confirm the Session ID.',
56
+ '子代理会话不能绑定到机器人对话,请选择普通会话。':
57
+ 'Sub-agent Sessions cannot be bound to a bot conversation; please choose a regular Session.',
58
+ '该会话的工作区归属不明确,暂时无法绑定。':
59
+ "The Session's Workspace ownership is ambiguous; cannot bind it right now.",
60
+ '暂时无法读取该会话的信息,请稍后重试。':
61
+ 'Unable to read the Session info right now; please try again later.',
62
+ '机器人正在移除或已重新接入,无法绑定原对话的会话。':
63
+ 'The bot is being removed or has been reconnected; cannot bind the Session of the original conversation.',
64
+ '工作区或会话状态已发生变化,请重试。':
65
+ 'The Workspace or Session state has changed; please try again.',
66
+ '暂时无法绑定会话,请稍后重试。': 'Unable to bind the Session right now; please try again later.',
67
+ '当前机器人暂不支持按序号绑定,请使用 /session Session ID。':
68
+ 'This bot does not support binding by index yet; please use /session Session ID.',
69
+ '会话序号不存在,请先执行 /sessionlist 查看序号。':
70
+ 'The Session index does not exist; please run /sessionlist to see the indexes.',
71
+ '暂时无法获取会话列表,请稍后重试。':
72
+ 'Unable to get the Session list right now; please try again later.',
73
+ '当前机器人暂不支持绑定已有会话。':
74
+ 'This bot does not support binding existing Sessions yet.',
75
+ '当前消息缺少可绑定的会话上下文。':
76
+ 'The current message lacks a conversation context to bind to.',
77
+ '当前聊天已绑定会话:': 'This chat is now bound to the Session:',
78
+ '标题:{title}': 'Title: {title}',
79
+ '归档:{archived}': 'Archived: {archived}',
80
+ '是': 'Yes',
81
+ '否': 'No',
82
+ '用法:/workspace 工作区绝对路径': 'Usage: /workspace Workspace absolute path',
83
+ '当前机器人暂不支持切换工作区。': 'This bot does not support switching Workspaces yet.',
84
+ '工作区已切换为:{workspace}': 'Workspace switched to: {workspace}',
85
+ '{message}\n用法:/workspace 工作区绝对路径': '{message}\nUsage: /workspace Workspace absolute path',
86
+ '机器人正在移除或已重新接入,无法切换原会话的工作区。':
87
+ 'The bot is being removed or has been reconnected; cannot switch the Workspace of the original Session.',
88
+
89
+ // preset-command.mjs
90
+ '用法:/presetlist(不带参数)': 'Usage: /presetlist (no arguments)',
91
+ '用法:\n/preset 查看当前设置\n/preset <序号> 按最近一次 /presetlist 的序号选择\n/preset <ID> 按 Agent Preset ID 选择\n/preset id:<纯数字 ID> 选择纯数字 ID\n/preset --default 跟随 Host 默认':
92
+ 'Usage:\n/preset Show current settings\n/preset <index> Select by index from the latest /presetlist\n/preset <ID> Select by Agent Preset ID\n/preset id:<numeric ID> Select a purely numeric ID\n/preset --default Follow the Host default',
93
+ '未设置或当前不可用': 'Not set or currently unavailable',
94
+ '{id}(当前不可用)': '{id} (currently unavailable)',
95
+ '跟随 Host 默认:{preset}': 'Following Host default: {preset}',
96
+ '跟随 Host 默认(Host 默认当前不可用)': 'Following Host default (Host default currently unavailable)',
97
+ '{id}(已不可用)': '{id} (no longer available)',
98
+ '当前机器人用于新会话的 Agent Preset:': 'Agent Preset this bot uses for new Sessions:',
99
+ '已有会话不会受此设置影响。': 'Existing Sessions are not affected by this setting.',
100
+ '查看可用项:/presetlist': 'See available options: /presetlist',
101
+ '恢复跟随 Host 默认:/preset --default': 'Restore following Host default: /preset --default',
102
+ 'Host 默认:{preset}': 'Host default: {preset}',
103
+ '可用 Agent Preset({count}):': 'Available Agent Presets ({count}):',
104
+ '当前没有可用 Agent Preset。': 'No Agent Presets are currently available.',
105
+ 'Host 默认': 'Host default',
106
+ '当前选择': 'current selection',
107
+ '当前生效': 'currently in effect',
108
+ '选择:/preset <序号或 ID>': 'To select: /preset <index or ID>',
109
+ '当前机器人用于新会话的 Agent Preset 已设置为:':
110
+ 'The Agent Preset this bot uses for new Sessions is now set to:',
111
+ '已有会话不变。若当前聊天已有会话,请先发送 /new,再发送普通消息,才会使用新设置创建会话。':
112
+ 'Existing Sessions are unchanged. If this chat already has a Session, send /new first, then a regular message, to create a Session with the new setting.',
113
+ 'Agent Preset 序号无效,请先执行 /presetlist。':
114
+ 'Invalid Agent Preset index; please run /presetlist first.',
115
+ '请先执行 /presetlist,再按列表序号选择 Agent Preset。':
116
+ 'Please run /presetlist first, then select an Agent Preset by list index.',
117
+ 'Agent Preset 序号不存在,请重新执行 /presetlist。':
118
+ 'The Agent Preset index does not exist; please run /presetlist again.',
119
+ 'Agent Preset ID 格式无效。\n{usage}': 'Invalid Agent Preset ID format.\n{usage}',
120
+ 'Agent Preset 不存在或当前不可用,请重新执行 /presetlist。':
121
+ 'The Agent Preset does not exist or is currently unavailable; please run /presetlist again.',
122
+ '工作区或机器人状态已发生变化,请重试。':
123
+ 'The Workspace or bot state has changed; please try again.',
124
+ '获取 Agent Preset 列表已取消。': 'Fetching the Agent Preset list was cancelled.',
125
+ '获取 Agent Preset 设置已取消。': 'Fetching the Agent Preset settings was cancelled.',
126
+ 'Agent Preset 修改已取消。': 'The Agent Preset change was cancelled.',
127
+ '暂时无法获取 Agent Preset 列表,请稍后重试。':
128
+ 'Unable to get the Agent Preset list right now; please try again later.',
129
+ '暂时无法获取 Agent Preset 设置,请稍后重试。':
130
+ 'Unable to get the Agent Preset settings right now; please try again later.',
131
+ 'Agent Preset 修改失败,请稍后重试。': 'Failed to change the Agent Preset; please try again later.',
132
+ 'Agent Preset 命令仅支持纯文字,请移除图片后重试。':
133
+ 'Agent Preset commands support text only; please remove images and try again.',
134
+
135
+ // model-command.mjs
136
+ '用法:/model <序号> 或 /model <provider>/<model>': 'Usage: /model <index> or /model <provider>/<model>',
137
+ '用法:/models(不带参数)': 'Usage: /models (no arguments)',
138
+ '模型序号无效:{input}': 'Invalid model index: {input}',
139
+ '请发送 /models 查看并输入有效的正整数序号。':
140
+ 'Please send /models to view the list and enter a valid positive integer index.',
141
+ '可用模型:': 'Available models:',
142
+ '当前没有可用模型。': 'No models are currently available.',
143
+ '以下模型提供方暂时不可用:': 'The following model providers are temporarily unavailable:',
144
+ '切换模型:/model <序号>': 'To switch models: /model <index>',
145
+ '当前模型:': 'Current model:',
146
+ '查看全部模型:/models': 'See all models: /models',
147
+ '当前聊天还没有会话。': 'This chat has no Session yet.',
148
+ '查看模型:/models': 'View models: /models',
149
+ '选择模型:/model <序号>': 'Select a model: /model <index>',
150
+ '当前任务正在运行,请等待完成或先发送 /stop。':
151
+ 'A task is currently running; please wait for it to finish or send /stop first.',
152
+ '当前聊天绑定的会话已不存在,请重试。':
153
+ 'The Session bound to this chat no longer exists; please try again.',
154
+ '无法切换到该模型。模型当前不可用,或不支持当前会话中的图片。':
155
+ 'Cannot switch to that model. It is currently unavailable, or does not support the images in this Session.',
156
+ '当前聊天绑定的会话已发生变化,请重试。':
157
+ 'The Session bound to this chat has changed; please try again.',
158
+ '获取模型列表已取消。': 'Fetching the model list was cancelled.',
159
+ '模型切换已取消。': 'The model switch was cancelled.',
160
+ '暂时无法获取模型列表,请稍后重试。':
161
+ 'Unable to get the model list right now; please try again later.',
162
+ '模型切换失败,请稍后重试。': 'Failed to switch the model; please try again later.',
163
+ '模型命令仅支持纯文字,请移除图片后重试。':
164
+ 'Model commands support text only; please remove images and try again.',
165
+ '当前任务正在等待你的回答或审批。': 'The current task is waiting for your answer or approval.',
166
+ '请先处理当前请求,或者发送 /stop 停止任务。':
167
+ 'Please handle the current request first, or send /stop to stop the task.',
168
+ '没有找到模型:{model}': 'Model not found: {model}',
169
+ '请发送 /models 查看可用模型。': 'Please send /models to view available models.',
170
+ '模型已切换为:\n{model}\n\n后续消息将使用该模型。':
171
+ 'Model switched to:\n{model}\n\nSubsequent messages will use this model.',
172
+
173
+ // compact-command.mjs
174
+ '用法:/compact(不带参数)': 'Usage: /compact (no arguments)',
175
+ '暂无可压缩的历史记录。': 'No compactable history yet.',
176
+ '当前会话正在生成回复或执行压缩,请稍后重试。':
177
+ 'The current Session is generating a reply or compacting; please try again later.',
178
+ '上下文压缩已取消。': 'Context compaction was cancelled.',
179
+ '压缩期间会话历史发生变化,本次未修改会话,请重试。':
180
+ 'The Session history changed during compaction; the Session was not modified this time, please try again.',
181
+ '未能生成有效的压缩摘要,本次未修改会话。':
182
+ 'Could not produce a useful compaction summary; the Session was not modified this time.',
183
+ '上下文压缩未正常完成,部分会话历史可能已变化,请检查会话后再重试。':
184
+ 'Context compaction did not finish cleanly; some Session history may have changed. Please inspect the Session before retrying.',
185
+ '上下文已压缩,但会话保存失败。': 'Context was compacted, but saving the Session failed.',
186
+ '已压缩 {count} 条历史记录(约 {tokens} 个 token)。':
187
+ 'Compacted {count} history items (~{tokens} tokens).',
188
+ '上下文压缩完成。': 'Context compaction completed.',
189
+ '上下文压缩失败。': 'Context compaction failed.',
190
+ '当前聊天绑定的会话已不存在,请发送新消息开启会话。':
191
+ 'The Session bound to this chat no longer exists; please send a new message to start a Session.',
192
+ '当前会话正在生成回复,请稍后重试。':
193
+ 'The current Session is generating a reply; please try again later.',
194
+ '当前 Harness 暂不支持从机器人执行上下文压缩。':
195
+ 'The current Harness does not support running context compaction from a bot yet.',
196
+ '上下文压缩失败,请稍后重试。': 'Context compaction failed; please try again later.',
197
+ '当前机器人没有可用的会话状态。': 'This bot has no available Session state.',
198
+ '当前聊天还没有可压缩的会话,请先发送一条消息。':
199
+ 'This chat has no Session to compact yet; please send a message first.',
200
+ '当前机器人暂不支持上下文压缩。': 'This bot does not support context compaction yet.',
201
+ '当前 Harness 未注册 /compact 命令,请确认上下文压缩组件已启用。':
202
+ 'The current Harness has not registered the /compact command; please make sure the context compaction component is enabled.',
203
+
204
+ // control-command.mjs
205
+ '用法:/stop(不带参数)': 'Usage: /stop (no arguments)',
206
+ '用法:/steer <补充指令>': 'Usage: /steer <additional instruction>',
207
+ '控制命令仅支持纯文字,请移除图片后重试。':
208
+ 'Control commands support text only; please remove images and try again.',
209
+ '当前聊天没有正在运行的任务。': 'This chat has no running task.',
210
+ '已请求停止当前任务。': 'Stop requested for the current task.',
211
+ '当前聊天没有正在运行的任务,请直接发送普通消息。':
212
+ 'This chat has no running task; just send a regular message.',
213
+ '已提交补充指令,Agent 会在下一步读取。':
214
+ 'Additional instruction submitted; the Agent will read it at the next step.',
215
+ };