@xmanrui/dsh-im 5.5.0 → 5.6.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 (50) hide show
  1. package/README.en.md +2 -2
  2. package/README.md +2 -2
  3. package/lib/client.js +309 -243
  4. package/lib/index.js +307 -307
  5. package/package.json +4 -4
  6. package/plugin-src/client/channels/dingtalk/index.js +12 -9
  7. package/plugin-src/client/channels/feishu/group-settings.js +5 -5
  8. package/plugin-src/client/channels/feishu/index.js +33 -25
  9. package/plugin-src/client/channels/qq/index.js +5 -5
  10. package/plugin-src/client/channels/shared/token-api.js +12 -7
  11. package/plugin-src/client/channels/shared/token-channel.js +18 -11
  12. package/plugin-src/client/channels/wecom/index.js +5 -5
  13. package/plugin-src/client/channels/wecom-app/index.js +3 -3
  14. package/plugin-src/client/channels/weixin/index.js +2 -2
  15. package/plugin-src/client/channels/whatsapp/index.js +6 -6
  16. package/plugin-src/client/credential-binding.js +3 -2
  17. package/plugin-src/client/delivery-settings.js +3 -3
  18. package/plugin-src/client/ds-bot-settings.js +3 -3
  19. package/plugin-src/client/global-settings.js +5 -2
  20. package/plugin-src/client/i18n-ru.js +56 -34
  21. package/plugin-src/client/i18n.js +210 -124
  22. package/scripts/verify-package.mjs +1 -1
  23. package/src/channels/dingtalk/dingtalk-bridge.mjs +1 -0
  24. package/src/channels/feishu/bridge.mjs +25 -3
  25. package/src/channels/feishu/feishu-cards.mjs +1 -45
  26. package/src/channels/feishu/slash-command-panel.mjs +2 -5
  27. package/src/channels/qq/qq-bridge.mjs +1 -0
  28. package/src/channels/shared/bot-workspace-store.mjs +1 -1
  29. package/src/channels/shared/command-catalog.mjs +8 -5
  30. package/src/channels/shared/delivery-failure-log.mjs +111 -0
  31. package/src/channels/shared/diagnostic-details.mjs +1 -0
  32. package/src/channels/shared/harness-client.mjs +12 -6
  33. package/src/channels/shared/i18n-en/shared-b.mjs +5 -0
  34. package/src/channels/shared/i18n-en/shared-c.mjs +3 -0
  35. package/src/channels/shared/i18n-en/telegram.mjs +6 -0
  36. package/src/channels/shared/i18n-ru/shared-b.mjs +5 -0
  37. package/src/channels/shared/i18n-ru/shared-c.mjs +3 -0
  38. package/src/channels/shared/i18n-ru/telegram.mjs +5 -0
  39. package/src/channels/shared/message-failure.mjs +5 -2
  40. package/src/channels/shared/session-error.mjs +8 -0
  41. package/src/channels/shared/text-harness-bridge.mjs +201 -3
  42. package/src/channels/shared/workspace-command.mjs +41 -16
  43. package/src/channels/shared/workspace-labels.mjs +65 -0
  44. package/src/channels/shared/workspace-session.mjs +24 -4
  45. package/src/channels/telegram/telegram-api.mjs +31 -2
  46. package/src/channels/telegram/telegram-bridge.mjs +58 -0
  47. package/src/channels/telegram/telegram-runtime.mjs +85 -3
  48. package/src/channels/wecom/wecom-bridge.mjs +1 -0
  49. package/src/channels/wecom-app/wecom-app-bridge.mjs +1 -0
  50. package/src/channels/weixin/weixin-bridge.mjs +1 -0
package/README.en.md CHANGED
@@ -286,8 +286,8 @@ DSH versions supporting global panels show **IM bots** in the left sidebar, usin
286
286
  | `/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
287
  | `/compact` | Immediately compact older context in the Session bound to the current chat. |
288
288
  | `/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 <workspace index or absolute path>`, `/ws <workspace index or absolute path>` | Switch the current bot's Harness workspace by `/workspacelist` index or absolute path. |
290
- | `/workspacelist`, `/workspaces`, `/wsl` | List workspace absolute paths that still exist on the current Harness Host. |
289
+ | `/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. |
290
+ | `/workspacelist`, `/workspaces`, `/wsl` | Legacy aliases of `/workspace`, equivalent to its no-argument form; native command menus keep a single workspace entry. |
291
291
  | `/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
292
  | `/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
293
  | `/session <Session ID>` | Bind the current chat to an existing Harness session. |
package/README.md CHANGED
@@ -288,8 +288,8 @@ Logo 由 dsh-im 的浏览器适配显示,无需修改 DSH。适配保留原始
288
288
  | `/repair` | 在飞书私聊中增量修复卡片回调,并补全媒体、群聊机器人 @ 消息与原生 Slash Command 面板所需的权限。 |
289
289
  | `/compact` | 立即压缩当前聊天绑定会话的较早上下文。 |
290
290
  | `/clear` | 清空当前聊天绑定会话的模型上下文,同时保留 Session 绑定和历史记录;当前 Host 未注册该命令时会明确提示未支持。 |
291
- | `/workspace <工作区序号或绝对路径>`、`/ws <工作区序号或绝对路径>` | 按 `/workspacelist` 序号或绝对路径切换当前机器人的 Harness 工作区。 |
292
- | `/workspacelist`、`/workspaces`、`/wsl` | 列出当前 Harness Host 上仍然存在的工作区绝对路径。 |
291
+ | `/workspace [工作区序号或绝对路径]`、`/ws [...]` | 查看并切换当前机器人的 Harness 工作区:不带参数时列出可切换的工作区(Telegram 上为可点击卡片,点一下即切换,原地标记当前项);带序号或绝对路径时直接切换。 |
292
+ | `/workspacelist`、`/workspaces`、`/wsl` | `/workspace` 的旧别名,等同无参数形式;原生命令菜单只保留一个工作区入口。 |
293
293
  | `/sessionlist [工作区序号或绝对路径]`、`/sessions [...]` | 两个等价命令;列出指定工作区的会话 ID 和标题,默认 IM 目录也包含其中的未分组会话;省略参数时使用当前工作区。 |
294
294
  | `/sessionlist --limit N`、`/sessions --limit N` | 列出当前工作区现有顺序中的前 N 个会话;N 必须是正整数。 |
295
295
  | `/session <Session ID>` | 将当前聊天绑定到指定的已有 Harness 会话。 |