flyemFSB/dsh-reasoning-effort-hdbzq 预览 preview

flyemFSB/dsh-reasoning-effort-hdbzq

DeepSeek Harness 前端插件:把输入框里的模型选择控件换成模型列表 + 三档推理档位滑块。档位名称和头像取自 src/client/assets/ 下的三张图片,从左到右:小难梁 · 梁子 · 梁圣。

catalog descriptioncatalog 简介 / catalog description:滑动变祖器

Project Overview项目介绍

This is a front-end plugin built exclusively for the DeepSeek Harness web profile. It replaces the default model selection control with a sorted model list grouped by provider and an interactive three-step slider for adjusting reasoning effort. To install the plugin, you can run the official DSH CLI command dsh plugin --profile web add https://github.com/flyemFSB/dsh-reasoning-effort-hdbzq/releases/download/v0.1.0/dsh-reasoning-effort-hdbzq-0.1.0.tgz and then officially launch DSH with the web profile after installation completes. The plugin follows the official DSH plugin contract, injecting into the existing UI slot to replace the original control, and automatically correctly restores the default control after uninstallation.

When you use the plugin, a trigger button that displays your current selected model and active reasoning effort is placed in the original input area. Clicking this button opens the selection panel, which keeps your current button label frozen while the panel is open to prevent unexpected UI shifting. The slider supports smooth, pointer-following dragging, with elastic overshoot when you drag past the end of the track, and automatically snaps to the nearest reasoning step when you release your pointer or lift your finger. It also supports keyboard navigation with arrow keys and clicking directly on the track to select a step.

The plugin requires DSH version 0.1.0-rc.6 or newer, and all runtime dependencies are provided by the DSH web environment, so you don’t need to install any extra packages to run it after adding the plugin via the CLI. It is released under the open source MIT license, but note that the portrait rights for the default step avatars are held by the original copyright holder. If you want to build the plugin from source, you will need Node.js version 20 or newer, and you can run npm install followed by npm run check to complete the full build and type checking.

这是一款专为 DeepSeek Harness Web 版开发的原生前端插件,会将输入框处原有模型选择控件替换为按服务商分组的模型列表加三档推理档位滑块。插件遵循官方客户端插件契约,通过官方插槽系统覆盖内置模型选择席位,卸载后会自动恢复原有控件,复用官方模型目录服务,不自行实现模型调用逻辑。

安装完成后,用户可点击显示当前模型和当前档位的触发按钮打开选择面板,拖动滑块即可切换推理档位。滑块支持连续跟手拖动、弹性越界交互,松手后会自动吸附到最近档位并提交对应推理档位ID,还支持键盘方向键切换、点击轨道切换档位等操作,适合需要直观可视化调整推理档位的 DSH Web 版用户使用。

本插件要求 DSH 版本不低于 0.1.0-rc.6,所有运行时依赖都由 DSH Web 版环境提供,用户只需通过官方 dsh plugin 命令即可完成安装卸载。插件以 MIT 许可开源,需注意内置头像图片的肖像权归原权利人所有,已知限制包括固定插槽优先级、档位显示名按位置映射等。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
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 https://github.com/flyemFSB/dsh-reasoning-effort-hdbzq/releases/download/v0.1.0/dsh-reasoning-effort-hdbzq-0.1.0.tgz

把 flyemFSB/dsh-reasoning-effort-hdbzq 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-reasoning-effort-hdbzq

DeepSeek Harness 前端插件:把输入框里的模型选择控件换成模型列表 + 三档推理档位滑块。档位名称和头像取自 src/client/assets/ 下的三张图片,从左到右:小难梁 · 梁子 · 梁圣。

实现遵循官方客户端插件契约(packages/client/AGENTS.md、ui-slots 插槽系统、tsdown.client.ts 构建契约),没有基于既有插件二开:

  • 用官方 ctx.slots.inject + slots.register(priority: -10)覆盖内置 conversation.input.model 席位,卸载后自动恢复。
  • 复用官方 modelDirectories 服务与共享目录 store,不自己实现模型调用。真实 Effort ID(如 off / high / max)原样交给 session.selectModel,「小难梁 / 梁子 / 梁圣」只在浏览器界面出现,不会写进模型请求。
  • 样式只用官方 --dsw-alias-* 语义 token,跟随亮/暗主题。
  • 文案走官方 locale 字典机制(zh / en 双词典)。
  • 构建产出与官方一致的 __ModuleLoader__ 闭包包(lib/client.js + source map),CSS Modules 经 lightningcss 编译并自动注入 <style data-plugin>。

功能

  • 触发按钮:当前模型名 + 当前档位名 + 档位头像。
  • 弹出面板:按 provider 分组的模型列表(含加载/失败/空态),下方是可拖动的三档滑块。
  • 滑块是原生 range 语义 + 完全自绘交互:
    • 连续跟手:拖动时 thumb、填充、档位名、头像由指针直接驱动,没有往返延迟。原生 value 拖动中是步进取整,无法跟手,所以 pointerdown 直接弃用原生拖动。
    • 弹性越界:拖出轨道两端后 thumb 带 25% 阻尼跟随,松手弹簧回弹。
    • 松手吸附提交:松手吸附到最近档位并提交一次真实 Effort ID;半程松手吸附最近档;键盘 ← → 和点击轨道即时提交。
    • 合并去重:自己提交在途时输入保持可用,新档位 latest-wins 落地后续传,连续快速拖动不丢档位。提交被拒时回弹到已确认档位,错误显示在面板内。
    • 面板稳定:拖动中不响应外点关闭;面板打开期间按钮标签冻结,轨道不会位移;档位标签与轨道刻度对齐。
  • 档位名称按位置映射:efforts[i] ↔ 第 i 张图片的文件名;图片不足或档位超过三张时回退到 host 目录提供的原始名称。
  • 被寻址的子代理会话(subagentAddress 命中)不渲染任何内容,与内置席位契约一致。
  • 无障碍:role="slider" + 实时 aria-valuetext、键盘 ← →、Escape 关闭并还原焦点、外部点击关闭、prefers-reduced-motion。

档位映射

位置(从左到右) 图片文件 显示名 提交的 Effort ID
第 1 档 小难梁.png 小难梁 host 目录 efforts[0] 的 id
第 2 档 梁子.png 梁子 host 目录 efforts[1] 的 id
第 3 档 梁圣.png 梁圣 host 目录 efforts[2] 的 id

显示名与头像按位置取自图片文件名,与真实档位语义无关。顺序由 build.mjs 的 ASSET_ORDER 固定,重命名图片文件(并同步该列表)即可重命名档位。构建时自动缩图并内嵌。

安装

dsh plugin --profile web add https://github.com/flyemFSB/dsh-reasoning-effort-hdbzq/releases/download/v0.1.0/dsh-reasoning-effort-hdbzq-0.1.0.tgz

安装完成后启动:

dsh --profile web

卸载

dsh plugin --profile web remove dsh-reasoning-effort-hdbzq

卸载后内置模型选择席位自动恢复。

从源码构建与校验

需要 Node ≥ 20 和 npm 安装的 devDependencies:

npm install
npm run check      # typecheck + 单测 + 完整构建

构建脚本(build.mjs)分三步:

  1. gen-assets:读 src/client/assets/*.png,双线性缩放到最长边 160px 后以 JPEG(q85) 内嵌为 data URL,档位名取文件名(生成 src/client/assets.generated.ts,不入库)。
  2. tsc:产出 lib/types 声明。
  3. esbuild:node 半区(lib/index.js、lib/invariant.js)+ 浏览器半区(lib/client.js,__ModuleLoader__ 闭包包 + source map,平台模块 external,CSS Modules 经 lightningcss,含跨插件值导入纯度门禁)。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev ds-vision-plugin 下一个 Next dsh-vision-bridge →