@michengai/dsh-im-connect 0.1.77 → 1.0.1
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/CHANGELOG.md +21 -0
- package/CHANGELOG.zh-CN.md +21 -0
- package/README.md +7 -7
- package/README.zh-CN.md +7 -7
- package/client.js +760 -122
- package/lib/channels/feishu.d.ts.map +1 -1
- package/lib/channels/feishu.js +2 -1
- package/lib/channels/feishu.js.map +1 -1
- package/lib/channels/meta.d.ts.map +1 -1
- package/lib/channels/meta.js +10 -4
- package/lib/channels/meta.js.map +1 -1
- package/lib/client.js +792 -355
- package/lib/engine/file-delivery.js +1 -1
- package/lib/engine/file-delivery.js.map +1 -1
- package/lib/plugin-updater.d.ts +3 -0
- package/lib/plugin-updater.d.ts.map +1 -1
- package/lib/plugin-updater.js +188 -3
- package/lib/plugin-updater.js.map +1 -1
- package/package.json +16 -16
- package/src/channels/feishu.ts +2 -1
- package/src/channels/meta.ts +10 -4
- package/src/engine/file-delivery.ts +1 -1
- package/src/plugin-update-ui.js +32 -13
- package/src/plugin-updater.ts +162 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.1 - 2026-10-18
|
|
4
|
+
|
|
5
|
+
- Upgrade Feishu normal reply cards to Interactive Card Schema 2.0 (`schema: "2.0"` + `body.elements`), fixing Markdown table rendering issues on modern Feishu clients. Interactive question choices and status patch updates retain Schema 1.0 structure for compatibility with existing card instances.
|
|
6
|
+
- Align select dropdown menu width dynamically with the trigger button across responsive viewport resize events.
|
|
7
|
+
- Align modal confirmation dialogs for destructive actions (e.g., account removal) strictly with host danger button specifications (`variant="outline"`, red border and text, red hover background).
|
|
8
|
+
- Revert modal bottom inspector action buttons to host default medium size (`md`, 36px height) to match Skills Manager layout standards.
|
|
9
|
+
- Add CSS rule for `.ima-tag-info` to ensure info-state tags (such as official model checkpoint badges) render with the correct theme primary color instead of neutral gray.
|
|
10
|
+
- Feishu and Lark can now be bound with a self-built bot's App ID / App Secret in addition to the existing QR flow. The App Secret is stored in the credential vault instead of the channel config file.
|
|
11
|
+
|
|
12
|
+
## 1.0.0 - 2026-10-17
|
|
13
|
+
|
|
14
|
+
- Supported hosts now match the skills plugin: DeepSeek Harness `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`, and `0.2.1-rc.2`. Hosts `0.2.1-alpha.1` through `0.2.1-alpha.5`, and anything before `0.2.0`, are refused by the version gate, so the plugin will not run; existing IM settings in the profile are not deleted. If you still use a `0.1.x` host, install plugin `0.1.78` instead of `@latest`. This is not “every release after `0.2.0`”: stable `0.2.0` and any prerelease outside this list are refused too.
|
|
15
|
+
- Widen channel binding and account settings dialogs to `720px`, aligning with Automation to prevent cramped form layouts.
|
|
16
|
+
- Add footer action to workspace select dropdown with a divider. Adding workspaces now strictly uses the host native system directory picker without manual path inputs, automatically creating and selecting the picked workspace. Hosts without native picker capabilities show "This Host cannot create workspaces" (upgrade to one of the supported host releases listed in Requirements, or add via the host sidebar).
|
|
17
|
+
- Top action buttons ("GitHub", "Issues", "Check for updates") now strictly match Skills Manager's host outline small button styles and icon layouts, removing custom size and color overrides from update button.
|
|
18
|
+
|
|
19
|
+
## 0.1.78 - 2026-10-17
|
|
20
|
+
|
|
21
|
+
- Support DSH `0.2.1-alpha.4` and `0.2.1-alpha.5` while retaining all existing supported versions; pin development `@deepseek-ai/dsh*` dependencies to host `0.2.1-alpha.5`. Cordis stays at `4.0.5-alpha.2`.
|
|
22
|
+
- No production plugin API breaks. Declared host packages have no removed or renamed exports from `0.2.1-alpha.3` to `0.2.1-alpha.5`. Peer still includes `0.1.2-rc.1` and the `0.1.5` release candidates, so the older icon, slot, session-open, and file-read paths stay.
|
|
23
|
+
|
|
3
24
|
## 0.1.77 - 2026-10-15
|
|
4
25
|
|
|
5
26
|
- Fix duplicated question option lists in native-button prompts for WeCom, Feishu/Lark, DingTalk, Telegram, Discord, and Slack. Keep option descriptions, multi-select checkmarks and submission buttons, ordinary menus, approvals, and text fallback intact.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -4,6 +4,27 @@
|
|
|
4
4
|
|
|
5
5
|
以下记录近期发布的版本。Git 标签与 GitHub Release 现已和这些条目同步;历史条目继续保留原始发布提交链接。
|
|
6
6
|
|
|
7
|
+
## 1.0.1 - 2026-10-18
|
|
8
|
+
|
|
9
|
+
- 飞书普通回复卡片升级为卡片 Schema 2.0(`schema: "2.0"` + `body.elements`),解决新版飞书客户端 Markdown 表格无法解析渲染的问题;交互选项卡片与状态更新保留 Schema 1.0 顶层结构以确保对既有卡片更新的完全兼容。
|
|
10
|
+
- 下拉选择菜单宽度与触发器按钮保持动态同步,支持在视口缩放(resize)时实时重算。
|
|
11
|
+
- 模态弹窗破坏性操作二次确认按钮(如「移除接入」)完全对齐宿主规范(`variant="outline"` 红色边框、字色与悬停背景)。
|
|
12
|
+
- 模态弹窗底部检查器操作按钮回归宿主标准中号(`md`,高度 36px),完全对齐技能管理布局规范。
|
|
13
|
+
- 补充 `.ima-tag-info` 样式规则,确保 info 态标签(如官方模型检查点徽标)正常呈现主题主色而非默认中性灰。
|
|
14
|
+
- 飞书与 Lark 除扫码外,现支持手动填写自建机器人的 App ID / App Secret 完成绑定;App Secret 存入凭据库,不写入渠道配置文件。
|
|
15
|
+
|
|
16
|
+
## 1.0.0 - 2026-10-17
|
|
17
|
+
|
|
18
|
+
- 支持的宿主改为与技能插件相同的 DeepSeek Harness `0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1`、`0.2.1-rc.2`。`0.2.1-alpha.1` 到 `0.2.1-alpha.5`,以及 `0.2.0` 之前的宿主,都会被版本门拒绝,插件不会运行;profile 里已有的 IM 配置不会被删除。仍在使用 `0.1.x` 的,请安装插件 `0.1.78`,不要装 `@latest`。这不是「`0.2.0` 以后全部接受」:正式版 `0.2.0` 和清单之外的预发布版同样会被拒绝。
|
|
19
|
+
- 绑定渠道与账号设置弹窗宽度对齐定时任务拓宽至 `720px`,解决宿主默认弹窗过窄拥挤的问题。
|
|
20
|
+
- 工作区下拉选择器支持底部分割线与「添加工作区…」footer 项;新增工作区彻底禁止手输路径,统一调起宿主原生系统文件选择器,选定后自动创建并选中;在未暴露原生选择器的旧宿主或环境上明确提示「当前 Host 无法新增工作区」(请升级到「环境要求」中列出的受支持宿主版本,或通过宿主侧栏新增)。
|
|
21
|
+
- 顶部「GitHub」、「问题反馈」和「检查更新」三个操作按钮完全对齐技能插件的宿主 outline 小按钮样式与图标排版,移除检查更新按钮多余的私有尺寸与字色覆盖。
|
|
22
|
+
|
|
23
|
+
## 0.1.78 - 2026-10-17
|
|
24
|
+
|
|
25
|
+
- 支持 DSH `0.2.1-alpha.4` 和 `0.2.1-alpha.5`,继续兼容既有已支持版本;开发依赖中的 `@deepseek-ai/dsh*` 对齐宿主 `0.2.1-alpha.5`,Cordis 仍为 `4.0.5-alpha.2`。
|
|
26
|
+
- 本版无生产插件 API 破坏。`0.2.1-alpha.3` 到 `0.2.1-alpha.5` 的已声明宿主包没有导出删除或改名。peer 仍包含 `0.1.2-rc.1` 与 `0.1.5` 候选版,图标名、槽位、会话打开和文件读取的旧路径不能删除。
|
|
27
|
+
|
|
7
28
|
## 0.1.77 - 2026-10-15
|
|
8
29
|
|
|
9
30
|
- 修复企业微信、飞书/Lark、钉钉、Telegram、Discord、Slack 原生按钮提问的选项列表重复;保留选项描述、多选勾选状态与提交按钮,普通菜单、审批和文字回退行为不变。
|
package/README.md
CHANGED
|
@@ -66,8 +66,8 @@ WeChat is QR-only and DM-only, so the same WeChat account that scanned can talk
|
|
|
66
66
|
| Channel | Status | How to connect | You need |
|
|
67
67
|
|---|---|---|---|
|
|
68
68
|
| 🔔 **DingTalk** | ✅ Ready | QR, or Client ID / Secret | DingTalk open-platform bot; replies prefer AI Card |
|
|
69
|
-
| 🐦 **Feishu** | ✅ Ready | QR
|
|
70
|
-
| 🌐 **Lark** | ✅ Ready | QR
|
|
69
|
+
| 🐦 **Feishu** | ✅ Ready | QR, or App ID / App Secret; QR creates the bot automatically | Feishu account, or a self-built bot with App ID / Secret |
|
|
70
|
+
| 🌐 **Lark** | ✅ Ready | QR, or App ID / App Secret | Lark account, or a self-built bot with App ID / Secret |
|
|
71
71
|
| 💬 **WeChat** | ✅ Ready* | Official iLink QR | Dedicated account recommended; DM only |
|
|
72
72
|
| 🏢 **WeCom** | ✅ Ready | QR (recommended), or Bot ID / Secret | WeCom intelligent bot |
|
|
73
73
|
| 🐧 **QQ** | ✅ Ready | QR, or AppID / AppSecret | QQ Open Platform bot, not a personal QQ account |
|
|
@@ -93,7 +93,7 @@ The receive paths cover WeChat, WeCom, DingTalk, Feishu, Lark, QQ, Telegram, Dis
|
|
|
93
93
|
|
|
94
94
|
WeChat, WeCom, DingTalk, Feishu, Lark, QQ, Telegram, Discord, and Slack accept ordinary files through Chat’s upload service for the current session. Send PDFs, documents or spreadsheets for the assistant to process. Format support follows web Chat’s models, tools and file capabilities; uploading does not guarantee that every format can be understood directly.
|
|
95
95
|
|
|
96
|
-
- Requires the file-upload service
|
|
96
|
+
- Requires the file-upload service on the supported hosts listed below: `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`, and `0.2.1-rc.2`. Hosts before `0.2.0`, the `0.2.1` alphas, and stable `0.2.0` are refused by the version gate and the plugin will not run; saved account settings stay in the profile. If you still use a `0.1.x` host, install plugin `0.1.78` instead of `@latest`.
|
|
97
97
|
- Up to 4 ordinary files per message, totaling 20 MiB. Channel download limits also apply.
|
|
98
98
|
- Files become standard Chat attachments and are submitted with session-specific receipts, rather than local-path text.
|
|
99
99
|
- Private admission and group mention rules remain in force. File captions such as `/new` or “allow” are content, not commands or approval responses.
|
|
@@ -105,7 +105,7 @@ WeChat, WeCom, DingTalk, Feishu, Lark, QQ, Telegram, Discord, and Slack can retu
|
|
|
105
105
|
|
|
106
106
|
- Files successfully created or edited with Chat's supported file tools are sent after the reply. On hosts with `present`, explicitly presented files are also sent, including existing files.
|
|
107
107
|
- File access follows Chat: files outside the workspace are allowed when the host can read them. The plugin does not extract arbitrary paths from reply text. Files created through shell commands need to be presented explicitly.
|
|
108
|
-
-
|
|
108
|
+
- Supported hosts use Chat's complete-file download service and its configured size limit. Directories and symbolic links are not sent; channel-specific file limits still apply.
|
|
109
109
|
- A failed transfer produces a message naming the file and does not stop the remaining files. Switching away from the session or stopping the account prevents pending delivery from continuing to a different target.
|
|
110
110
|
- Send `/export` as a standalone command to receive the current linked session’s Chat ZIP logs in this chat, without child sessions. The ZIP limit is 32 MiB; channel limits also apply. If the file is too large or cannot be sent, use `/export` in web Chat. Paths and other session IDs are not accepted.
|
|
111
111
|
|
|
@@ -201,7 +201,7 @@ For a desktop workbench, download [DSH Codex Desktop](https://github.com/Micheng
|
|
|
201
201
|
## Prerequisites
|
|
202
202
|
|
|
203
203
|
- A working DeepSeek Harness Web installation with `dsh` available in PowerShell.
|
|
204
|
-
- The current source supports DSH `0.
|
|
204
|
+
- The current source supports DSH `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`, and `0.2.1-rc.2`; `0.2.1-rc.2` is recommended. `0.2.1-alpha.1` through `0.2.1-alpha.5`, stable `0.2.0`, and hosts before `0.2.0` are refused by the version gate: the plugin will not run, and existing IM settings in the profile are not deleted. If you still use a `0.1.x` host, install plugin `0.1.78` instead of `@latest`.
|
|
205
205
|
- Examples use the `web` profile; replace it with the target profile.
|
|
206
206
|
- Source installation and development require Node.js 22+. npm installation does not require running `npm install` in an arbitrary directory.
|
|
207
207
|
- After install, restart `dsh web` and hard-refresh the browser before opening **Settings → IM Assistant**.
|
|
@@ -239,11 +239,11 @@ The settings title shows the installed version and a **Check for updates** butto
|
|
|
239
239
|
|
|
240
240
|
## Usage
|
|
241
241
|
|
|
242
|
-
Open **Settings → IM Assistant**, select **Add account** under the target channel, then choose that account's workspace, model, permission, and private-access mode.
|
|
242
|
+
Open **Settings → IM Assistant**, select **Add account** under the target channel, then choose that account's workspace, model, permission, and private-access mode. To register a new workspace, click **Add workspace…** in the dropdown footer to invoke the system folder picker (manual path inputs are disallowed); hosts lacking native folder pickers show "This Host cannot create workspaces" (upgrade to one of the supported host releases listed in Requirements, or add via the host sidebar).
|
|
243
243
|
|
|
244
244
|
| Goal | Action | Notes |
|
|
245
245
|
| --- | --- | --- |
|
|
246
|
-
| Add an account | Select **Add account** under a channel, choose the account settings, then scan or enter credentials | The same channel can contain multiple accounts; Feishu / Lark /
|
|
246
|
+
| Add an account | Select **Add account** under a channel, choose the account settings, then scan or enter credentials | The same channel can contain multiple accounts; WeChat is QR-only, Feishu / Lark accept QR or App ID / App Secret, Telegram and Discord need a Bot Token, and Slack needs a Bot Token plus an App Token |
|
|
247
247
|
| Change account settings | Expand the channel, select an account, then edit its workspace, model, reasoning effort, permission, or private-access mode in its settings dialog | Changes affect only that account and apply to its subsequent sessions immediately |
|
|
248
248
|
| Pause receiving | Turn off **Receive messages** on the account row | Credentials and settings stay; only new inbound messages for that account pause |
|
|
249
249
|
| Send work from IM | WeChat / Feishu / Lark / QQ QR scanners can DM immediately; DingTalk / WeCom scanners and other users need approval. Groups only need a mention | Each chat has its own channel session |
|
package/README.zh-CN.md
CHANGED
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
| 渠道 | 状态 | 接入方式 | 需要 |
|
|
69
69
|
| --- | --- | --- | --- |
|
|
70
70
|
| 🔔 **钉钉** | ✅ 可用 | 扫码,或 Client ID / Secret | 钉钉开放平台机器人;回复优先走 AI Card |
|
|
71
|
-
| 🐦 **飞书** | ✅ 可用 |
|
|
72
|
-
| 🌐 **Lark** | ✅ 可用 |
|
|
71
|
+
| 🐦 **飞书** | ✅ 可用 | 扫码(自动创建机器人),或 App ID / App Secret | 飞书账号,或自建机器人凭据 |
|
|
72
|
+
| 🌐 **Lark** | ✅ 可用 | 扫码,或 App ID / App Secret | Lark 国际版账号,或自建机器人凭据 |
|
|
73
73
|
| 💬 **微信** | ✅ 可用* | 官方 iLink 扫码 | 建议专用小号;仅私聊 |
|
|
74
74
|
| 🏢 **企业微信** | ✅ 可用 | 扫码(推荐),或 Bot ID / Secret | 企业微信智能机器人 |
|
|
75
75
|
| 🐧 **QQ** | ✅ 可用 | 扫码,或 AppID / AppSecret | QQ 开放平台机器人,不是个人号 |
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
|
|
96
96
|
微信、企业微信、钉钉、飞书、Lark、QQ、Telegram、Discord、Slack 可接收普通文件,并通过 Chat 的上传服务交给当前会话。可以发送 PDF、文档、表格等文件,再让助手读取或处理;能否解析具体格式与网页 Chat 的模型、工具和文件能力一致,不承诺每种格式都能直接理解。
|
|
97
97
|
|
|
98
|
-
-
|
|
98
|
+
- 需要下列已支持宿主的文件上传服务:`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1`、`0.2.1-rc.2`。`0.2.0` 之前的宿主、`0.2.1` 的 alpha,以及正式版 `0.2.0` 会被版本门拒绝,插件不会运行;已保存的账号配置仍留在 profile 里。仍在使用 `0.1.x` 的,请安装插件 `0.1.78`,不要装 `@latest`。
|
|
99
99
|
- 单条消息最多 4 个普通文件,累计最多 20 MiB,还受渠道下载限制约束。
|
|
100
100
|
- 文件先保存为 Chat 标准附件,通过当前会话专属的凭据提交;不把本地路径文字当作文件输入。
|
|
101
101
|
- 保留私聊准入与群聊提及规则;文件说明中的 `/new` 或“批准”属于普通内容,不执行命令或审批。
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
|
|
108
108
|
- 使用 Chat 支持的文件工具成功新建或修改的文件,会在回复后发送;宿主支持 `present` 时,也会发送明确交付的文件,包括已有文件。
|
|
109
109
|
- 文件访问范围与 Chat 一致,允许宿主可读取的工作区外文件。不从回复正文中猜测文件路径;通过脚本等方式生成的文件,需要助手明确 `present` 交付。
|
|
110
|
-
-
|
|
110
|
+
- 已支持的宿主使用 Chat 完整文件下载服务及其配置的大小上限。目录和符号链接不发送,渠道自身的文件限制仍然适用。
|
|
111
111
|
- 单个文件发送失败会明确提示文件名,并继续处理其他文件;切走会话或停止账号后,不会把尚未投递的文件转发到其他聊天。
|
|
112
112
|
- 单独发送 `/export`,可将当前聊天绑定会话的 Chat ZIP 日志发回当前聊天(不含子会话)。ZIP 上限为 32 MiB,渠道自身限制仍适用;超限或发送失败时可在网页 Chat 使用 `/export` 下载。不接受路径或其他会话 ID 参数。
|
|
113
113
|
|
|
@@ -201,7 +201,7 @@ IM 消息发起的处理结束后,会在正文和文件投递完成后给出
|
|
|
201
201
|
## 前置条件
|
|
202
202
|
|
|
203
203
|
- 已可正常运行 DeepSeek Harness Web,且可在 PowerShell 中使用 `dsh`。
|
|
204
|
-
- 当前源码支持 DSH `0.
|
|
204
|
+
- 当前源码支持 DSH `0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1`、`0.2.1-rc.2`,推荐 `0.2.1-rc.2`。`0.2.1-alpha.1` 到 `0.2.1-alpha.5`、正式版 `0.2.0`,以及 `0.2.0` 之前的宿主都会被版本门拒绝:插件不会运行,profile 里已有的 IM 配置不会被删除。仍在使用 `0.1.x` 的,请安装插件 `0.1.78`,不要装 `@latest`。
|
|
205
205
|
- 以下示例使用 `web` profile;请替换为实际目标 profile。
|
|
206
206
|
- 从源码安装或二次开发需要 Node.js 22+;仅从 npm 安装无需在任意目录执行 `npm install`。
|
|
207
207
|
- 安装后必须重启 `dsh web`,并在浏览器硬刷新,才能看到「设置 → IM助理」。
|
|
@@ -239,11 +239,11 @@ dsh --profile web --dump-config
|
|
|
239
239
|
|
|
240
240
|
## 使用
|
|
241
241
|
|
|
242
|
-
打开「设置 → IM
|
|
242
|
+
打开「设置 → IM助理」,在目标渠道点击「添加账号」,并为该账号选择工作区、模型、权限和私聊准入。若需要新工作区,可展开工作区下拉列表点击底部的「添加工作区…」直接调起系统文件选择器(禁止手输路径);不支持原生目录选择器的宿主会提示「当前 Host 无法新增工作区」,请升级到「环境要求」中列出的受支持宿主版本,或直接在宿主侧栏添加工作区。
|
|
243
243
|
|
|
244
244
|
| 目标 | 操作 | 说明 |
|
|
245
245
|
| --- | --- | --- |
|
|
246
|
-
| 添加账号 | 在对应渠道点击「添加账号」,选择账号配置后扫码或填写凭据 |
|
|
246
|
+
| 添加账号 | 在对应渠道点击「添加账号」,选择账号配置后扫码或填写凭据 | 同一渠道可添加多个账号;微信仅扫码,飞书 / Lark 支持扫码或填写 App ID / App Secret,Telegram 和 Discord 仅填 Bot Token,Slack 填 Bot Token 与 App Token |
|
|
247
247
|
| 修改账号配置 | 展开渠道并选择账号,在设置弹窗中修改工作区、模型、推理强度、权限或私聊准入 | 配置只影响当前账号;保存后该账号的后续会话立即使用新配置 |
|
|
248
248
|
| 暂停接收 | 关闭账号行上的「接收消息」开关 | 凭据和账号配置保留,只暂停该账号接收新消息 |
|
|
249
249
|
| 在 IM 里下任务 | 微信 / 飞书 / Lark / QQ 扫码用户可直接私聊;钉钉 / 企微扫码者和其他用户需先批准。群聊只需 @ | 每个聊天对应一条独立频道会话 |
|