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

@leon___/dsh-client-liang-intensity-skin

v0.1.15-settings.4

Published

滑动变祖:an opt-in adaptive reasoning slider skin for DeepSeek Harness

Readme

滑动变祖 · DeepSeek Harness 皮肤

安装

Web 和官方 Desktop 使用独立的 profile。下面的 dsh plugin --profile web 命令只适用于 Web;官方 Desktop 请在桌面应用的「设置 → 皮肤市场」或插件管理器中安装 npm 包 @leon___/dsh-client-liang-intensity-skin,安装后完全退出并重新打开 Desktop。不要把 Web profile 的安装结果当成 Desktop 已安装。

  • 方法一, 提示词安装:

复制以下提示词给 DSH;会先排查冲突再安装,所以较长:

请把“滑动变祖”皮肤安装到 DSH 的 web profile。必须先检查冲突,确认可以继续后再安装。

1. 安装前只读检查 web profile 的 package.json(dependencies 与 dsh.profile.bundles)、profile 的 cordis.patch.yml 和 $DSH_HOME/cordis.patch.yml(如有)。
2. 从当前启用的 bundles 中识别其他皮肤、主题或外观插件:排除 @deepseek-ai/dsh-base、@deepseek-ai/dsh-web-app、dsh-skin-market 和本次目标 @leon___/dsh-client-liang-intensity-skin;读取候选 package.json 的名称、描述、dsh.client/dsh.bundle 声明,必要时再读 README。
3. 如果发现其他已启用的皮肤插件,列出它们并停在安装前,提醒我先停用;未经我确认不得修改任何 profile 文件,也不得执行安装。
4. 如果没有冲突,明确说“未检测到其他已启用的皮肤插件”,然后执行:

dsh plugin --profile web add 'github:kingOfSoySauce/dsh-liang-skin'

5. 安装后读取 web profile 的 package.json,确认 dependencies 和 dsh.profile.bundles 中都有 @leon___/dsh-client-liang-intensity-skin;再检查目标 package.json 的 dsh.client/dsh.bundle 声明和 liang-intensity-skin loader 注册项。任一缺失都要报告安装或注册失败。
6. 告诉我如何重启 DSH Web。不要替我安装、停用或卸载其他皮肤。
  • 方法二(推荐),安装皮肤市场插件后,搜索“滑动变祖”,一键安装

  • 方法三, 或者命令安装;运行前请关闭其他皮肤插件,避免冲突

更多 DSH 皮肤

更多社区皮肤,点击在线浏览皮肤市场

效果展示

交互规则

  • 档位直接读取当前模型的 reasoning.efforts,不写死数量或名称。
  • 任意 N 个档位均匀落在 0–30:两档为 0 / 30,三档为 0 / 15 / 30,五档为 0 / 7.5 / 15 / 22.5 / 30。
  • 拖动期间只做连续视觉预览;指针松开、键盘操作完成或控件失焦时,才通过官方 ModelDirectory 提交最近档位的原始 ID。默认停在模型真实档位;开启「31 档细分」后,可停在 0–30 的任一级外观,实际提交值仍来自模型。
  • 不支持推理或只有一个可选档位的模型不显示滑块。
  • addressed subagent 不显示也不提交滑块。

外观开关

打开 设置 → 滑动变祖 的「启用滑动变祖」。关闭后移除人物、配色、滑块和特效,设置入口仍可打开;开关会自动记住,刷新后不会自行开启。

通用设置的外观恢复 DSH 原生的「浅色/深色/跟随系统」三个选项。皮肤不再写入宿主主题偏好;关闭时保留用户当前选择的原生主题。

插件设置

打开 设置 → 滑动变祖,或侧栏 插件 → 滑动变祖(包名 @leon___/dsh-client-liang-intensity-skin)。两个入口通过官方 settings.section 和 plugins.bundle.config 复用同一套设置,点击开关后立即生效,并自动保存在当前浏览器,不需要保存按钮。

| 设置 | 默认 | 行为 | | --- | --- | --- | | 启用滑动变祖 | 开 | 控制整体外观,不停用插件本身;关闭后仍可打开设置。 | | 绑定思考等级 | 开 | 滑块同时修改模型思考档位;关闭后只调外观。 | | 31 档细分 | 关 | 绑定模式下增加 31 个视觉停点;不增加模型推理档位。 | | 隐藏滑块 | 关 | 隐藏输入框旁的滑块;绑定开启时,人物和配色仍跟随模型档位。 | | 背景遮罩 | 开 | 仅柔化会话列人物,不覆盖文字或原生弹窗。 | | 仙侠风 | 关 | 单独切换人物素材,不联动粒子或其它功能。 | | 粒子效果 | 关 | 显示装饰粒子;关闭后释放动画和 GPU 资源。 | | 空闲时淡化 | 关 | 空闲时淡化人物,生成或拖动时突出人物。 |

四项可选效果和隐藏滑块默认关闭,保留原有外观。只加载选中的一套人物;原 PR 的开发调参浮窗和聊天框齿轮不进入此版本。隐藏控件不会提交或取消模型选择;未绑定时保留当前外观。控件复用 DSH 原生 Switch,点击标题不触发切换。

插件页入口已对照 Web 0.1.7-rc.2 与官方 Desktop 0.2.1-rc.2 的契约;缺少该官方插槽的更旧宿主仍能显示皮肤,但没有此设置页。Windows 原生效果仍需实机验收。

更新

设置页提供「检查更新」,从固定官方 npm 包检查已发布的新版本,并同时核对当前运行和实际安装版本。发现更新后显示明确的目标版本,点击「更新到版本」才会调用 DSH 官方插件管理接口;不会把较新的本地预览版降级为较旧的正式版。

更新保留宿主原有的 Bundle 启用状态,不影响本地总开关和外观偏好。需要重启、宿主拒绝、失败或结果未知均按实际结果显示。当前 Desktop 的某些 HMR 场景会拒绝覆盖已安装包;此时应通过皮肤市场的完整更新流程处理,本插件不会自行卸载、强制安装或授予兼容性豁免。

Windows Desktop 故障诊断

Windows Desktop 用户如果仍然看到人物很淡、遮罩异常或滑块无效,可以在 DSH WebView 的 DevTools Console 执行 scripts/dsh-liang-diagnostic.js 的完整内容。官方 Electron 通常可用 Ctrl+Shift+I 打开 DevTools;如果发行版关闭了快捷键,使用该版本已有的 DevTools 打开方式。

脚本只读取 DOM、computed style、CSS 能力、资源尺寸和 elementsFromPoint() 层叠结果,不读取 cookie、localStorage 值、消息内容或凭据;执行后会在 Console 打印 [dsh-liang-diagnostic] JSON,并尝试复制到剪贴板。将这段 JSON 连同 DSH Desktop 版本、皮肤包版本发回即可。

快速判断:

  • bodyData.liangSkin 为 null:先查皮肤启用/外观入口注入,不是图片透明度问题。
  • portrait.naturalWidth 为 0:查插件资源路径或安装包,不是层叠问题。
  • scrim.display 为 block 且 portrait.opacity 为 1:当前使用背景遮罩控制饱和度;可在「通用设置」关闭遮罩做 A/B 对比。
  • stacks 中人物位置上方出现不透明的 frame、centerCol 或其它宿主 surface:记录该节点的 backgroundColor、opacity、zIndex,不要先继续降低人物 opacity。

命令安装

需要先安装 DeepSeek Harness;本轮已在 DSH Web 0.1.7-rc.2 检查原生控件,macOS Desktop 由用户试用;Windows Desktop 仍需更新后的实机反馈。安装本身可以在 DSH 运行时执行(只改动磁盘配置),重启后生效。三种方式任选其一:

安装前请确保已关闭其他皮肤插件,避免冲突。

方式一:从 GitHub 安装最新版(推荐)

dsh plugin --profile web add 'github:kingOfSoySauce/dsh-liang-skin'
dsh --profile web --dump-config | grep -B1 -A2 liang-intensity

方式二:从 GitHub Release tarball 安装

从本仓库 Releases 页面下载 leon___-dsh-client-liang-intensity-skin-0.1.11.tgz(包内已包含构建好的 lib/client.js,安装时不需要执行任何 prepare 脚本),然后:

dsh plugin --profile web add ./leon___-dsh-client-liang-intensity-skin-0.1.11.tgz

适合不方便走 git 的环境;相对路径按你运行命令的目录解析。

方式三:克隆后从本地路径安装(开发迭代)

git clone https://github.com/kingOfSoySauce/dsh-liang-skin.git
cd dsh-liang-skin
dsh plugin --profile web add .

dsh plugin 会把相对路径锚定到你运行命令的目录(而不是 profile 目录),所以在克隆目录里执行 add . 装的是指向克隆目录的 link 依赖:改完源码运行 npm run build,重启 DSH 即生效,无需重新安装。

验证与重启

安装成功后 dsh plugin 会自动把插件注册进 profile 的 dsh.profile.bundles(见 ~/.dsh/profiles/web/package.json),无需手动改配置;--dump-config 的输出中应出现 dsh-client-liang-intensity-skin 配置层(上面命令里的 grep 就是为此准备的)。

如果正式 DSH 正在运行,让执行安装的 agent 给用户两个选择:

  • a. agent 自行重启:agent 终止旧进程后重新运行 dsh web;
  • b. 用户手动重启(推荐):在运行 DSH 的终端按 Ctrl+C,再运行 dsh web。

重启后浏览器会自动加载新的客户端插件,无需强制刷新。当前会话会中断,但 DSH 会话有磁盘持久化,重启后可以恢复。

卸载

dsh plugin --profile web remove @leon___/dsh-client-liang-intensity-skin

remove 会自动把插件从 dsh.profile.bundles 中摘除;重启后设置入口完全移除。

常见问题

  • pnpm 阻止构建脚本:pnpm ≥ 10 默认不执行第三方依赖的 build/prepare 脚本。当前皮肤没有 prepare 脚本,正常不会触发;若 pnpm 安装失败并给出提示,按 dsh 打印的说明在 ~/.dsh/profiles/web/pnpm-workspace.yaml 的 allowBuilds 下加入对应 key 后重试。
  • 网络:方式一需要能访问 github.com(pnpm 经 codeload 拉取);方式二只需能下载 GitHub Release 附件。
  • pnpm 缺失:dsh plugin 依赖 PATH 里的 pnpm,缺失时会明确提示。
  • 端口占用:dsh web 默认监听 3080(可用 --port 修改),重启前确认旧进程已退出。

本地开发

npm install
npm test
npm run build
npm run test:compatibility

修改 client 源码后需要运行 npm run build,并一起提交更新后的 lib/client.js 和 source map。

浏览器兼容性回归使用本机 Chrome / Chromium;可通过 CHROME_PATH 指定浏览器可执行文件,不会自动下载浏览器。测试使用宿主布局夹具,不能代替官方 Desktop 真机验收。本轮兼容性修复的验证步骤见 兼容性验证说明。

灵感与素材来源

本插件的“滑动变祖”视觉概念与人物图片素材源自 Lichtspektrum/liang-intensity-calibrator。插件在原项目 0–30 强度轴的基础上,将视觉变化接入 DeepSeek Harness 的推理等级选择。

运行时素材已包含在插件中,安装后不需要额外下载。当前接入 24 张经过审核的人像锚点,滑动时直接切换最近锚点,不做图片交叉渐变。