dsh-plugin-choice-refresh 0.1.5 → 0.1.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.6] - 2026-09-04
4
+
5
+ - 文档:中英 README「兼容性」节补全 dsh 0.1.2-rc.1 适配细节(`pendingInteraction` /
6
+ `PendingQuestion` 协议、应答走 `.answer({answers})` / `.cancel()`);测试基建自带
7
+ react/react-dom@19 devDependencies,`npm run smoke` 不再依赖宿主安装布局。
8
+ # Changelog
9
+
3
10
  ## [0.1.5] - 2026-09-04
4
11
 
5
12
  - 适配 dsh 0.1.2-rc.1:conversation.composer 链条目 select 入参由 `{interactions}` 改为 `{pendingInteraction}`(原生 PendingQuestion 单对象),按 `kind`/questions 鸭子类型认领,plan-review 继续放行;
package/README.en.md CHANGED
@@ -87,7 +87,7 @@ npm run smoke # selfcheck + smoke-client
87
87
 
88
88
  ## Compatibility
89
89
 
90
- - Tested on DSH `0.1.1-rc.2`; requires the DSH web GUI (an entry in the `conversation.composer` chain, priority -300).
90
+ - Tested on DSH `0.1.2-rc.1` (since 0.1.6 this README documents the adaptation; 0.1.5 migrated the card entry to the new `pendingInteraction` / `PendingQuestion` protocol — select receives a single `PendingQuestion`, and answers go through `.answer({answers})` / `.cancel()`); requires the DSH web GUI (an entry in the `conversation.composer` chain, priority -300).
91
91
  - Directly compatible with the image cards of a co-installed `dsh-plugin-image-tools`; without it, plain text options work as usual.
92
92
  - `plan-review` intents (plan review cards) are passed through to the native `PlanReviewPanel`, unaffected.
93
93
  - Depends on the client services `slots` / `locale` / `sessions` / `remote`.
package/README.md CHANGED
@@ -92,7 +92,10 @@ npm run smoke # selfcheck + smoke-client
92
92
 
93
93
  ## 兼容性
94
94
 
95
- - 实测于 DSH `0.1.2-rc.1`(0.1.5 起适配该版的 `pendingInteraction` / `PendingQuestion` 新协议);需要 DSH web GUI(`conversation.composer` 链条目,priority -300)。
95
+ - 实测于 DSH `0.1.2-rc.1`(0.1.5 起适配该版选择卡新协议:`conversation.composer` 链的
96
+ select 入参改为单对象 `pendingInteraction`(原生 `PendingQuestion`),应答走
97
+ `.answer({answers})` / `.cancel()`;0.1.6 起测试自带 react/react-dom,不再依赖宿主安装布局);
98
+ 需要 DSH web GUI(`conversation.composer` 链条目,priority -300)。
96
99
  - 与 `dsh-plugin-image-tools` 共存的图片卡直接兼容;未安装时纯文字选项照常。
97
100
  - `plan-review` 意图(计划审阅卡)放行给原生 `PlanReviewPanel`,不受影响。
98
101
  - 依赖客户端服务:`slots` / `locale` / `sessions` / `remote`。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-plugin-choice-refresh",
3
3
  "description": "DSH 选择增强插件(生态唯一):给 ask_user_question / ask_user_choice 的选择卡加「重新生成选项 / 更多选项」两个按钮——选项都不满意一键换一批(换角度/维度,5~8 个),选项太少一键补充到 6~10 个。纯前端交互实现,不改核心包、不新增工具,原生文字卡与图片选择卡通吃。",
4
- "version": "0.1.5",
4
+ "version": "0.1.6",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "exports": {