dsh-plugin-image-tools 0.6.5 → 0.6.6
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 +8 -0
- package/README.en.md +14 -0
- package/README.md +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.6] - 2026-09-04
|
|
4
|
+
|
|
5
|
+
- 文档:中英 README 新增「兼容性」节——实测于 dsh 0.1.2-rc.1;选择卡 0.6.5 起适配
|
|
6
|
+
`pendingInteraction` / `PendingQuestion` 新协议;聊天图片放大依赖的 `data-chat-flow`
|
|
7
|
+
容器、`dshimg:` 占位符、lightbox 已逐一核验保留;测试基建自带 react/react-dom@19
|
|
8
|
+
devDependencies,`npm run smoke` 不再依赖宿主安装布局。
|
|
9
|
+
# Changelog
|
|
10
|
+
|
|
3
11
|
## [0.6.5] - 2026-09-04
|
|
4
12
|
|
|
5
13
|
- 适配 dsh 0.1.2-rc.1:conversation.composer 链条目 select 入参由 `{interactions}` 改为 `{pendingInteraction}`(原生 PendingQuestion 单对象),按 questions/answer/cancel 鸭子类型认领带图片标记的问题批,plan-review 放行;
|
package/README.en.md
CHANGED
|
@@ -221,6 +221,20 @@ See `设计说明.md` for details.
|
|
|
221
221
|
proxy or on a different port, image addresses in historical messages may break (same
|
|
222
222
|
limitation as choice cards).
|
|
223
223
|
|
|
224
|
+
## Compatibility
|
|
225
|
+
|
|
226
|
+
- Tested on DSH `0.1.2-rc.1` (since 0.6.5 the choice-card entry is adapted to that
|
|
227
|
+
version's new protocol: the `conversation.composer` chain selector receives a single
|
|
228
|
+
`pendingInteraction` (the native `PendingQuestion`), and answers go through
|
|
229
|
+
`.answer({answers})` / `.cancel()`); since 0.6.6 the tests bundle their own
|
|
230
|
+
react/react-dom and no longer depend on the host installation layout.
|
|
231
|
+
- The `data-chat-flow` container, the `dshimg:` placeholder protocol, and the lightbox —
|
|
232
|
+
all anchors the chat image zoom relies on — were verified one by one against
|
|
233
|
+
`dsh-client-ui-chat` in 0.1.2-rc.1.
|
|
234
|
+
- Plain-text questions are unaffected (handed to the native UI or
|
|
235
|
+
`dsh-plugin-choice-refresh`).
|
|
236
|
+
- Depends on the client services `slots` / `locale`.
|
|
237
|
+
|
|
224
238
|
## Related plugins
|
|
225
239
|
|
|
226
240
|
This plugin is part of **Pasumao's dsh plugin ecosystem**; the published plugins in the
|
package/README.md
CHANGED
|
@@ -189,6 +189,16 @@ npm install
|
|
|
189
189
|
- 内嵌图片的 markdown URL 是绝对地址(`http://host:port`,由服务端监听配置推导);
|
|
190
190
|
若 GUI 经过反向代理/换端口访问,历史消息里的图片地址可能失效(同选择卡的限制)。
|
|
191
191
|
|
|
192
|
+
## 兼容性
|
|
193
|
+
|
|
194
|
+
- 实测于 DSH `0.1.2-rc.1`(0.6.5 起适配该版选择卡新协议:`conversation.composer` 链的
|
|
195
|
+
select 入参改为单对象 `pendingInteraction`(原生 `PendingQuestion`),应答走
|
|
196
|
+
`.answer({answers})` / `.cancel()`);0.6.6 起测试自带 react/react-dom,不再依赖宿主安装布局。
|
|
197
|
+
- 聊天图片放大所依赖的 `data-chat-flow` 容器、`dshimg:` 占位符协议、lightbox 已在
|
|
198
|
+
0.1.2-rc.1 的 `dsh-client-ui-chat` 中逐一核验保留。
|
|
199
|
+
- 纯文字问题不受本插件影响(放行给原生 UI 或 `dsh-plugin-choice-refresh`)。
|
|
200
|
+
- 依赖客户端服务:`slots` / `locale`。
|
|
201
|
+
|
|
192
202
|
## 相关插件
|
|
193
203
|
|
|
194
204
|
本插件属于 **Pasumao 的 dsh 插件生态**,同系列已发布插件可搭配使用:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-image-tools",
|
|
3
3
|
"description": "DSH 图片插件,三个工具覆盖三种场景:ask_user_choice 图片/图文混合选择卡(Web GUI 渲染,可放大查看)+ show_images 回复内嵌图片(图文混排)+ save_received_images 盲模型收图存为工作区文件;聊天栏所有图片点击放大,支持滚轮缩放与拖拽平移。来源支持本地路径 / http(s) URL / base64 data URI。零 token 本地渲染,纯插件实现不改核心包。",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|