@xmanrui/dsh-im 2.3.0 → 2.4.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.en.md +8 -3
- package/README.md +8 -3
- package/lib/client.js +95 -52
- package/lib/index.js +173 -172
- package/package.json +1 -1
- package/plugin-src/client/channels/feishu/index.js +37 -27
- package/plugin-src/client/channels/feishu/styles.js +26 -1
- package/plugin-src/client/i18n.js +27 -25
- package/src/channels/dingtalk/dingtalk-bridge.mjs +1 -0
- package/src/channels/feishu/bridge.mjs +49 -27
- package/src/channels/feishu/feishu-cards.mjs +10 -6
- package/src/channels/feishu/feishu-runtime.mjs +0 -1
- package/src/channels/feishu/message-utils.mjs +1 -1
- package/src/channels/feishu/multi-bot-controller.mjs +1 -17
- package/src/channels/feishu/repair-manager.mjs +7 -2
- package/src/channels/qq/qq-bridge.mjs +1 -0
- package/src/channels/shared/control-command.mjs +11 -1
- package/src/channels/shared/i18n-en/feishu.mjs +27 -25
- package/src/channels/shared/i18n-en/shared-a.mjs +1 -0
- package/src/channels/shared/i18n-en/shared-b.mjs +1 -0
- package/src/channels/shared/i18n-en/telegram.mjs +1 -0
- package/src/channels/shared/text-harness-bridge.mjs +1 -0
- package/src/channels/telegram/telegram-runtime.mjs +1 -0
- package/src/channels/wecom/wecom-bridge.mjs +1 -0
- package/src/channels/weixin/weixin-bridge.mjs +1 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { RegistrationManager } from './registration-manager.mjs';
|
|
2
2
|
|
|
3
3
|
export const CARD_ACTION_CALLBACK = 'card.action.trigger';
|
|
4
|
+
export const FEISHU_MESSAGE_READ_SCOPE = 'im:message:readonly';
|
|
5
|
+
export const FEISHU_RESOURCE_SCOPE = 'im:resource';
|
|
4
6
|
export const CALLBACK_REPAIR_OPERATION = 'callback_repair';
|
|
5
7
|
|
|
6
8
|
function accountsDomain(domain) {
|
|
@@ -71,8 +73,10 @@ export function assertCallbackRepairUrl(value, expectedAppId, domain = 'feishu')
|
|
|
71
73
|
/**
|
|
72
74
|
* One targeted update attempt for an existing Feishu app. It intentionally
|
|
73
75
|
* shares RegistrationManager's polling/state implementation while fixing the
|
|
74
|
-
* update manifest in one place so callers
|
|
75
|
-
*
|
|
76
|
+
* update manifest in one place so callers can add only the card callback, the
|
|
77
|
+
* message-read scope needed to download user-sent media, and the resource
|
|
78
|
+
* scope needed to upload bot-sent images/files, without adding unrelated
|
|
79
|
+
* scopes, events, presets, or createOnly.
|
|
76
80
|
*/
|
|
77
81
|
export class CallbackRepairManager {
|
|
78
82
|
#manager;
|
|
@@ -106,6 +110,7 @@ export class CallbackRepairManager {
|
|
|
106
110
|
appId: this.#appId,
|
|
107
111
|
addons: {
|
|
108
112
|
preset: false,
|
|
113
|
+
scopes: { tenant: [FEISHU_MESSAGE_READ_SCOPE, FEISHU_RESOURCE_SCOPE] },
|
|
109
114
|
callbacks: { items: [CARD_ACTION_CALLBACK] },
|
|
110
115
|
},
|
|
111
116
|
});
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { t } from './i18n.mjs';
|
|
2
|
+
import manifest from '../../../package.json' with { type: 'json' };
|
|
2
3
|
|
|
3
|
-
const CONTROL_COMMAND = /^\/(?:stop|steer)(?=$|\s)/iu;
|
|
4
|
+
const CONTROL_COMMAND = /^\/(?:stop|steer|version)(?=$|\s)/iu;
|
|
4
5
|
const STOP_COMMAND = /^\/stop(?=$|\s)/iu;
|
|
6
|
+
const VERSION_COMMAND = /^\/version(?=$|\s)/iu;
|
|
5
7
|
const STOP_USAGE = '用法:/stop(不带参数)';
|
|
8
|
+
const VERSION_USAGE = '用法:/version(不带参数)';
|
|
6
9
|
const STEER_USAGE = '用法:/steer <补充指令>';
|
|
7
10
|
const TEXT_ONLY = '控制命令仅支持纯文字,请移除图片后重试。';
|
|
8
11
|
|
|
@@ -41,9 +44,16 @@ export async function runControlCommand(text, harness, state, key, {
|
|
|
41
44
|
if (!isControlCommand(text)) return null;
|
|
42
45
|
const command = text.trim();
|
|
43
46
|
const stop = STOP_COMMAND.test(command);
|
|
47
|
+
const version = VERSION_COMMAND.test(command);
|
|
44
48
|
|
|
45
49
|
if (hasImages) return commandResult(t(TEXT_ONLY));
|
|
46
50
|
|
|
51
|
+
if (version) {
|
|
52
|
+
return /^\/version$/iu.test(command)
|
|
53
|
+
? commandResult(`dsh-im v${manifest.version}`)
|
|
54
|
+
: commandResult(t(VERSION_USAGE));
|
|
55
|
+
}
|
|
56
|
+
|
|
47
57
|
if (stop) {
|
|
48
58
|
if (!/^\/stop$/iu.test(command)) return commandResult(t(STOP_USAGE));
|
|
49
59
|
const session = boundSession(harness, state, key);
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
// feishu/bridge.mjs — welcome / help
|
|
4
4
|
'北汇星河 AIOS 已连接 DeepSeek Harness。':
|
|
5
5
|
'BeiHui XingHe AIOS is connected to DeepSeek Harness.',
|
|
6
|
-
'/repair
|
|
6
|
+
'/repair 补全飞书权限与卡片回调': '/repair Complete Feishu permissions and the card callback',
|
|
7
7
|
'/m(或 /menu) 打开交互卡片菜单': '/m (or /menu) Open the interactive card menu',
|
|
8
8
|
'/watch [Session ID 或序号] 关注会话,任务完成自动推送':
|
|
9
9
|
'/watch [Session ID or index] Watch a session; completion is pushed automatically',
|
|
@@ -18,8 +18,8 @@ export default {
|
|
|
18
18
|
'机器人正在移除或已重新接入,无法操作原会话的工作区。':
|
|
19
19
|
'The bot is being removed or has been reconnected; the original session’s workspace cannot be changed.',
|
|
20
20
|
'操作失败,请稍后重试。': 'The operation failed. Please try again later.',
|
|
21
|
-
'结果文件「{name}
|
|
22
|
-
'The result file "{name}" was generated, but the bot lacks Feishu file-upload
|
|
21
|
+
'结果文件「{name}」已生成,但机器人缺少飞书文件上传权限 im:resource。请私聊机器人执行 /repair 命令,或者在插件页面点击“补全权限”按钮并扫码。完成飞书要求的发布审批后重试。':
|
|
22
|
+
'The result file "{name}" was generated, but the bot lacks the Feishu file-upload scope im:resource. Run /repair in a direct chat with the bot, or click the “Complete permissions” button on the plugin page and scan the QR code. Complete any publishing approval Feishu requires, then try again.',
|
|
23
23
|
'结果文件「{name}」超过飞书 30 MB 上限,未发送。':
|
|
24
24
|
'The result file "{name}" exceeds the Feishu 30 MB limit and was not sent.',
|
|
25
25
|
'结果文件「{name}」为空,飞书不允许发送空文件。':
|
|
@@ -41,20 +41,20 @@ export default {
|
|
|
41
41
|
// feishu/bridge.mjs — repair flow
|
|
42
42
|
'为避免授权链接暴露,请私聊机器人发送 /repair。':
|
|
43
43
|
'To keep the authorization link private, send /repair to the bot in a direct message.',
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'此操作只能由机器人接入者在私聊中发起,未进行任何修改。':
|
|
47
|
-
'This action can only be started by the bot owner in a direct message. Nothing was changed.',
|
|
44
|
+
'无法识别当前发送者,未发起修复。':
|
|
45
|
+
'The current sender could not be identified, so repair was not started.',
|
|
48
46
|
'当前 Host 版本暂不支持聊天内修复,请先更新插件。':
|
|
49
47
|
'The current Host version does not support in-chat repair. Update the plugin first.',
|
|
50
48
|
'用法:/repair、/repair qr、/repair status、/repair cancel 或 /repair verify':
|
|
51
49
|
'Usage: /repair, /repair qr, /repair status, /repair cancel, or /repair verify',
|
|
52
50
|
'当前 Runtime 没有可恢复的修复任务记录(机器人可能刚完成密钥更新并重启)。本命令不会启动新的授权;请查看机器人发送的验证结果,确认上一次任务已结束后再发送 /repair。':
|
|
53
51
|
'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
|
|
52
|
+
'另一位用户正在修复该机器人,本次不会显示其授权信息。':
|
|
53
|
+
'Another user is repairing this bot; its authorization info will not be shown this time.',
|
|
56
54
|
'暂时无法取消修复任务,请稍后重试。':
|
|
57
55
|
'Could not cancel the repair task right now. Please try again later.',
|
|
56
|
+
'暂时无法取消旧修复任务,未生成新链接;请稍后重试。':
|
|
57
|
+
'Could not cancel the previous repair attempt, so no new link was generated. Please try again later.',
|
|
58
58
|
'暂时无法查询修复状态,请稍后重试。':
|
|
59
59
|
'Could not check the repair status right now. Please try again later.',
|
|
60
60
|
'修复流程暂时失败,现有机器人连接不受影响;请稍后发送 /repair 重试。':
|
|
@@ -69,10 +69,11 @@ export default {
|
|
|
69
69
|
'The repair status query was interrupted; the existing bot connection is unaffected. Send /repair status to retry.',
|
|
70
70
|
'链接为短期有效': 'The link is valid for a short time.',
|
|
71
71
|
'链接约 {minutes} 分钟后过期': 'The link expires in about {minutes} minutes',
|
|
72
|
-
'
|
|
73
|
-
|
|
74
|
-
'
|
|
75
|
-
|
|
72
|
+
'旧授权链接已作废,已生成新的修复链接。':
|
|
73
|
+
'The previous authorization link was invalidated and a new repair link was generated.',
|
|
74
|
+
'🔧 准备补全权限与回调。': '🔧 Preparing to complete permissions and the callback.',
|
|
75
|
+
'本次最多增量添加三项:卡片回调 card.action.trigger;飞书显示为“获取单聊、群组消息”的租户权限 im:message:readonly(用于读取用户消息中的图片或文件);以及 im:resource(用于上传机器人发送的图片或文件)。确认页只会显示当前缺少的项;若出现上述范围之外的配置,请取消。':
|
|
76
|
+
'This may incrementally add up to three items: the card callback card.action.trigger; the tenant scope im:message:readonly, shown by Feishu as “Read direct and group messages” and used to read images or files in user messages; and im:resource, used to upload images or files sent by the bot. The confirmation page shows only items the app is currently missing; cancel if anything outside this scope appears.',
|
|
76
77
|
'当前设备直接打开:': 'Open directly on this device:',
|
|
77
78
|
'若要用另一台设备扫码,发送 /repair qr。{expiry}。':
|
|
78
79
|
'To scan with another device, send /repair qr. {expiry}.',
|
|
@@ -199,8 +200,8 @@ export default {
|
|
|
199
200
|
'切换归档显示': 'Toggle archived sessions',
|
|
200
201
|
'📊 状态': '📊 Status',
|
|
201
202
|
'📖 帮助': '📖 Help',
|
|
202
|
-
'**数字兜底**\n**1**工作区列表 · **2**新会话 · **3**会话列表 · **4**状态\n**5
|
|
203
|
-
'**Number fallback**\n**1** Workspace list · **2** New session · **3** Session list · **4** Status\n**5** 🔧
|
|
203
|
+
'**数字兜底**\n**1**工作区列表 · **2**新会话 · **3**会话列表 · **4**状态\n**5**🔧补全权限 · **6**帮助':
|
|
204
|
+
'**Number fallback**\n**1** Workspace list · **2** New session · **3** Session list · **4** Status\n**5** 🔧 Complete permissions · **6** Help',
|
|
204
205
|
'跟随 Host 默认{default}': 'Follow Host default{default}',
|
|
205
206
|
'**当前**:{value}': '**Current**: {value}',
|
|
206
207
|
'**Host 默认**:{value}': '**Host default**: {value}',
|
|
@@ -228,6 +229,7 @@ export default {
|
|
|
228
229
|
'/new 开启全新会话': '/new Start a new session',
|
|
229
230
|
'📊 状态 / 压缩': '📊 Status / compact',
|
|
230
231
|
'/status 连接状态': '/status Connection status',
|
|
232
|
+
'`/version` — 查看插件版本': '`/version` — show the plugin version',
|
|
231
233
|
'/compact 压缩当前会话上下文': '/compact Compact the current session context',
|
|
232
234
|
'/archived on/off 会话列表显示/隐藏归档': '/archived on/off Show/hide archived sessions',
|
|
233
235
|
'👁 关注': '👁 Watches',
|
|
@@ -241,10 +243,10 @@ export default {
|
|
|
241
243
|
'/steer 指令 给 Agent 补充指令': '/steer INSTRUCTION Steer the Agent',
|
|
242
244
|
'**📋 卡片功能**\n\n1. 会话下拉 — 切换当前绑定会话\n2. 工作区下拉 — 切换工作区\n3. 🤖 预设下拉 — 切换 Agent 预设\n4. 🧠 模型下拉 — 切换模型\n5. 🆕 新会话 — 开启全新会话\n6. 📋 会话/关注 — 查看/绑定会话,管理关注\n7. ⏹ 停止 — 停止当前任务\n8. 📐 压缩 — 压缩当前会话上下文\n9. 补充指令 — 给 Agent 发送指令\n10. 🗄 归档切换 — 显示/隐藏归档会话\n11. 📊 状态 — 查看系统连接状态\n12. 📖 帮助 — 查看本帮助':
|
|
243
245
|
'**📋 Card features**\n\n1. Session dropdown — switch the bound session\n2. Workspace dropdown — switch workspace\n3. 🤖 Preset dropdown — switch Agent Preset\n4. 🧠 Model dropdown — switch model\n5. 🆕 New session — start fresh\n6. 📋 Sessions/watches — view or bind sessions and manage watches\n7. ⏹ Stop — stop the current task\n8. 📐 Compact — compact the current session context\n9. Steer task — send an instruction to the Agent\n10. 🗄 Archived toggle — show or hide archived sessions\n11. 📊 Status — view connection status\n12. 📖 Help — view this help',
|
|
244
|
-
'**⌨️ 文本命令**\n\n`/m` — 打开菜单卡片\n`/new` — 开启全新会话\n`/session ID` — 绑定已有会话\n`/sessionlist [工作区]` — 列出会话\n`/workspace 路径` — 切换工作区\n`/workspacelist` — 列出工作区\n`/status` — 查看连接状态\n`/compact` — 压缩上下文\n`/stop` — 停止当前任务\n`/steer 指令` — 补充指令\n`/watch ID` — 关注会话\n`/watchlist` — 关注列表\n`/unwatch ID` — 取消关注\n`/archived on/off` — 归档显隐\n`/presetlist` — 列出预设\n`/preset [序号/ID]` — 切换预设\n`/preset --default` — 跟随默认\n`/models` — 列出模型\n`/reasoninglist` 或 `/reasonings` — 按序号列出当前模型可用推理等级\n`/reasoning [序号、等级ID或 --default]` — 查看或切换当前推理等级\n`/model [序号或完整模型ID] [推理等级ID]` — 查看或切换当前会话模型\n`/batch` — 开启批量输入(仅私聊,最多 10 条文字)\n`/send` — 提交当前批次\n`/cancel` — 取消当前批次\n`/repair` —
|
|
245
|
-
'**⌨️ Text commands**\n\n`/m` — open the menu card\n`/new` — start a new session\n`/session ID` — bind an existing session\n`/sessionlist [workspace]` — list sessions\n`/workspace PATH` — switch workspace\n`/workspacelist` — list workspaces\n`/status` — view connection status\n`/compact` — compact context\n`/stop` — stop the current task\n`/steer INSTRUCTION` — steer the task\n`/watch ID` — watch a session\n`/watchlist` — list watched sessions\n`/unwatch ID` — stop watching\n`/archived on/off` — show or hide archived sessions\n`/presetlist` — list presets\n`/preset [index/ID]` — switch preset\n`/preset --default` — follow default\n`/models` — list models\n`/reasoninglist` or `/reasonings` — list reasoning efforts for the current model\n`/reasoning [index, effort ID, or --default]` — show or switch reasoning effort\n`/model [index or full model ID] [reasoning effort ID]` — show or switch the current Session model\n`/batch` — start batch input (direct messages only, up to 10 text messages)\n`/send` — submit the current batch\n`/cancel` — cancel the current batch\n`/repair` —
|
|
246
|
-
'**💡 数字兜底**\n回复数字快速操作:\n**1**工作区列表 · **2**新会话 · **3**会话/关注\n**4**状态 · **5
|
|
247
|
-
'**💡 Number fallback**\nReply with a number for a quick action:\n**1** Workspace list · **2** New session · **3** Sessions/watches\n**4** Status · **5**
|
|
246
|
+
'**⌨️ 文本命令**\n\n`/m` — 打开菜单卡片\n`/new` — 开启全新会话\n`/session ID` — 绑定已有会话\n`/sessionlist [工作区]` — 列出会话\n`/workspace 路径` — 切换工作区\n`/workspacelist` — 列出工作区\n`/status` — 查看连接状态\n`/compact` — 压缩上下文\n`/stop` — 停止当前任务\n`/steer 指令` — 补充指令\n`/watch ID` — 关注会话\n`/watchlist` — 关注列表\n`/unwatch ID` — 取消关注\n`/archived on/off` — 归档显隐\n`/presetlist` — 列出预设\n`/preset [序号/ID]` — 切换预设\n`/preset --default` — 跟随默认\n`/models` — 列出模型\n`/reasoninglist` 或 `/reasonings` — 按序号列出当前模型可用推理等级\n`/reasoning [序号、等级ID或 --default]` — 查看或切换当前推理等级\n`/model [序号或完整模型ID] [推理等级ID]` — 查看或切换当前会话模型\n`/batch` — 开启批量输入(仅私聊,最多 10 条文字)\n`/send` — 提交当前批次\n`/cancel` — 取消当前批次\n`/repair` — 补全飞书权限与卡片回调':
|
|
247
|
+
'**⌨️ Text commands**\n\n`/m` — open the menu card\n`/new` — start a new session\n`/session ID` — bind an existing session\n`/sessionlist [workspace]` — list sessions\n`/workspace PATH` — switch workspace\n`/workspacelist` — list workspaces\n`/status` — view connection status\n`/compact` — compact context\n`/stop` — stop the current task\n`/steer INSTRUCTION` — steer the task\n`/watch ID` — watch a session\n`/watchlist` — list watched sessions\n`/unwatch ID` — stop watching\n`/archived on/off` — show or hide archived sessions\n`/presetlist` — list presets\n`/preset [index/ID]` — switch preset\n`/preset --default` — follow default\n`/models` — list models\n`/reasoninglist` or `/reasonings` — list reasoning efforts for the current model\n`/reasoning [index, effort ID, or --default]` — show or switch reasoning effort\n`/model [index or full model ID] [reasoning effort ID]` — show or switch the current Session model\n`/batch` — start batch input (direct messages only, up to 10 text messages)\n`/send` — submit the current batch\n`/cancel` — cancel the current batch\n`/repair` — complete Feishu permissions and the card callback',
|
|
248
|
+
'**💡 数字兜底**\n回复数字快速操作:\n**1**工作区列表 · **2**新会话 · **3**会话/关注\n**4**状态 · **5**补全权限 · **6**帮助':
|
|
249
|
+
'**💡 Number fallback**\nReply with a number for a quick action:\n**1** Workspace list · **2** New session · **3** Sessions/watches\n**4** Status · **5** Complete permissions · **6** Help',
|
|
248
250
|
'从下方下拉选择补充指令;最后一项可自定义输入。':
|
|
249
251
|
'Choose an instruction below; the last option lets you enter a custom one.',
|
|
250
252
|
'当前没有绑定会话,请先绑定会话再补充指令。':
|
|
@@ -262,8 +264,8 @@ export default {
|
|
|
262
264
|
'3 · 新会话': '3 · New session',
|
|
263
265
|
'4 · 状态': '4 · Status',
|
|
264
266
|
'5 · 帮助': '5 · Help',
|
|
265
|
-
'**6 ·
|
|
266
|
-
'**6 ·
|
|
267
|
+
'**6 · 补全权限**(请直接回复数字 **6**)':
|
|
268
|
+
'**6 · Complete permissions** (reply with the number **6**)',
|
|
267
269
|
'7 · 关注列表': '7 · Watch list',
|
|
268
270
|
'🧪 验证卡片按钮': '🧪 Verify card buttons',
|
|
269
271
|
'授权已提交。请点击下方按钮;机器人真实收到回调后才会判定修复成功。':
|
|
@@ -290,8 +292,8 @@ export default {
|
|
|
290
292
|
'3 · /new 开启新会话': '3 · /new Start a new session',
|
|
291
293
|
'4 · /status 连接状态': '4 · /status Connection status',
|
|
292
294
|
'5 · /help 本帮助': '5 · /help This help',
|
|
293
|
-
'6 · /repair
|
|
294
|
-
'6 · /repair
|
|
295
|
+
'6 · /repair 补全权限与回调(请回复数字 6)':
|
|
296
|
+
'6 · /repair Complete permissions and callback (reply with the number 6)',
|
|
295
297
|
'7 · /watchlist 关注列表': '7 · /watchlist Watch list',
|
|
296
298
|
'直接发送文字/图片即继续当前会话。':
|
|
297
299
|
'Send text or an image directly to continue the current session.',
|
|
@@ -336,8 +338,8 @@ export default {
|
|
|
336
338
|
'飞书机器人': 'Feishu bot',
|
|
337
339
|
|
|
338
340
|
// feishu/message-utils.mjs
|
|
339
|
-
'
|
|
340
|
-
'The Feishu bot is missing image-read
|
|
341
|
+
'飞书机器人缺少图片读取权限 im:message:readonly(飞书显示为“获取单聊、群组消息”)。请私聊机器人执行 /repair 命令,或者在插件页面点击“补全权限”按钮并扫码。按飞书提示发布新版本、完成必要审批后,再重新发送图片。':
|
|
342
|
+
'The Feishu bot is missing the image-read scope im:message:readonly, shown by Feishu as “Read direct and group messages.” Run /repair in a direct chat with the bot, or click the “Complete permissions” button on the plugin page and scan the QR code. Publish a new version and complete any approval requested by Feishu, then resend the image.',
|
|
341
343
|
|
|
342
344
|
// feishu/feishu-runtime.mjs — callback probe notices
|
|
343
345
|
'✅ 修复完成:已实测收到 card.action.trigger,菜单按钮现在可用。':
|
|
@@ -69,6 +69,7 @@ export default {
|
|
|
69
69
|
'/stop 停止当前任务': '/stop Stop the current task',
|
|
70
70
|
'/steer 补充指令 纠偏当前任务': '/steer <additional instruction> Steer the current task',
|
|
71
71
|
'/status 检查连接状态': '/status Check the connection status',
|
|
72
|
+
'/version 查看插件版本': '/version Show the plugin version',
|
|
72
73
|
'/help 显示本帮助': '/help Show this help',
|
|
73
74
|
'{label}机器人与 DeepSeek Harness 连接正常。':
|
|
74
75
|
'The {label} bot is connected to DeepSeek Harness and working normally.',
|
|
@@ -242,6 +242,7 @@ export default {
|
|
|
242
242
|
|
|
243
243
|
// control-command.mjs
|
|
244
244
|
'用法:/stop(不带参数)': 'Usage: /stop (no arguments)',
|
|
245
|
+
'用法:/version(不带参数)': 'Usage: /version (no arguments)',
|
|
245
246
|
'用法:/steer <补充指令>': 'Usage: /steer <additional instruction>',
|
|
246
247
|
'控制命令仅支持纯文字,请移除图片后重试。':
|
|
247
248
|
'Control commands support text only; please remove images and try again.',
|
|
@@ -13,6 +13,7 @@ export default {
|
|
|
13
13
|
'停止当前任务': 'Stop the current task',
|
|
14
14
|
'纠偏当前任务': 'Steer the current task',
|
|
15
15
|
'检查连接状态': 'Check connection status',
|
|
16
|
+
'查看插件版本': 'Show plugin version',
|
|
16
17
|
'显示帮助': 'Show help',
|
|
17
18
|
'该 Telegram 机器人已配置 Webhook,请先在原服务中移除 Webhook 后重试。':
|
|
18
19
|
'This Telegram bot already has a Webhook configured. Remove the Webhook from the original service and try again.',
|
|
@@ -32,6 +32,7 @@ export const TELEGRAM_COMMAND_MENU = Object.freeze([
|
|
|
32
32
|
{ command: 'send', description: '提交当前批次' },
|
|
33
33
|
{ command: 'cancel', description: '取消当前批次' },
|
|
34
34
|
{ command: 'status', description: '检查连接状态' },
|
|
35
|
+
{ command: 'version', description: '查看插件版本' },
|
|
35
36
|
{ command: 'help', description: '显示帮助' },
|
|
36
37
|
]);
|
|
37
38
|
|