@michengai/dsh-im-connect 0.1.51 → 0.1.53
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 +15 -0
- package/CHANGELOG.zh-CN.md +15 -0
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/client.js +862 -636
- package/lib/client.js +1282 -841
- package/lib/engine/command-locale.d.ts.map +1 -1
- package/lib/engine/command-locale.js +24 -2
- package/lib/engine/command-locale.js.map +1 -1
- package/lib/engine/file-delivery.d.ts +2 -0
- package/lib/engine/file-delivery.d.ts.map +1 -1
- package/lib/engine/file-delivery.js +29 -6
- package/lib/engine/file-delivery.js.map +1 -1
- package/package.json +22 -14
- package/src/engine/command-locale.ts +26 -2
- package/src/engine/file-delivery.ts +40 -6
- package/src/plugin-update-ui.js +198 -191
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,21 @@ Recent published versions are listed below. Git tags and GitHub Releases now mir
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 0.1.53 - 2026-09-23
|
|
10
|
+
|
|
11
|
+
- Publish the changes tagged as v0.1.52. That tag did not reach npm: CI could not install the 0.1.7-alpha.1 session hosts or the 0.1.7 file hosts. Those installs now pin the alpha.1 packages that the contract tests use, and 0.1.7 file hosts use cordis 4.0.4.
|
|
12
|
+
- Add support for DSH 0.1.7-alpha.1, 0.1.7-alpha.2, and npm `latest` 0.1.5-rc.3 while retaining compatibility with 0.1.2-rc.1, 0.1.5-rc.1, 0.1.5-rc.2, 0.1.6-alpha.1 and 0.1.6-alpha.2. The optional `dsh-client-runtime` peer now lists only the versions published on npm (`0.1.1-rc.1` / `0.1.1-rc.2`); later hosts inject their own bundled copy.
|
|
13
|
+
- Read Chat files through `workspaceFiles.readBytes` on 0.1.7 hosts. A call with no byte range is the whole file or a too-large error, so a payload that leaves out `eof`/`offset` still counts as complete; explicit `eof: false` or a non-zero offset is still rejected. 0.1.7-alpha.1 and alpha.2 return literal `offset: 0, eof: true` on that path. Keep `readAll` and the local filesystem fallback on older hosts.
|
|
14
|
+
- Treat V4 tool-result errors on `message.isError` so failed writes are not sent to IM.
|
|
15
|
+
- Read command-reply language from the `locale` settings document (`settings.get` on older hosts, `describe()` filtered by namespace on 0.1.7). Do not treat `ui-theme.preference` as a language.
|
|
16
|
+
- Archive a running session with the official stop-and-archive confirmation; restore uses the workspace navigation APIs.
|
|
17
|
+
- Rebuild the channel session list and account settings with Ant Design, matching the scheduled-tasks plugin.
|
|
18
|
+
- Keep channel logos on the sidebar group rows instead of swapping them for a chevron. Running rows use the official `StateDot` ongoing ring; idle rows keep an empty slot.
|
|
19
|
+
- Drop leftover Chip/ChannelCard chrome, use Ant Segmented/Tag/Alert on bind, diagnostics and pending approvals, fill missing field labels, and tree-shake plus minify the bundled Ant Design client. `antd` and `react-dom` stay in `devDependencies`; `dsh plugin add` no longer installs a second Ant tree.
|
|
20
|
+
- Folder icons fall back through `IconFolderClose16` and `IconFolderClose`. The remove-account confirm follows the host dark theme. Channel session menus do not include pin. The previous release did not offer it either.
|
|
21
|
+
- Channel rows always use the 0.1.7 session list: 5px scrollbar, 10px caption time, 10px action gap, 12px workspace-tree indent, archived caption color, animated title scroll, 800ms hover cards, workspace tree, archived filters, and double-click rename. Older hosts still open menus through the items API those menus actually have. Channel groups still use channel logos. Pin and manual sort stay unavailable.
|
|
22
|
+
- Restart DSH and refresh the page after upgrading.
|
|
23
|
+
|
|
9
24
|
## 0.1.51 - 2026-09-18
|
|
10
25
|
|
|
11
26
|
- Add support for DSH 0.1.6-alpha.2 while retaining compatibility with 0.1.2-rc.1, 0.1.5-rc.1, 0.1.5-rc.2 and 0.1.6-alpha.1.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -6,6 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
## 未发布
|
|
8
8
|
|
|
9
|
+
## 0.1.53 - 2026-09-23
|
|
10
|
+
|
|
11
|
+
- 发布 v0.1.52 标签里的改动。那个标签没有发到 npm:CI 装不上 0.1.7-alpha.1 会话宿主和 0.1.7 文件宿主。现在会把契约测试用到的 alpha.1 包钉住,0.1.7 文件宿主改用 cordis 4.0.4。
|
|
12
|
+
- 新增对 DSH 0.1.7-alpha.1、0.1.7-alpha.2 和 npm `latest` 0.1.5-rc.3 的支持,继续兼容 0.1.2-rc.1、0.1.5-rc.1、0.1.5-rc.2、0.1.6-alpha.1 和 0.1.6-alpha.2。optional `dsh-client-runtime` peer 只声明 npm 已发布的 `0.1.1-rc.1` / `0.1.1-rc.2`;更新宿主注入自己的打包副本。
|
|
13
|
+
- 在 0.1.7 宿主上通过 `workspaceFiles.readBytes` 读取 Chat 文件。不带 range 的调用要么是整文件,要么因过大抛错,不返回分片,因此缺 `eof`/`offset` 仍按完整文件处理;显式 `eof: false` 或非零 offset 仍拒绝。0.1.7-alpha.1 / alpha.2 的无 range 分支返回的是字面量 `offset: 0, eof: true`。旧宿主继续使用 `readAll` 或本机文件系统。
|
|
14
|
+
- 识别 V4 `tool/result` 上的 `message.isError`,避免把失败的写入发到 IM。
|
|
15
|
+
- 命令回复语言只读 `locale` 设置文档(旧宿主 `settings.get`,0.1.7 上按命名空间过滤 `describe()`),不能把 `ui-theme.preference` 当成语言。
|
|
16
|
+
- 归档运行中会话走官方「停止并归档」确认;恢复使用工作区导航接口。
|
|
17
|
+
- 按定时任务插件,用 Ant Design 重做频道会话列表和账号设置。
|
|
18
|
+
- 侧栏分组保留 IM 渠道图标,不再 hover 换成展开箭头;运行中用官方 `StateDot` ongoing 圈,空闲行留空位。
|
|
19
|
+
- 清掉 Chip/ChannelCard 残留样式,绑定、诊断和待审批改用 Ant Segmented/Tag/Alert,补齐凭据字段词条,并按需压缩 Ant Design 客户端包。`antd` 和 `react-dom` 留在 `devDependencies`,`dsh plugin add` 不再另装一棵 Ant。
|
|
20
|
+
- 文件夹图标按 `IconFolderClose16`、`IconFolderClose` 回退。删除账号确认框跟随宿主暗色主题。频道会话菜单不提供置顶。上一个已发布版本也没有这项。
|
|
21
|
+
- 频道行一律使用 0.1.7 会话列表:5px 滚动条、10px 说明色时间、10px 操作间距、工作区树每层缩进 12px、已归档用说明色、长标题悬停匀速滚动、悬停卡片等 800ms,并提供工作区树、归档筛选和双击重命名。更早宿主的菜单仍走它们自己的 items 接口。分组仍用渠道图标。仍然不提供置顶和手工排序。
|
|
22
|
+
- 升级后请重启 DSH 并刷新页面。
|
|
23
|
+
|
|
9
24
|
## 0.1.51 - 2026-09-18
|
|
10
25
|
|
|
11
26
|
- 新增对 DSH 0.1.6-alpha.2 的支持,继续兼容 0.1.2-rc.1、0.1.5-rc.1、0.1.5-rc.2 和 0.1.6-alpha.1。
|
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ The receive paths cover WeChat, WeCom, DingTalk, Feishu, Lark, QQ, and Telegram.
|
|
|
89
89
|
|
|
90
90
|
WeChat, WeCom, DingTalk, Feishu, Lark, QQ and Telegram 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.
|
|
91
91
|
|
|
92
|
-
- Requires the file-upload service in DSH `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.6-alpha.1`, or `0.1.
|
|
92
|
+
- Requires the file-upload service in DSH `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.6-alpha.1`, `0.1.6-alpha.2`, `0.1.7-alpha.1`, or `0.1.7-alpha.2`. On `0.1.2-rc.1`, file input asks you to upgrade; existing text and image support is unchanged.
|
|
93
93
|
- Up to 4 ordinary files per message, totaling 20 MiB. Channel download limits also apply.
|
|
94
94
|
- Files become standard Chat attachments and are submitted with session-specific receipts, rather than local-path text.
|
|
95
95
|
- Private admission and group mention rules remain in force. File captions such as `/new` or “allow” are content, not commands or approval responses.
|
|
@@ -193,7 +193,7 @@ For a desktop workbench, download [DSH Codex Desktop](https://github.com/Micheng
|
|
|
193
193
|
## Prerequisites
|
|
194
194
|
|
|
195
195
|
- A working DeepSeek Harness Web installation with `dsh` available in PowerShell.
|
|
196
|
-
- The current source supports DSH `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.6-alpha.1`, and `0.1.
|
|
196
|
+
- The current source supports DSH `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.6-alpha.1`, `0.1.6-alpha.2`, `0.1.7-alpha.1`, and `0.1.7-alpha.2`; the last is recommended and pinned for development. DSH `0.1.0-rc.8` and `0.1.1-rc.2` lack the authentication and session-control interfaces this plugin requires; upgrade DSH first.
|
|
197
197
|
- Examples use the `web` profile; replace it with the target profile.
|
|
198
198
|
- Source installation and development require Node.js 22+. npm installation does not require running `npm install` in an arbitrary directory.
|
|
199
199
|
- After install, restart `dsh web` and hard-refresh the browser before opening **Settings → IM Assistant**.
|
package/README.zh-CN.md
CHANGED
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
|
|
92
92
|
微信、企业微信、钉钉、飞书、Lark、QQ、Telegram 可接收普通文件,并通过 Chat 的上传服务交给当前会话。可以发送 PDF、文档、表格等文件,再让助手读取或处理;能否解析具体格式与网页 Chat 的模型、工具和文件能力一致,不承诺每种格式都能直接理解。
|
|
93
93
|
|
|
94
|
-
- 需要 DSH `0.1.5-rc.1`、`0.1.5-rc.2`、`0.1.6-alpha.1` 或 `0.1.
|
|
94
|
+
- 需要 DSH `0.1.5-rc.1`、`0.1.5-rc.2`、`0.1.5-rc.3`、`0.1.6-alpha.1`、`0.1.6-alpha.2`、`0.1.7-alpha.1` 或 `0.1.7-alpha.2` 的文件上传服务;`0.1.2-rc.1` 明确提示升级,文字、图片等既有能力不变。
|
|
95
95
|
- 单条消息最多 4 个普通文件,累计最多 20 MiB,还受渠道下载限制约束。
|
|
96
96
|
- 文件先保存为 Chat 标准附件,通过当前会话专属的凭据提交;不把本地路径文字当作文件输入。
|
|
97
97
|
- 保留私聊准入与群聊提及规则;文件说明中的 `/new` 或“批准”属于普通内容,不执行命令或审批。
|
|
@@ -193,7 +193,7 @@ IM 消息发起的处理结束后,会在正文和文件投递完成后给出
|
|
|
193
193
|
## 前置条件
|
|
194
194
|
|
|
195
195
|
- 已可正常运行 DeepSeek Harness Web,且可在 PowerShell 中使用 `dsh`。
|
|
196
|
-
- 当前源码支持 DSH `0.1.2-rc.1`、`0.1.5-rc.1`、`0.1.5-rc.2`、`0.1.6-alpha.1`、`0.1.6-alpha.2`,推荐后者;开发依赖固定为 `0.1.
|
|
196
|
+
- 当前源码支持 DSH `0.1.2-rc.1`、`0.1.5-rc.1`、`0.1.5-rc.2`、`0.1.5-rc.3`、`0.1.6-alpha.1`、`0.1.6-alpha.2`、`0.1.7-alpha.1`、`0.1.7-alpha.2`,推荐后者;开发依赖固定为 `0.1.7-alpha.2`。`0.1.0-rc.8`、`0.1.1-rc.2` 缺少本插件需要的认证与会话控制接口,请先升级 DSH。
|
|
197
197
|
- 以下示例使用 `web` profile;请替换为实际目标 profile。
|
|
198
198
|
- 从源码安装或二次开发需要 Node.js 22+;仅从 npm 安装无需在任意目录执行 `npm install`。
|
|
199
199
|
- 安装后必须重启 `dsh web`,并在浏览器硬刷新,才能看到「设置 → IM助理」。
|