HansLin911/dsh-liang-slider

Plugin插件 Native原生 ⭐ 5 MIT-0 Docs & Writing文档与写作

滑动变祖器

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许可发布,档位形象素材的肖像权归原权利人所有,商用需自行获得授权。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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,在 DSH 0.1.0-rc.6(Windows,NSSM 服务部署)实测通过。
  • 档位映射基于官方 @deepseek-ai/dsh-llm-deepseek 模型目录 (deepseek-v4-flash / deepseek-v4-pro,effort off / high / max)。 若你的 DSH 版本模型目录不同,请在源码 src/levels.js 中调整后重新构建。
  • 运行时依赖 @deepseek-ai/dsh-client-ui-conversation 与 @deepseek-ai/dsh-client-ui-model-selection 均为 DSH Web 安装自带包 (dsh.client.inject 声明),无需额外安装。
  • 子代理会话中模型选择不可用,插件自动隐藏。

安装

需要先安装 Node.js ≥ 18 与 pnpm(dsh plugin 命令依赖 pnpm)。

方式一:本地 / 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 →

← 上一个 Prev dsh-llm-wechat 下一个 Next dsh-remote-link →