Skip to content

Releases

v1.0.0 — 提供商一键开关 / per-provider toggle

Choose a tag to compare

@DeepseekDays DeepseekDays released this 07 Oct 04:08

v1.0.0 — 提供商一键开关 / per-provider toggle

中文

  • 在「设置 → 模型」每个提供商行、「编辑」左边放一个一键开关:关掉哪个提供商,它就从主界面模型选择栏里消失;打开就回来。
  • 只影响模型目录与选择器,不动路由、密钥和 provider 配置 —— 已经选着该模型的旧会话照常工作;与「编辑 / 删除」完全正交,随时可逆。
  • 偏好存在插件自己的 settings 命名空间(Config.disabled,.volatile())→ 持久化进 profile 的 cordis.patch.yml,改动立即生效(不用刷新页面、不用重启 DSH)。
  • 零运行时依赖;install.mjs 只建 junction + 加两条清单记录,不跑 pnpm、不会打断会话。
  • 三个离线验证台:test-filter.mjs(host 16 项)、test-client.mjs(client 13 项)、preview/placement-check.mjs(从真实 DSH 安装抽真 CSS + 真 placeSwitch(),用本机 Edge + CDP 量几何并截图)。
  • 已知边界:不给 deepseek-account 开关(它的行依赖模型目录,摘掉后连自己的行都会消失);别关掉你正在用的默认模型所在的那个 provider。

English

  • Adds a one-click switch to every provider row in Settings → Models, left of Edit: disable a provider and it leaves the composer's model picker; enable it and it returns.
  • Affects the model catalog and the picker only — never routing, keys or provider config. Sessions already using such a model keep working; fully orthogonal to Edit / Delete and reversible at any time.
  • Preferences live in the plugin's own settings namespace (Config.disabled, .volatile()) → persisted into the profile's cordis.patch.yml, applied immediately (no reload, no restart).
  • Zero runtime dependencies; install.mjs only creates a junction and adds two manifest entries — it never runs pnpm and cannot interrupt a live session.
  • Three offline harnesses: test-filter.mjs (host, 16 assertions), test-client.mjs (client, 13), preview/placement-check.mjs (extracts the real CSS and the real placeSwitch() from a DSH install, measures geometry and screenshots through local Edge over CDP).
  • Known limits: no switch for deepseek-account (its row depends on the catalog, so removing it also removes its own row); do not disable the provider of the model you are currently using.
dsh plugin --profile desktop add github:DeepseekDays/dsh-provider-toggle