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

@domitor-syh/dsh-ui-skin-switcher

v0.2.2

Published

Model and reasoning-effort switcher: composer seat with an Off/Max effort slider over session.models / session.selectModel

Readme

一个为 DeepSeek Harness(DSH)Web 端打造的、Claude Desktop 同款风格的切换器插件:把模型选择与思考强度(推理力度)切换做成输入框旁的一枚悬浮「座位」,下拉选模型、滑动调强度,一键到位。

兼容性:仅支持 DSH 0.1.5 及以上版本。

是什么 · 功能特性 · 视频预览 · 兼容性 · 快速上手 · 使用方法 · 为什么没有思考强度? · 常见问题 · 许可证

是什么

dsh-ui-skin-switcher 是 DeepSeek Harness 的 Web 端插件,注册 conversation.input.model 插件槽,在输入框旁渲染一枚模型 + 思考强度的切换器「座位」。

它与官方第一方模型选择器走同一条通道:通过 ctx.modelDirectories 读取按 provider 分组的模型目录与当前选择(与 /model 面板同源),再经同一条选择接口提交——在这里切换后的结果,就是 /model 面板里看到的结果,并立即作用于当前会话。

样式致敬 Claude Desktop 的切换器:滑动手感、圆角轨道、悬停高亮,都是熟悉的味道。

功能特性

| 能力 | 说明 | | --- | --- | | 模型切换 | 点击模型入口将展开按厂商依次排列的模型列表,选定模型后立即生效,对应的思考强度也会同步变更。 | | 思考强度滑块 | 思考强度滑块支持点击与拖动双操作方式,设有多个强度节点;不同模型适配的强度档位存在差异,调节后立即生效。 | | 最高强度点阵动画 | 达到最高思考强度时,轨道内浮现从右向左扫过的点阵动画,且滑块伴随着发光 | | 逐模型记忆 | 记住每个模型最后一次选择的思考强度,切走再切回,强度不丢 | | 主题自适应 | 全部颜色绑定 DSH 主题变量,深浅主题、透明背景皮肤下都清晰可读 |

视频预览

页面内播放器需要已登录 GitHub,未登录时无法播放;此时请点击下方链接,在新标签页中直接观看。

▶︎ 点击观看完整演示视频 —— 模型切换、思考强度滑块、最高档点阵动画的完整演示。

兼容性

仅支持 DSH 0.1.5 及以上版本。 | DSH 版本 | 可用 | 说明 | | --- | :---: | --- | | 0.1.5-alpha.1 ~ 0.1.5-rc.3 | ✅ | 0.1.5 系列全系可用;已抽点校验 alpha.1、rc.2(端到端实测)、rc.3 | | 0.1.6-alpha.1 / alpha.2 | ✅ | 与 0.1.5 同代接口 | | 0.1.7-alpha.1 / alpha.2 | ✅ | 当前最新发布线;已抽点校验 alpha.2 | | 0.1.3-alpha.2 及更早 | ❌ | 旧一代接口,只有 connection.api,没有 remote.session |

分界线是 0.1.5:从这一版起,DSH 用 ctx.remote.session / ctx.modelDirectories 取代了旧的 connection.api 接口,并移除了 dsh-client-ui-slots 依赖。本插件基于新接口实现,因此在更早的 DSH 上无法加载。

上表依据:对相应版本的 dsh-client-ui-model-selection 包逐一解包,校验 modelDirectories / modelCatalog / selectModel 接口是否存在;并在 0.1.5-rc.2 上完成端到端实测。 本插件通过 DSH 0.1.5 引入的 ctx.remote.session / ctx.modelDirectories 接口读取模型目录与当前选择(与官方 /model 面板同源),在更早的 DSH 上无法加载。

快速上手

系统要求

  • DSH 0.1.5 及以上版本。
  • 已安装 DeepSeek Harness,dsh web 可正常启动。
  • npm 安装无额外要求;从源码运行需要 Node.js >= 22 与 pnpm。

安装(npm,推荐)

dsh plugin --profile web add @domitor-syh/dsh-ui-skin-switcher

然后重启 dsh web,输入框旁即出现切换器按钮。

从源码运行 DSH?在仓库根目录,用「启动命令 + dsh plugin --profile web add @domitor-syh/dsh-ui-skin-switcher」即可,例如:

# 平时启动
pnpm dsh web
# 添加插件
pnpm dsh plugin --profile web add @domitor-syh/dsh-ui-skin-switcher

验证与卸载

装好重启 dsh web,输入框旁出现切换器按钮即刻生效;也可以用 dsh --profile web --dump-config 确认插件配置层已挂载。

卸载(如从源码启动,请用同安装的方式去卸载):dsh plugin --profile web remove @domitor-syh/dsh-ui-skin-switcher,然后重启 dsh web。

使用方法

  1. 切模型:点击输入框旁的按钮,在列表里选一个模型;列表按厂商分组,当前模型带勾选标记。
  2. 调强度:对声明了 reasoningEfforts 的模型,模型右侧会出现思考强度按钮,点击之后——拖动滑块或在轨道上点按即可切换档位。

为什么接入模型之后没有思考强度?

这是因为当前模型没有声明思考强度(reasoningEfforts)或识图能力。为了确保声明的准确,我们没有为所有模型设定统一的思考强度档位——请自行前往该模型所属厂商的官方文档查阅,并修改底层配置文件补上声明;或者直接把厂商的深度思考文档(或文档链接)发给大模型,让它替你直接修改。

生效方式:你修改的是 DSH 主目录(~/.dsh)下的 settings.yaml,不是本插件的文件;DSH 会监听该文件并热加载,立即生效,无需重启,下次启动依然有效。

为什么要由你自己适配?是为了确保声明的准确——声明准确 > 声明齐全。思考强度是每档一个厂商私有线级值,填错会让请求静默失效,所以我们不代填统一档位。

常见问题

滑块只为声明了 reasoningEfforts 的模型显示。模型目录里没有该声明说明这台模型不支持(或未配置)推理力度切换,此时只显示模型列表。

插件颜色全部绑定 DSH 主题变量(--dsw-alias-*),随深浅主题自动翻转。若你用了把背景设成透明的皮肤,浮层会自动启用毛玻璃(backdrop-filter)保住可读性。

许可证

MIT