@xmanrui/dsh-im 2.0.1 → 2.2.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 +23 -6
- package/README.md +23 -6
- package/assets/screenshot-menu-card.png +0 -0
- package/lib/client.js +140 -7
- package/lib/index.js +240 -192
- package/package.json +1 -1
- package/plugin-src/client/i18n.js +4 -0
- package/plugin-src/client/index.js +72 -11
- package/plugin-src/client/loopback-recovery.js +75 -0
- package/plugin-src/client/styles.js +10 -0
- package/plugin-src/host/build.mjs +3 -0
- package/plugin-src/host/channels/shared/rpc.mjs +11 -0
- package/plugin-src/host/channels/weixin/production.mjs +5 -2
- package/plugin-src/host/lark-sdk-handshake-patch.mjs +181 -0
- package/src/channels/dingtalk/dingtalk-bridge.mjs +4 -2
- package/src/channels/feishu/bridge.mjs +1411 -164
- package/src/channels/feishu/feishu-cards.mjs +667 -56
- package/src/channels/feishu/feishu-runtime.mjs +129 -43
- package/src/channels/qq/qq-bridge.mjs +4 -2
- package/src/channels/shared/control-command.mjs +2 -2
- package/src/channels/shared/harness-client.mjs +31 -2
- package/src/channels/shared/i18n-en/feishu.mjs +133 -0
- package/src/channels/shared/i18n-en/shared-a.mjs +8 -0
- package/src/channels/shared/i18n-en/shared-b.mjs +43 -0
- package/src/channels/shared/model-command.mjs +413 -31
- package/src/channels/shared/text-harness-bridge.mjs +4 -2
- package/src/channels/shared/workspace-command.mjs +4 -4
- package/src/channels/wecom/wecom-bridge.mjs +4 -2
- package/src/channels/weixin/weixin-api.mjs +2 -1
- package/src/channels/weixin/weixin-bridge.mjs +6 -3
- package/src/channels/weixin/weixin-runtime.mjs +2 -2
|
@@ -134,17 +134,39 @@ export default {
|
|
|
134
134
|
|
|
135
135
|
// model-command.mjs
|
|
136
136
|
'用法:/model <序号> 或 /model <provider>/<model>': 'Usage: /model <index> or /model <provider>/<model>',
|
|
137
|
+
'用法:/model <序号或 provider/model> [推理等级ID]':
|
|
138
|
+
'Usage: /model <index or provider/model> [reasoning effort ID]',
|
|
137
139
|
'用法:/models(不带参数)': 'Usage: /models (no arguments)',
|
|
140
|
+
'用法:/reasoning [序号、等级ID或 --default]':
|
|
141
|
+
'Usage: /reasoning [index, effort ID, or --default]',
|
|
142
|
+
'用法:/reasoninglist 或 /reasonings(不带参数)':
|
|
143
|
+
'Usage: /reasoninglist or /reasonings (no arguments)',
|
|
138
144
|
'模型序号无效:{input}': 'Invalid model index: {input}',
|
|
139
145
|
'请发送 /models 查看并输入有效的正整数序号。':
|
|
140
146
|
'Please send /models to view the list and enter a valid positive integer index.',
|
|
147
|
+
'推理等级序号无效:{input}': 'Invalid reasoning effort index: {input}',
|
|
148
|
+
'请发送 /reasoninglist 查看并输入有效的正整数序号。':
|
|
149
|
+
'Please send /reasoninglist and enter a valid positive integer index.',
|
|
141
150
|
'可用模型:': 'Available models:',
|
|
151
|
+
'可用推理等级:': 'Available reasoning efforts:',
|
|
152
|
+
'可用推理等级:{efforts}': 'Available reasoning efforts: {efforts}',
|
|
142
153
|
'当前没有可用模型。': 'No models are currently available.',
|
|
143
154
|
'以下模型提供方暂时不可用:': 'The following model providers are temporarily unavailable:',
|
|
144
155
|
'切换模型:/model <序号>': 'To switch models: /model <index>',
|
|
156
|
+
'切换模型:/model <序号> [推理等级ID]':
|
|
157
|
+
'Switch model: /model <index> [reasoning effort ID]',
|
|
145
158
|
'当前模型:': 'Current model:',
|
|
159
|
+
'当前推理等级:{effort}': 'Current reasoning effort: {effort}',
|
|
160
|
+
'Default(由模型或 Provider 决定)': 'Default (determined by the model or Provider)',
|
|
161
|
+
'(当前、默认)': ' (current, default)',
|
|
162
|
+
'(默认)': ' (default)',
|
|
146
163
|
'查看全部模型:/models': 'See all models: /models',
|
|
164
|
+
'查看可用推理等级:/reasoninglist': 'See reasoning efforts: /reasoninglist',
|
|
165
|
+
'切换推理等级:/reasoning <序号或等级ID>':
|
|
166
|
+
'Switch reasoning effort: /reasoning <index or effort ID>',
|
|
167
|
+
'恢复默认等级:/reasoning --default': 'Restore the default effort: /reasoning --default',
|
|
147
168
|
'当前聊天还没有会话。': 'This chat has no Session yet.',
|
|
169
|
+
'请先发送一条普通消息创建会话。': 'Send a regular message first to create a Session.',
|
|
148
170
|
'查看模型:/models': 'View models: /models',
|
|
149
171
|
'选择模型:/model <序号>': 'Select a model: /model <index>',
|
|
150
172
|
'当前任务正在运行,请等待完成或先发送 /stop。':
|
|
@@ -153,22 +175,39 @@ export default {
|
|
|
153
175
|
'The Session bound to this chat no longer exists; please try again.',
|
|
154
176
|
'无法切换到该模型。模型当前不可用,或不支持当前会话中的图片。':
|
|
155
177
|
'Cannot switch to that model. It is currently unavailable, or does not support the images in this Session.',
|
|
178
|
+
'无法切换推理等级。当前模型或推理等级不可用。':
|
|
179
|
+
'Cannot switch the reasoning effort. The current model or effort is unavailable.',
|
|
156
180
|
'当前聊天绑定的会话已发生变化,请重试。':
|
|
157
181
|
'The Session bound to this chat has changed; please try again.',
|
|
158
182
|
'获取模型列表已取消。': 'Fetching the model list was cancelled.',
|
|
183
|
+
'获取推理等级列表已取消。': 'Fetching the reasoning effort list was cancelled.',
|
|
159
184
|
'模型切换已取消。': 'The model switch was cancelled.',
|
|
185
|
+
'推理等级切换已取消。': 'The reasoning effort switch was cancelled.',
|
|
160
186
|
'暂时无法获取模型列表,请稍后重试。':
|
|
161
187
|
'Unable to get the model list right now; please try again later.',
|
|
188
|
+
'暂时无法获取推理等级,请稍后重试。':
|
|
189
|
+
'Unable to get reasoning efforts right now; please try again later.',
|
|
162
190
|
'模型切换失败,请稍后重试。': 'Failed to switch the model; please try again later.',
|
|
191
|
+
'推理等级切换失败,请稍后重试。':
|
|
192
|
+
'Failed to switch the reasoning effort; please try again later.',
|
|
163
193
|
'模型命令仅支持纯文字,请移除图片后重试。':
|
|
164
194
|
'Model commands support text only; please remove images and try again.',
|
|
195
|
+
'模型和推理等级命令仅支持纯文字,请移除图片后重试。':
|
|
196
|
+
'Model and reasoning effort commands support text only; please remove images and try again.',
|
|
165
197
|
'当前任务正在等待你的回答或审批。': 'The current task is waiting for your answer or approval.',
|
|
166
198
|
'请先处理当前请求,或者发送 /stop 停止任务。':
|
|
167
199
|
'Please handle the current request first, or send /stop to stop the task.',
|
|
168
200
|
'没有找到模型:{model}': 'Model not found: {model}',
|
|
169
201
|
'请发送 /models 查看可用模型。': 'Please send /models to view available models.',
|
|
202
|
+
'模型不支持推理等级:{effort}': 'The model does not support reasoning effort: {effort}',
|
|
203
|
+
'该模型不提供可切换的推理等级。':
|
|
204
|
+
'This model does not provide switchable reasoning efforts.',
|
|
170
205
|
'模型已切换为:\n{model}\n\n后续消息将使用该模型。':
|
|
171
206
|
'Model switched to:\n{model}\n\nSubsequent messages will use this model.',
|
|
207
|
+
'模型已切换为:\n{model}\n推理等级:{effort}\n\n后续消息将使用该模型和推理等级。':
|
|
208
|
+
'Model switched to:\n{model}\nReasoning effort: {effort}\n\nSubsequent messages will use this model and reasoning effort.',
|
|
209
|
+
'推理等级已切换为:\n{effort}\n\n当前模型:{model}\n后续消息将使用该推理等级。':
|
|
210
|
+
'Reasoning effort switched to:\n{effort}\n\nCurrent model: {model}\nSubsequent messages will use this reasoning effort.',
|
|
172
211
|
|
|
173
212
|
// compact-command.mjs
|
|
174
213
|
'用法:/compact(不带参数)': 'Usage: /compact (no arguments)',
|
|
@@ -210,6 +249,10 @@ export default {
|
|
|
210
249
|
'已请求停止当前任务。': 'Stop requested for the current task.',
|
|
211
250
|
'当前聊天没有正在运行的任务,请直接发送普通消息。':
|
|
212
251
|
'This chat has no running task; just send a regular message.',
|
|
252
|
+
'当前聊天没有绑定会话,无法补充指令。请先绑定会话。':
|
|
253
|
+
'No session is bound to this chat, so an additional instruction cannot be given. Bind a session first.',
|
|
254
|
+
'任务已结束,没有正在运行的任务,无法补充指令。请直接发送消息开始新任务。':
|
|
255
|
+
'The task has ended and there is no running task to steer. Send a message to start a new task.',
|
|
213
256
|
'已提交补充指令,Agent 会在下一步读取。':
|
|
214
257
|
'Additional instruction submitted; the Agent will read it at the next step.',
|
|
215
258
|
};
|