npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-reasoning-effort-slider

v1.3.1

Published

Reasoning effort slider for DeepSeek Harness — a client (web) bundle that injects a per-session slider into the conversation input, shown when the selected model declares reasoning effort levels. Works with any provider that has reasoning efforts (Bailian

Readme

dsh-reasoning-effort-slider

English | 中文

DeepSeek Harness 客户端(web)bundle:在会话输入区(dock)注入一个 推理强度滑动条(Codex GPT-6 风格),当当前选中的模型声明了 reasoningEfforts 时显示。

  • per-session:滑动只改当前会话的推理强度(调 modelDirectories.directoryFor(session).select({provider,model,reasoningEffort})),不影响别的会话。
  • 档位按 harness 七级 off/minimal/low/medium/high/xhigh/max 排列,只显示该模型实际支持的档位。
  • 仅一档或无档位的模型(如仅思考型 kimi-k3)不显示滑动条。
  • 零构建工具:lib/client.js 直接写成 window.__ModuleLoader__.load({id, factory}) 格式,用 react/jsx-runtime 的 jsx 手写,便于静态审计。

切换模型时保持推理强度

DSH 自身的模型选择器只在同一个模型上沿用 reasoningEffort;换模型时它改用目标模型的 defaultEffort,而路由没配 reasoning 时那就是 undefined。这个 undefined 不是「默认档」——在 qwen 方言下它等价于 enable_thinking: false,思考会被静默关掉(已用 mock fetch 抓到真实请求体确认)。

本插件为此做两件事:

  1. 按模型记住:每个模型最后一次明确选过的档位都记下来(provider/model → 档位)。

  2. 换模型时挪档并写回:把记下的档位挪到目标模型的档位梯上再提交,规则是

    • 精确命中 → 直接用;
    • 否则取不高于它的最近一档(前一个是 max、目标最高只有 xhigh → 就用 xhigh);
    • 连更低的都没有 → 用目标模型的最低档。

    由于滑动条本就不显示 off,这条规则不会把「正在思考」静默降级成「不思考」。

若从未选过任何档位(全新状态),插件不擅自写回,而是显示灰色的「默认」,如实反映「未设定」。

安装

dsh plugin --profile web add dsh-reasoning-effort-slider

与百炼插件的关系

通用插件(任何声明 reasoningEfforts 的模型都生效),也可作为 dsh-bailian-models 的可选依赖一并安装。

License

MIT