dsh-plugin-choice-refresh 0.1.0 → 0.1.2

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 (2) hide show
  1. package/README.md +47 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -16,6 +16,23 @@
16
16
  [dsh-plugin-image-tools](https://github.com/Pasumao/dsh-plugin-image-tools) 的
17
17
  图片选项卡都生效(图片卡由本插件直接渲染,复用其图片路由)。
18
18
 
19
+ ## 功能
20
+
21
+ - 🔄 **重新生成选项**:`ask_user_question` / `ask_user_choice` 给出的选项都不满意时,
22
+ 一键解除当前问题,让模型换一批完全不同的选项(换角度/风格/维度,5~8 个)重新提问;
23
+ - ➕ **更多选项**:选项太少不够选时,一键让模型在保留原选项的基础上补充新选项(总数 6~10 个);
24
+ - 纯前端交互实现,**不注册新工具、不改核心包**;
25
+ - 对原生文字选项卡与 `dsh-plugin-image-tools` 图片选项卡同时生效;
26
+ - 与 `plan-review` 计划审阅卡兼容,不影响原生流程。
27
+
28
+ ## 配置
29
+
30
+ 无需任何配置,安装即用:
31
+
32
+ - 不读取环境变量,不需要 API Key / token,不写配置文件;
33
+ - 按钮文案走 `ctx.locale`(zh / en 双语),无需额外设置;
34
+ - 行为由按钮注入的 `【系统 · 选项刷新】` / `【系统 · 更多选项】` 消息驱动,模型按指令重新提问。
35
+
19
36
  ## 安装
20
37
 
21
38
  ```powershell
@@ -25,6 +42,15 @@ dsh plugin --profile web add dsh-plugin-choice-refresh
25
42
  dsh plugin --profile web add github:Pasumao/dsh-plugin-choice-refresh
26
43
  ```
27
44
 
45
+ 源码安装(本地开发 / 调试):
46
+
47
+ ```bash
48
+ git clone https://github.com/Pasumao/dsh-plugin-choice-refresh.git
49
+ cd dsh-plugin-choice-refresh
50
+ npm install # 或 pnpm install
51
+ # 以 link: 方式挂载进 profile,详见 设计说明.md
52
+ ```
53
+
28
54
  装完刷新浏览器即生效(profile 已有 dsh-client-hmr 时会自动热更新,无需重启)。
29
55
  本地开发可改用 `link:` 方式挂载,详见 `设计说明.md`。
30
56
 
@@ -46,7 +72,7 @@ dsh plugin --profile web add github:Pasumao/dsh-plugin-choice-refresh
46
72
  ## 自检
47
73
 
48
74
  ```powershell
49
- cd D:\dsh\plugins\dsh-plugin-choice-refresh
75
+ # 在插件目录下(本地开发 clone / link 时)
50
76
  npm run smoke # selfcheck + smoke-client
51
77
  ```
52
78
 
@@ -57,6 +83,25 @@ npm run smoke # selfcheck + smoke-client
57
83
  - `plan-review` 意图(计划审阅卡)放行给原生 `PlanReviewPanel`,不受影响。
58
84
  - 依赖客户端服务:`slots` / `locale` / `sessions` / `remote`。
59
85
 
86
+ ## 相关插件
87
+
88
+ 本插件属于 **Pasumao 的 dsh 插件生态**,同系列已发布插件可搭配使用:
89
+
90
+ | 插件(npm) | GitHub | 说明 |
91
+ |---|---|---|
92
+ | [dsh-notify](https://www.npmjs.com/package/dsh-notify) | [GitHub 仓库](https://github.com/Pasumao/dsh-plugin-notify) | Windows 原生通知 + 系统托盘 |
93
+ | [dsh-plugin-dev-kb](https://www.npmjs.com/package/dsh-plugin-dev-kb) | [GitHub 仓库](https://github.com/Pasumao/dsh-plugin-dev-kb) | 插件开发知识库(官方文档完整镜像 + 技能) |
94
+ | [dsh-plugin-image-tools](https://www.npmjs.com/package/dsh-plugin-image-tools) | [GitHub 仓库](https://github.com/Pasumao/dsh-plugin-image-tools) | 图片选择卡 + 回复内嵌图片 + 盲模型收图 |
95
+ | [dsh-plugin-table-zoom](https://www.npmjs.com/package/dsh-plugin-table-zoom) | [GitHub 仓库](https://github.com/Pasumao/dsh-plugin-table-zoom) | 聊天长表格浮窗查看 + 一键复制 Markdown |
96
+ | [dsh-plugin-workbench](https://www.npmjs.com/package/dsh-plugin-workbench) | [GitHub 仓库](https://github.com/Pasumao/dsh-plugin-workbench) | VS Code 风格文件浏览器 + 可编辑预览 |
97
+
98
+ > 本系列其余插件见 [Pasumao · dsh 插件](https://github.com/Pasumao);觉得好用欢迎到 GitHub 点 ⭐。
99
+
100
+ ## AI 生成声明
101
+
102
+ 代码与文档由 AI 辅助生成(DeepSeek Harness),均经人工审查与实机验证
103
+ (`npm run smoke`:selfcheck + 假客户端冒烟)。
104
+
60
105
  ## 许可证
61
106
 
62
- MIT
107
+ [MIT](./LICENSE)
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 的选择卡上提供「重新生成选项」(都不满意一键刷新)与「更多选项」(选项太少一键补充)按钮。纯前端交互实现(取消当前问题 + steer 提示模型重新提问),不改核心包、不新增工具。",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "exports": {