DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

asakumizy /

asakumizy/dsh-effort-slider

Verified

Animated three-stop thinking-effort slider for the DeepSeek Harness (DSH) composer — DSH 插件

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@cb2dfc4f

dsh-effort-slider

把 DeepSeek Harness 编辑器里「模型 / 推理等级」那一行,换成一条带动画的思考强度滑条。

思考强度滑条

特性

  • 三档:中 / 高 / 极高(对应 Codex 的 Standard / Extended / Extra High)。会话当前所在的那一档永远不会被折叠掉。
  • 每档都有动画:拇指弹簧飞行 + 落地爆点 + 落档波纹;渐变填充里的流动粒子常驻,随档位变浓变淡,不会每换一档就整块重挂重放。
  • 不重排、不置灰:切换档位时不出现"正在切换"文字、不禁用列表、不移动面板;只更新被改的那一格。
  • 多种操作方式:拖动、点击轨道、方向键 / Home / End 都能改档;拖动过程只预览,松手才提交。
  • 冷启动安全:模型目录解析永不抛错。解析失败会自动重试、自愈重挂占位,并把失败原因显示在按钮上,而不是静默退回原生菜单。

安装

这是一个 DSH 插件包(Client 半边接管 conversation.input.model 座位)。

# 1. 装进 profile
cd ~/.dsh/profiles/<profile>
pnpm add file:/绝对路径/dsh-effort-slider
# 2. 在 profile 的 cordis.patch.yml 里挂上 Host 行
- insert:
    - id: effort-slider
      name: '@local/dsh-effort-slider'
  1. 重载窗口(Ctrl+R)。

开发

node --check client.js          # 语法
node test/cold-start.test.cjs   # 9 条回归用例

回归覆盖:冷启动注入(目录解析失败后重试成功)、永久失败时的可见报错、条目被摘除后的自愈重挂、菜单几何(锚点/高度/行数不漂移)、三档折叠规则、弹簧曲线与按档位重挂的粒子常驻。

改界面文案请改 client.js 顶部内联的 zh / en 对象 —— 运行时不读 locale/*.json。

说明

动画参数参考 Codex 桌面端 effort 选择器的 motion token(由其客户端反编译得到:thumb 弹簧 stiffness 420 / damping 38、填充 0.25s cubic-bezier(.42,0,.58,1)、顶档拇指缩放 32/28、MaxBurst 落地爆点),CSS 为原创实现,不包含任何第三方代码或素材。

License

MIT

—/ 5

No ratings yet

Verified DSH bundle

Commit cb2dfc4fc3b5

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout