HansLin911/dsh-liang-slider
滑动变祖器
Project Overview项目介绍
This is a native frontend plugin built exclusively for DeepSeek Harness (DSH), named Liang Intensity Slider. It replaces DSH’s native model selection and inference level controls in the conversation input box with a single 6-position slider, so dragging once to the desired position switches both the model and inference level at the same time. When you hover your mouse over the slider track, a themed image for that position displays above the track, and crossfade animations run when you switch between positions. If your system has reduced motion enabled, all animations are automatically disabled to respect your preference.
The plugin comes with six preconfigured positions mapped to DeepSeek V4 model combinations, ordered from lowest to highest intensity: Xiaonan Liang, Lao Liang, Liangzi, Liangsheng, Liangshen, and Liangzu. Each position is mapped to a specific model (DeepSeek-V4-Flash or DeepSeek-V4-Pro) and inference level (off, high, max). The currently active position displays as a chip labeled with the position name, model, and inference level, and the chip flashes while a switch request is in progress. If your current selected model is not one of the six preconfigured positions, the chip falls back to showing the actual model name, while the slider still works normally.
The plugin only works on DSH Web profile, and has been tested working on DSH version 0.1.0-rc.6. All required DSH core dependencies are included with the default DSH Web installation, so no extra packages need to be installed. To install, you can run the dsh plugin --profile web add command pointing directly to the GitHub Release tarball, and after uninstalling, DSH automatically restores its original controls. The plugin’s code is released under the MIT-0 license, and the image assets used for the positions have separate copyright and portrait rights claims.
这是一个专为DeepSeek Harness(DSH)开发的原生前端插件,名为梁系强度滑动条。它将DSH原生输入框中的模型选择和推理等级控件整体替换为一个6档位滑动条,拖动一次即可同时切换模型和推理等级。鼠标悬停进度条时,会在进度条上方显示对应档位的形象图,切换档位时带有交叉淡入淡出动画,符合系统减少动画设置时会自动禁用全部动画。
插件预设了6个对应DeepSeek V4模型的档位,从低到高分别是小难梁、牢梁、梁子、梁圣、梁神、梁祖,对应不同的模型和推理等级组合。当前选中档位会以“梁名+模型·推理等级”的芯片样式展示,切换请求处理中芯片会呼吸闪烁。如果当前选择不在预设六档内,芯片会回退显示真实模型名,滑块仍可正常跳转。
插件仅适用于DSH Web profile,已在DSH 0.1.0-rc.6版本实测通过,依赖的DSH核心包均为Web安装自带,无需额外安装。安装可通过dsh plugin命令直接从GitHub Release获取安装包,卸载后会自动恢复原生控件。代码采用MIT-0许可发布,档位形象素材的肖像权归原权利人所有,商用需自行获得授权。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-liang-slider(HansLin911/dsh-liang-slider)
仓库:https://github.com/HansLin911/dsh-liang-slider
本站详情页:https://www.yhbd.top/plugins/hanslin911-dsh-liang-slider/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT-0 · ⭐ 5 · 最近提交 2026-08-16 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-liang-slider
把 HansLin911/dsh-liang-slider 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-liang-slider
仓库:github.com/HansLin911/dsh-liang-slider · 最新安装包:GitHub Releases v0.1.0
DeepSeek Harness(DSH)前端插件:梁系强度滑动条。
把输入框中的「模型选择 + 推理等级」控件整体替换为一个 6 档滑动条,一次拖动同时切换模型与推理等级;鼠标悬停在进度条上时,在进度条正上方显示对应档位的形象图,切换时带交叉淡入淡出渐变。
| 档位 | 名称 | 模型 | 推理等级 |
|---|---|---|---|
| 0 | 小难梁 | DeepSeek-V4-Flash | off |
| 1 | 牢梁 | DeepSeek-V4-Flash | high |
| 2 | 梁子 | DeepSeek-V4-Flash | max |
| 3 | 梁圣 | DeepSeek-V4-Pro | off |
| 4 | 梁神 | DeepSeek-V4-Pro | high |
| 5 | 梁祖 | DeepSeek-V4-Pro | max |
功能
- 6 档滑动条整体替换内置的模型选择与推理等级按钮,一次拖动同时切换两者。
- 鼠标悬停进度条时,档位形象图(1:1,无黑边)淡入显示在进度条正上方, 移开后淡出;拖动过程中实时跟随目标档位。
- 档位切换时图片 420ms 交叉淡入淡出(新图淡入、旧图淡出后移除);
prefers-reduced-motion环境自动禁用全部动画。 - 当前档位以「梁名 + 模型 · 推理等级」芯片展示,切换请求在途时芯片呼吸闪烁。
- 档位变化通过 Harness 官方
modelDirectories服务提交(session.selectModel), 写入的是真实的模型 id 与 effort id,不改变任何实际请求语义。 - 通过
conversation.input.model槽位覆盖内置控件(priority -10),卸载后自动恢复。 - 当前选择不在六档之内(例如其他 provider 的模型)时,芯片回退显示真实模型名, 滑块仍可跳回任意档位。
- 6 张档位图在构建期以 data URL 内嵌进客户端 bundle,无网络请求、无外部静态资源。
兼容性
- 适用于提供
conversation.input.model、modelDirectories与sessions服务的 DeepSeek Harness Web profile,在 DSH0.1.0-rc.6(Windows,NSSM 服务部署)实测通过。 - 档位映射基于官方
@deepseek-ai/dsh-llm-deepseek模型目录 (deepseek-v4-flash/deepseek-v4-pro,effortoff/high/max)。 若你的 DSH 版本模型目录不同,请在源码src/levels.js中调整后重新构建。 - 运行时依赖
@deepseek-ai/dsh-client-ui-conversation与@deepseek-ai/dsh-client-ui-model-selection均为 DSH Web 安装自带包 (dsh.client.inject声明),无需额外安装。 - 子代理会话中模型选择不可用,插件自动隐藏。
安装
方式一:本地 / HTTP tarball(无需发布)
拿到 dsh-liang-slider-0.1.0.tgz 后,在任意目录执行:
dsh plugin --profile web add /path/to/dsh-liang-slider-0.1.0.tgz
# 或 http(s) 地址
dsh plugin --profile web add https://example.com/dsh-liang-slider-0.1.0.tgz
安装完成后重启 Harness 并刷新浏览器页面(插件在下次启动时挂载)。
方式二:GitHub Release tarball(推荐)
本插件已在 GitHub Releases 发布,直接安装:
dsh plugin --profile web add https://github.com/HansLin911/dsh-liang-slider/releases/download/v0.1.0/dsh-liang-slider-0.1.0.tgz
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
yogsoth-ai/de-anthropocentric-research-engine
ZSeven-W/dsh-openpencil
HanaAyane/dsh-reasoning-effort
HuanLinOTO/dsh-plugin-better-sidebar-plugin-office
joeseesun/qiaomu-rss-dsh