deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
DeepSeek Harness 「美化界面」一键皮肤插件 / One-click UI beautify skin for DeepSeek Harness
一个 DeepSeek Harness 客户端插件:在 设置 → 插件 → 插件配置 页提供一张「美化界面」配置卡片和标准开关,开启后为整个 Web 界面叠加极光渐变背景、毛玻璃面板、渐变用户气泡与品牌色滚动条;关闭后完全还原默认外观。
A DeepSeek Harness client plugin: a configuration card with a standard switch under Settings → Plugins → 插件配置; when enabled it layers an aurora-gradient background, glass panels, gradient user bubbles and brand-colored scrollbars over the whole web surface, and restores the stock look completely when disabled.
settings.plugin.item 槽位,出现在「设置 → 插件 → 插件配置」标签页,与其他可配置插件并列。theme.overrideTokens() 叠加 --dsw-* token 覆盖层,侧边栏、输入框等面板呈半透明毛玻璃质感;不支持 color-mix() 的旧浏览器自动回退为不透明配色。settings.yaml 的 beautify: 命名空间,跨浏览器、跨设备一致。插件分为两个半区:
宿主半区(lib/index.js)
用 settingsNamespace("beautify") + installSettingsSection(ctx, NS, Config, config, …) 向设置服务注册命名空间,schemastery schema 为 enabled: boolean = true;
该设置节持久化在 profile 的 settings.yaml:
beautify:
enabled: true
注册这个设置节是必须的:0.1.1-rc.2 的「插件配置」页只渲染 宿主 serve 的设置命名空间 ∩ 声明了同名 key 的卡片 的交集——没有宿主半区,卡片永远不会被派发。
浏览器半区(lib/client.js)
key: "beautify",通过 ctx.settingsScope.bind({ namespace: "beautify" }) 绑定作用域,经 scope.set("enabled", …) 读写;ctx.theme.overrideTokens(SOURCE, TOKENS) 叠加半透明面板、渐变气泡、品牌色等 --dsw-* 别名/专用 token,关闭时精确还原;html[data-dsh-beautify="on"] 属性为门,开关只切换这一个属性;需要:DeepSeek Harness(Web profile,即浏览器 GUI 所在服务)。以下以便携版目录
<DSH>(含data/profiles/web与data/profiles/node_modules)为例,已在0.1.1-rc.2上验证。
在 DSH 的会话里粘贴本仓库地址:
AI 会替你完成全部安装步骤:把 lib/ 与 package.json 放进 profile 的 node_modules、在 cordis.patch.yml 的 insert 列表注册 ui-beautify、重启服务并验证加载。
重启后打开 设置 → 插件 → 插件配置 即可看到「美化界面」卡片。
将本仓库的 lib/ 目录与 package.json 放入 profile 的 node_modules 对应路径:
<DSH>/data/profiles/node_modules/@deepseek-ai/dsh-client-ui-beautify/
├── package.json
└── lib/
├── index.js
└── client.js
在 <DSH>/data/profiles/web/cordis.patch.yml 中加入(若已有则跳过):
- insert:
- id: ui-beautify
name: '@deepseek-ai/dsh-client-ui-beautify'
重启 DSH 服务,刷新浏览器页面。
在 profile 的 package.json 中把插件声明为 GitHub 依赖后执行 pnpm install(需本机装有 git 与 pnpm):
{
"dependencies": {
"@deepseek-ai/dsh-client-ui-beautify": "github:sqs404/dsh-client-ui-beautify"
}
}
安装完成后仍按方式 B 的第 2、3 步启用并重启。
settings.yaml 并全端同步;系统开启「减少动态效果」时漂移/粒子动画自动停用。未加载完成时开关短暂禁用,就绪后即可交互。
0.1.1-rc.2(Windows 便携版)上开发并验证。@deepseek-ai/schemastery、@deepseek-ai/dsh-settings。slots、locale、theme、settingsScope(分别由 dsh-client-runtime、dsh-client-locale、dsh-client-ui-theme、dsh-client-ui-settings 提供)。react ^18.2.0、@deepseek-ai/cordis ^4.0.1。lib/ 即发布产物;纯前端实现视觉部分,除设置读写外不发起任何网络请求。dsh-client-ui-beautify/
├── lib/
│ ├── index.js # host 半区:注册 beautify 设置命名空间
│ └── client.js # browser 半区:配置卡片、标准开关、token 覆盖层、门控样式表
├── package.json # DSH 客户端插件元数据(dsh.client 约定)
├── README.md
└── LICENSE # MIT
遵循 DeepSeek Harness 社区插件建议:插件托管在作者自己的 GitHub 仓库,并添加了 dsh-plugin topic 方便发现。姊妹插件:dsh-client-ui-cache-hit(侧边栏缓存命中率卡片)。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。