Repository navigation
Releases: xinming-chenniang/dsh-button
Release list
dsh-button 1.3.0
dsh-button 1.3.0
输入框动作插件 1.3.0。核心变化:所有动作统一成普通按钮、设置面板重做、发送/填入视觉与交互区分。
版本类型:minor —— 新增行为/UI,旧配置自动迁移;不破坏配置格式、数据或安装方式。
「重发上一条」移除是有意变更,不是兼容性修复;需要重发请自建普通按钮。
新增
- 所有动作(含「继续」)都是普通按钮:同一套顺序、都能改名/改文字/改方式/删除/上下移动。
- 移除「重发上一条」;需要重发请自建一条动作。
- 管理入口改为左组最前的 ⋮,打开「设置」。
- 设置面板重构:标题栏 / 可滚动正文 / 固定底部「取消 / 保存」;点面板外关闭。
- 方式改成「发送 / 填入」二选一分段控件(选中段主色实底)。
- 发送 = 浅色实底 + 实线;填入 = 透明 + 虚线;按钮上不加箭头图标。
- 三种位置:卡片下方 / 卡片底部 / 控制行(两格:插入左、发送右),localStorage 记住。
- 内容框支持
\n//n/\t//t/\\转义;多行填入走setDraft,换行能真正排版。 - 编辑器「模型只显示图标(实验)」开关(宿主 CSS 变量,升级后可能失效)。
- 动作条按钮大小三档:紧凑 22 / 标准 26 / 大 30(默认大,只影响动作条,localStorage 记住)。
默认设置
- 默认 4 条:总结 / 继续(发送),讨论 / 说明(填入)。
- 默认位置:控制行(bar,两格)。
- 模型「只显示图标」默认关闭(自动)。
迁移
- 旧
presets.continue读取时自动并成第一条普通按钮;旧hidden: ['continue']视为已迁移/已删除,不再补。 presets.resend忽略;重发按钮不再显示。- 仍最多 8 条动作。
验证
npm test→ 47/47(client 33 + host 14)。npm pack --dry-run→ 9 个文件,dsh-button@1.3.0。
安装
dsh plugin --profile web add dsh-button或桌面端「设置 → 插件 → 添加插件」输入 dsh-button,装完重启 DSH。
dsh-button 1.2.3
dsh-button 1.2.3 —— 有草稿不覆盖,点击后说真话。
本版内容
- fix:输入框有草稿时按钮不再整段覆盖,改为提示「有草稿,未发送」。
- fix:点击反馈按忙态区分——忙时「已排队 · 本轮结束后发送」、闲时「已发送」、读不到忙态时「已提交」。
- docs:明确按钮恒为排队;手打 Enter 才受「繁忙时的发送行为」设置影响。
- 未做:跟随
busyEnter的行为对齐(二期,先验证configForms/steeringAvailable)。
安装
- DSH:
dsh plugin --profile <profile> add dsh-button - 桌面端:设置 → 插件 → 添加插件 →
dsh-button - GitHub:
dsh plugin --profile <profile> add github:xinming-chenniang/dsh-button
本包没有 CLI / bin。
验证
npm test→ 29 / 29npm pack→ 9 文件(含截图)- CI:6/6(Ubuntu/Windows × Node 20/22/24)
dsh-button 1.2.2
dsh-button 1.2.2 —— 可用性与依赖修复。
本版内容
- fix:
locale从inject移除;缺 locale 服务的 profile 不再整插件 pending,文案回落中文。 - fix:配置请求加 3s 超时;路由挂住时「+」不会永远 pending。
- docs:README 首屏补「快速开始 / 安装 / 草稿覆盖警告」;内部变更记录下沉。
- CI:checkout / setup-node 升到 v7。
- 运行时按钮行为不变:继续 + 自定义 + 重发上一条,纯文字、无宿主命令。
安装
- DSH:
dsh plugin --profile <profile> add dsh-button - 桌面端:设置 → 插件 → 添加插件 →
dsh-button - GitHub:
dsh plugin --profile <profile> add github:xinming-chenniang/dsh-button
本包没有 CLI / bin,不要用
npm i -g dsh-button。
验证
npm test→ 27 / 27npm pack→ 9 文件(含截图)- CI:6/6(Ubuntu/Windows × Node 20/22/24)
dsh-button 1.2.1
dsh-button 1.2.1 —— 文档/截图进入 npm 包,运行时代码与 1.2.0 相同。
本版内容
- 新增
assets/composer-buttons.png(输入框按钮截图),随包发布。 - 补
CHANGELOG.md、GitHub Actions(Ubuntu/Windows × Node 20/22/24)、卸载段、兼容性表。 - 运行时行为无变化:仍是「继续」+ 自定义按钮 + 「重发上一条」,纯文字、无宿主命令。
安装
- DSH:
dsh plugin --profile <profile> add dsh-button - 桌面端:设置 → 插件 → 添加插件 →
dsh-button - GitHub:
dsh plugin --profile <profile> add github:xinming-chenniang/dsh-button
本包没有 CLI / bin,不要用
npm i -g dsh-button。
验证
npm test→ 27 / 27npm pack→ 9 文件(含截图)- CI:6/6(Ubuntu/Windows × Node 20/22/24)
dsh-button 1.2.0
dsh-button 1.2.0 —— 输入框旁的「一句话」按钮。
本版内容
- 自定义按钮:标签 + 要发送的文字,界面表单编辑(两个输入框),也可手写 buttons.json
- 预设可删可恢复;「继续」的标签与文字都能改,「重发上一条」可改标签(内容动态)
- 首次安装自带 5 条通用动作:总结 / 审查 / 测试 / 提交信息 / 解释报错
- 移除写死的收尾按钮、收口面板;「按建议执行」并入「继续」
- 纯文字动作:不 spawn 命令、不读 git、不碰凭据;配置只写 ~/.dsh/dsh-button/buttons.json
安装
- npm:
npm i -g dsh-button或dsh plugin --profile web add dsh-button - 桌面端:设置 → 插件 → 添加插件 → 输入 dsh-button
- GitHub 源:
dsh plugin --profile web add github:xinming-chenniang/dsh-button - Release 资产:
dsh-button-1.2.0.tgz
npm
https://www.npmjs.com/package/dsh-button —— 已发布 1.2.0(与本地 tarball 字节一致,SHA256 D5100DC6…96BE4A)。
验证
27 个离线用例(client 15 + host 12)全过。
v0.5.0 — 输入框按钮独立成包
dsh-button 0.5.0 —— 从「收尾按钮」独立成「输入框按钮」插件。
五个落点
| 按钮 | 落点 | 做什么 |
|---|---|---|
| 继续 | conversation.input.left |
发「继续」——"没异议、往下走"的通用答复 |
| 收尾 | conversation.input.left |
发「收尾」——触发收尾流程 |
| 按建议执行 | conversation.input.left |
发「按建议执行」——让 agent 别再问,直接照自己刚给的建议动手 |
| 收口 | conversation.input.left |
打开面板,显示"能不能关这个会话"(依赖 dsh-closeout CLI) |
| 重发上一条 | conversation.input.right |
把最后一条真人消息原样再发一条(跳过注入/引用/压缩检查点) |
按钮只是"替你打一段字并提交",之后发生的事与手打完全一样。
安装
# 1) 从本 Release 的 tgz 装(不需要 npm)
dsh plugin --profile desktop add ./dsh-button-0.5.0.tgz
# 2) 开发期用源码软链(改源码即生效)
dsh plugin --profile desktop add link:D:/dsh/dsh-button第一次装/换版本后必须重启应用:file: / tgz 是快照,link: 才是改源码即生效。
面板的降级
「收口」面板需要 dsh-closeout(npm i -g dsh-closeout 或 npx dsh-closeout)。
没装时面板不会静默失败:宿主路由回 502 closeout-failed 并把原因(stderr)带到面板里。
兼容
- 宿主
dsh >= 0.2.0-rc.2(桌面端 0.2.1-rc.2 实测) - 曾用名
dsh-closeout-button(≤ 0.4.2);改名时目录、profiledependencies、bundles、junction 与两份 pnpm lock 一起改,
差一处会静默装不上 - 路由名
/api/dsh-closeout/check保留:它是面板语义,不是包名
校验
sha256 dsh-button-0.5.0.tgz adff19c9fd03e77118e70a6e99916760577566a0311d1337c92c498c41796078
size 20,018 bytes
files LICENSE cordis.patch.yml lib/client.js lib/index.js package.json README.md
test 19 / 19(client 11 + host 8)
MIT License.