zhtx2024/dsh-skin-switcher

Plugin插件 Native原生 ⭐ 3 NOASSERTION UI & Themes界面与主题

DeepSeek Harness Web GUI 皮肤切换插件:在设置界面一键切换已安装的皮肤

Project Overview项目介绍

dsh-skin-switcher is a native plugin built exclusively for the DeepSeek Harness (DSH) Web GUI. It adds a dedicated "Skins" section to DSH's official settings page, where users can view all installed DSH skins and switch between them with one click. The recommended way to install it is via DSH's official CLI: run dsh plugin --profile web add dsh-skin-switcher in your terminal. For development and debugging, you can clone the GitHub repository and install it via a local link with the DSH CLI. After installation, restart dsh web or rely on hot reload to see the new Skins section in your DSH settings.

This plugin is designed for users who want to customize the look of their DSH Web interface. It automatically discovers all installed skins, including legacy skin packages that follow the naming convention dsh-client-ui-skin-* and v2 asset skins stored in the skin center or the user's local ~/.dsh/skins directory. It also supports any npm scope for skin packages, so third-party hosted skins can be detected correctly. Users can override the default skins directory with the DSH_SKINS_HOME environment variable if they prefer a different storage location. Switching skins is handled via hot reload, so users do not need to restart the DSH service to see their new skin take effect.

This plugin is released under the BSD-3-Clause license, and its core skin patch management logic was ported from another existing open source DSH project. It requires version 0.2.x or higher of the DSH skin center for v2 asset skin support. It also handles conflicts between old and new skin systems by automatically disabling legacy skin centers that are older than version 0.2, to avoid duplicate or conflicting skin management behavior. When the plugin starts, it automatically migrates active legacy skins to the new v2 activation file format, so users do not lose their existing skin configuration after an upgrade. If you uninstall the plugin, you can manually delete any leftover configuration from the cordis.patch.yml file if needed.

这是一款专为 DeepSeek Harness(DSH)Web GUI 开发的原生皮肤切换插件,可通过 DSH 官方 CLI 命令一键安装到 web profile 中,安装后会在 DSH 的官方设置面板中新增一个「皮肤」设置页,自动列举所有已安装的 DSH 皮肤,并提供一键切换功能,同时支持一键恢复 DSH 的官方默认外观,兼容旧版 legacy 皮肤和新版 v2 资产皮肤两种格式,热切换数秒内即可生效,无需手动修改代码。

面向需要自定义 DSH Web 界面外观的用户,支持自动发现 profile 目录下所有包名以 dsh-client-ui-skin- 开头的皮肤包,同时支持任意 npm 作用域的皮肤包,也能识别 dsh-web-ui 的 dsh-skins 聚合载体和新版皮肤中心 v2 的资产引擎,新版皮肤存放在用户目录 ~/.dsh/skins 下,也可通过环境变量 DSH_SKINS_HOME 自定义存储路径。

本插件遵循 BSD-3-Clause 许可证发布,皮肤切换的核心管理逻辑移植自现有开源项目,支持 v2 皮肤中心 >= 0.2.x 版本;若插件卸载后残留配置,用户可手动删除 cordis.patch.yml 中 dsh-skin-switcher 管理区块内的内容,插件启动时会自动迁移旧版活跃皮肤到新版激活文件,不会丢失用户原有外观配置。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-skin-switcher

把 zhtx2024/dsh-skin-switcher 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-skin-switcher

DeepSeek Harness Web GUI 的皮肤切换插件:在设置界面新增「皮肤」页,列出所有已安装的皮肤并提供一键切换按钮,支持一键恢复官方默认外观。

特性

  • 设置界面内切换:官方设置面板新增「皮肤」页(settings.section),已安装皮肤自动列出,无需改代码
  • 统一管理所有皮肤:自动发现 profile 中所有 dsh-client-ui-skin-* 皮肤包(支持任意 npm scope,如 @dsh-external/dsh-client-ui-skin-maid-atelier),以及 dsh-web-ui 的 dsh-skins 聚合载体
  • 支持皮肤中心 v2 资产引擎(0.4.0+):皮肤中心(@linxin666/dsh-client-ui-skin-center >= 0.2.x)内置的 skins/ 与用户目录 ~/.dsh/skins(DSH_SKINS_HOME 可覆盖)中的 v2 皮肤自动列出;切换写入 ~/.dsh/skin-center-active.json,中心在页面加载时应用,无需 cordis 行
  • 热切换,无需重启:legacy 皮肤切换写入 ~/.dsh/cordis.patch.yml 的 managed section(原子重写),DSH 配置监视器数秒内热重载,页面自动刷新生效
  • 一键恢复默认:「恢复默认」回到官方原版外观
  • 升级不丢外观:启动时自动把旧版活跃皮肤迁移到 v2 激活文件(存在 v2 孪生时),并解除旧版写下的皮肤中心禁用行
  • 单一管理权威(仅旧版中心):legacy 皮肤中心(< 0.2,写 patch 的竞争者,行 id 自动从 bundle patch 发现,兼容 ui-skin-center 与 web-ui-skin-center)自动禁用;v2 中心是资产引擎,不会被禁用

安装

从 npm 安装(推荐)

dsh plugin --profile web add dsh-skin-switcher

从 GitHub 仓库安装(改代码调试)

# 1. 克隆本仓库
git clone https://github.com/zhtx2024/dsh-skin-switcher.git

# 2. 安装进 web profile
dsh plugin --profile web add link:<克隆路径>/dsh-skin-switcher

然后重启 dsh web(或依赖热重载),打开 设置 → 皮肤。

卸载

dsh plugin --profile web remove dsh-skin-switcher

卸载后如仍残留 ~/.dsh/cordis.patch.yml 中的 managed section,可手动删除 # --- dsh-skin-switcher managed --- 与 # --- end dsh-skin-switcher managed --- 之间的内容。

工作原理

半 文件 职责
Host lib/index.js 挂载 /api/skin-switcher/state 与 /api/skin-switcher/use 路由;扫描 profile node_modules 发现皮肤(legacy 包 + v2 资产);管理 boot patch 的 managed section 与 v2 激活文件 ~/.dsh/skin-center-active.json
Browser lib/client.js 注册设置面板 settings.section「皮肤」页;切换后轮询 state 直至配置监视器确认,再刷新页面加载新的客户端插件图

皮肤切换协议

  • legacy 皮肤:非激活皮肤 → 仅对「已组合」的皮肤写入 - id: <wiringId> + disabled: true(DSH 官方 loader patch 语法):bundle-wired 的皮肤,或 bundle patch 已插入其行的皮肤;仅安装而未组合的皮肤不写行,避免 "entry not found" 警告
  • 激活皮肤(bundle-wired,即其包名在 dsh.profile.bundles 中)→ 不写行,解除禁用即恢复
  • 激活皮肤(未 bundle-wired,如 dsh-skins 载体中的皮肤)→ 自动在 profile node_modules 建链接并写入 insert 行
  • v2 资产皮肤(中心引擎存在时):激活 → 写入 ~/.dsh/skin-center-active.json 的 {"active": "<id>"},中心在每次页面加载时应用;同 id 存在旧版皮肤包时其 wiring 行恒保持禁用,两套机制不叠加
  • 皮肤中心 → 旧版(< 0.2)从 profile bundle patch 中发现其实际行 id(如 ui-skin-center / web-ui-skin-center),恒定写入 disabled: true;v2 中心(>= 0.2,资产引擎)不写禁用行
  • 恢复默认 → 清空激活文件({"active": null})并禁用所有 composed legacy 行
  • managed section 恒为合法 YAML 数组(无行时写 []),保证 patch 文件始终可被 DSH 解析

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-angelina-pet 下一个 Next dsh-web-search-tavily →