@xmanrui/dsh-im 5.5.0 → 5.7.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 +24 -8
- package/README.md +24 -8
- package/assets/sponsors/88api.jpg +0 -0
- package/lib/client.js +328 -243
- package/lib/index.js +317 -317
- package/package.json +4 -4
- package/plugin-src/client/channels/dingtalk/index.js +12 -9
- package/plugin-src/client/channels/feishu/group-settings.js +5 -5
- package/plugin-src/client/channels/feishu/index.js +33 -25
- package/plugin-src/client/channels/qq/index.js +5 -5
- package/plugin-src/client/channels/shared/token-api.js +12 -7
- package/plugin-src/client/channels/shared/token-channel.js +18 -11
- package/plugin-src/client/channels/wecom/index.js +5 -5
- package/plugin-src/client/channels/wecom-app/index.js +3 -3
- package/plugin-src/client/channels/weixin/index.js +2 -2
- package/plugin-src/client/channels/whatsapp/index.js +6 -6
- package/plugin-src/client/credential-binding.js +3 -2
- package/plugin-src/client/delivery-settings.js +12 -3
- package/plugin-src/client/ds-bot-settings.js +3 -3
- package/plugin-src/client/global-settings.js +5 -2
- package/plugin-src/client/i18n-ru.js +57 -34
- package/plugin-src/client/i18n.js +211 -124
- package/plugin-src/client/session-channel-logos.js +8 -0
- package/plugin-src/host/delivery-suggestions.mjs +2 -0
- package/plugin-src/host/update-service.mjs +44 -13
- package/scripts/verify-package.mjs +1 -1
- package/src/channels/dingtalk/dingtalk-bridge.mjs +1 -0
- package/src/channels/feishu/bridge.mjs +25 -3
- package/src/channels/feishu/feishu-cards.mjs +1 -45
- package/src/channels/feishu/feishu-runtime.mjs +13 -1
- package/src/channels/feishu/slash-command-panel.mjs +2 -5
- package/src/channels/qq/markdown-reply.mjs +5 -2
- package/src/channels/qq/qq-bridge.mjs +42 -2
- package/src/channels/shared/bot-workspace-store.mjs +1 -1
- package/src/channels/shared/command-catalog.mjs +8 -5
- package/src/channels/shared/delivery-failure-log.mjs +111 -0
- package/src/channels/shared/diagnostic-details.mjs +1 -0
- package/src/channels/shared/harness-client.mjs +12 -6
- package/src/channels/shared/i18n-en/shared-b.mjs +5 -0
- package/src/channels/shared/i18n-en/shared-c.mjs +3 -0
- package/src/channels/shared/i18n-en/telegram.mjs +6 -0
- package/src/channels/shared/i18n-ru/shared-b.mjs +5 -0
- package/src/channels/shared/i18n-ru/shared-c.mjs +3 -0
- package/src/channels/shared/i18n-ru/telegram.mjs +5 -0
- package/src/channels/shared/message-failure.mjs +5 -2
- package/src/channels/shared/session-error.mjs +8 -0
- package/src/channels/shared/text-harness-bridge.mjs +201 -3
- package/src/channels/shared/workspace-command.mjs +41 -16
- package/src/channels/shared/workspace-labels.mjs +65 -0
- package/src/channels/shared/workspace-session.mjs +24 -4
- package/src/channels/slack/slack-api.mjs +21 -5
- package/src/channels/slack/slack-runtime.mjs +69 -20
- package/src/channels/telegram/telegram-api.mjs +31 -2
- package/src/channels/telegram/telegram-bridge.mjs +58 -0
- package/src/channels/telegram/telegram-runtime.mjs +85 -3
- package/src/channels/wecom/wecom-bridge.mjs +1 -0
- package/src/channels/wecom/wecom-controller.mjs +89 -1
- package/src/channels/wecom-app/wecom-app-bridge.mjs +1 -0
- package/src/channels/weixin/weixin-bridge.mjs +1 -0
package/README.en.md
CHANGED
|
@@ -44,14 +44,30 @@
|
|
|
44
44
|
|
|
45
45
|
---
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
## ❤️ Sponsors
|
|
48
48
|
|
|
49
|
-
>
|
|
50
|
-
>
|
|
51
|
-
>
|
|
52
|
-
|
|
49
|
+
<table width="100%">
|
|
50
|
+
<tr>
|
|
51
|
+
<td width="180" align="center" valign="middle">
|
|
52
|
+
<a href="https://88api.ai/sign-up?aff=lJoL"><img src="assets/sponsors/88api.jpg" alt="88API Token Aggregation Platform" width="150"></a>
|
|
53
|
+
</td>
|
|
54
|
+
<td valign="middle">
|
|
55
|
+
<a href="https://88api.ai/sign-up?aff=lJoL"><strong>88API Token Aggregation Platform</strong></a> sponsors this project! Operated by a Hong Kong company, 88API is an all-in-one, multi-model API platform for developers, creators, and AI application users. Its unified interface connects text, image, speech, and video models for workflows including AI coding, translation, content creation, voiceovers, image generation, and video generation. It offers high-quality, discounted access to official DeepSeek inference services and self-hosted DeepSeek inference on its own B300 clusters. It supports major international payment methods, provides invoices, and offers enterprise-grade reliable service. <a href="https://88api.ai/sign-up?aff=lJoL"><strong>Sign up through this link to receive exclusive bonus credits!</strong></a>
|
|
56
|
+
</td>
|
|
57
|
+
</tr>
|
|
58
|
+
<tr>
|
|
59
|
+
<td width="180" align="center" valign="middle">
|
|
60
|
+
<a id="recognition"></a>
|
|
61
|
+
<a href="https://github.com/deepseek-ai/deepseek-harness"><strong>DeepSeek<br>Harness</strong></a>
|
|
62
|
+
</td>
|
|
63
|
+
<td valign="middle">
|
|
64
|
+
<strong>DSH-IM has received official sponsorship from <a href="https://github.com/deepseek-ai/deepseek-harness">DeepSeek Harness</a> in the form of token credits</strong>. Thank you to the DeepSeek Harness team for supporting this project!
|
|
65
|
+
<p>This project is independently developed and maintained by community developers.</p>
|
|
66
|
+
</td>
|
|
67
|
+
</tr>
|
|
68
|
+
</table>
|
|
53
69
|
|
|
54
|
-
|
|
70
|
+
---
|
|
55
71
|
|
|
56
72
|
> [!IMPORTANT]
|
|
57
73
|
> **Install using the full package name: `@xmanrui/dsh-im`**
|
|
@@ -286,8 +302,8 @@ DSH versions supporting global panels show **IM bots** in the left sidebar, usin
|
|
|
286
302
|
| `/repair` | In a Feishu direct chat, incrementally repair the card callback and permissions required for media, group bot mentions, and the native Slash Command panel. |
|
|
287
303
|
| `/compact` | Immediately compact older context in the Session bound to the current chat. |
|
|
288
304
|
| `/clear` | Clear the model context in the Session bound to the current chat while retaining its Session binding and history; report explicitly when the current Host does not support the command. |
|
|
289
|
-
| `/workspace
|
|
290
|
-
| `/workspacelist`, `/workspaces`, `/wsl` |
|
|
305
|
+
| `/workspace [workspace index or absolute path]`, `/ws [...]` | View and switch the current bot's Harness workspace: without an argument it lists switchable workspaces (a tappable card on Telegram — one tap switches and the current entry is re-marked in place); an index or absolute path switches directly. |
|
|
306
|
+
| `/workspacelist`, `/workspaces`, `/wsl` | Legacy aliases of `/workspace`, equivalent to its no-argument form; native command menus keep a single workspace entry. |
|
|
291
307
|
| `/sessionlist [workspace number or absolute path]`, `/sessions [...]` | Equivalent aliases that list session IDs and titles in the selected workspace, including ungrouped sessions in the default IM directory; omit the argument to use the current workspace. |
|
|
292
308
|
| `/sessionlist --limit N`, `/sessions --limit N` | List the first N sessions in the current workspace's existing order; N must be a positive integer. |
|
|
293
309
|
| `/session <Session ID>` | Bind the current chat to an existing Harness session. |
|
package/README.md
CHANGED
|
@@ -45,14 +45,30 @@
|
|
|
45
45
|
|
|
46
46
|
---
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
## ❤️ 赞助商
|
|
49
49
|
|
|
50
|
-
>
|
|
51
|
-
>
|
|
52
|
-
>
|
|
53
|
-
>
|
|
50
|
+
<table width="100%">
|
|
51
|
+
<tr>
|
|
52
|
+
<td width="180" align="center" valign="middle">
|
|
53
|
+
<a href="https://88api.ai/sign-up?aff=lJoL"><img src="assets/sponsors/88api.jpg" alt="88API Token聚合平台" width="150"></a>
|
|
54
|
+
</td>
|
|
55
|
+
<td valign="middle">
|
|
56
|
+
<a href="https://88api.ai/sign-up?aff=lJoL"><strong>88API Token聚合平台</strong></a>赞助了本项目!88API 是一家由香港企业运营并且主要面向开发者、创作者与 AI 应用用户的一站式多模型 API 平台,通过统一接口接入文本、图片、语音和视频模型,覆盖 AI 编程、智能翻译、内容创作、配音、图像生成、视频生成等常见工作流。可提供高质量的折扣Deepseek官转算力和自有B300集群自部署Deepseek算力;支持国际主流付款方式,可提供发票,提供企业级稳定服务。<a href="https://88api.ai/sign-up?aff=lJoL"><strong>通过此链接注册可以获取专属赠送额度!</strong></a>
|
|
57
|
+
</td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td width="180" align="center" valign="middle">
|
|
61
|
+
<a id="recognition"></a>
|
|
62
|
+
<a href="https://github.com/deepseek-ai/deepseek-harness"><strong>DeepSeek<br>Harness</strong></a>
|
|
63
|
+
</td>
|
|
64
|
+
<td valign="middle">
|
|
65
|
+
<strong>DSH-IM 已获得 <a href="https://github.com/deepseek-ai/deepseek-harness">DeepSeek Harness</a> 官方 Token 赞助</strong>。感谢官方对本项目的支持!
|
|
66
|
+
<p>本项目由社区开发者独立开发与维护。</p>
|
|
67
|
+
</td>
|
|
68
|
+
</tr>
|
|
69
|
+
</table>
|
|
54
70
|
|
|
55
|
-
|
|
71
|
+
---
|
|
56
72
|
|
|
57
73
|
> [!IMPORTANT]
|
|
58
74
|
> **安装请认准完整包名:`@xmanrui/dsh-im`**
|
|
@@ -288,8 +304,8 @@ Logo 由 dsh-im 的浏览器适配显示,无需修改 DSH。适配保留原始
|
|
|
288
304
|
| `/repair` | 在飞书私聊中增量修复卡片回调,并补全媒体、群聊机器人 @ 消息与原生 Slash Command 面板所需的权限。 |
|
|
289
305
|
| `/compact` | 立即压缩当前聊天绑定会话的较早上下文。 |
|
|
290
306
|
| `/clear` | 清空当前聊天绑定会话的模型上下文,同时保留 Session 绑定和历史记录;当前 Host 未注册该命令时会明确提示未支持。 |
|
|
291
|
-
| `/workspace
|
|
292
|
-
| `/workspacelist`、`/workspaces`、`/wsl` |
|
|
307
|
+
| `/workspace [工作区序号或绝对路径]`、`/ws [...]` | 查看并切换当前机器人的 Harness 工作区:不带参数时列出可切换的工作区(Telegram 上为可点击卡片,点一下即切换,原地标记当前项);带序号或绝对路径时直接切换。 |
|
|
308
|
+
| `/workspacelist`、`/workspaces`、`/wsl` | `/workspace` 的旧别名,等同无参数形式;原生命令菜单只保留一个工作区入口。 |
|
|
293
309
|
| `/sessionlist [工作区序号或绝对路径]`、`/sessions [...]` | 两个等价命令;列出指定工作区的会话 ID 和标题,默认 IM 目录也包含其中的未分组会话;省略参数时使用当前工作区。 |
|
|
294
310
|
| `/sessionlist --limit N`、`/sessions --limit N` | 列出当前工作区现有顺序中的前 N 个会话;N 必须是正整数。 |
|
|
295
311
|
| `/session <Session ID>` | 将当前聊天绑定到指定的已有 Harness 会话。 |
|
|
Binary file
|