deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
适用于 DeepSeek Harness (DSH) 的动态 Cordis 插件:自定义主题色、壁纸与面板不透明度,支持磨砂玻璃模糊,设置自动持久化。
filter: blur + 轻微放大消除边缘留白),不破坏界面 fixed 弹层布局localStorage(key: dsh.custom-appearance.v1),关闭设置面板或刷新页面后自动恢复插件已按 DSH 持久插件规范打包成本仓库根目录的 npm 包 dsh-plugin-custom-wallpaper:
package.json — 包元数据 + dsh.client.platform: "web" 声明 + exports["./client"]lib/index.js — host 半(空实现,仅为让 profile 的 cordis loader 有可导入的插件入口)lib/client.js — 客户端 bundle(window.__ModuleLoader__.load 注册工厂,功能与 client.js 一致)应用到本机 DSH 的步骤:
C:\Users\12252\.dsh\profiles\node_modules\dsh-plugin-custom-wallpaper\(已复制)C:\Users\12252\.dsh\profiles\web\cordis.patch.yml,在 insert 列表中追加
{ id: custom-wallpaper, name: dsh-plugin-custom-wallpaper }(已完成)npx @deepseek-ai/dsh web),客户端刷新后插件即生效dsh-plugin-custom-wallpaper;
设置 → 「外观定制」分区出现全部控件以后修改插件:改本仓库 lib/ 下的源码 → 重新复制到 profile 的
node_modules(或 pnpm 重装)→ 重启 DSH。DSH 从 profile 的 node_modules
副本加载,仓库文件只是源码仓库。
插件亦可作为纯客户端动态包(无 Host 半)。在 DSH 会话中:
cordis_define 新建插件(plugin.kind: "new",idPrefix 如 theme),把 client.js 的内容原样作为 code.client;cordis_run 激活返回的 pluginId / packageId;注意:cordis_* 工具只在含 Cordis 工具链的 preset(如「创造模式」)会话中可用。
client.js — 动态包的 code.client 函数体(纯 JS:无 JSX / TypeScript / import)lib/client.js — 持久插件的客户端 bundle(__ModuleLoader__ 工厂版,功能与 client.js 相同)lib/index.js — 持久插件的 host 半(空实现)package.json — 持久插件的包元数据(dsh.client / exports["./client"])README.md — 本说明body::before 固定全屏层;面板 token(--dsw-alias-bg-base、-layer-1/2、-overlay、--dsw-specific-sidebar-fill、边框、文字等)通过 theme.overrideTokens 覆盖为半透明/派生色;--dsw-mask-blur 驱动,跟随「模糊强度」滑块;FileReader 读为 data URL,超过 2560px 或 1.2MB 的位图用 canvas 缩放重编码(PNG 保透明,其余转 JPEG),避免撑爆 localStorage 配额;theme.overrideTokens、styles.insert 均持有 disposer,随插件停止自动清理。filter: blur,修复 v4 中 backdrop-filter 将设置弹窗吸入侧栏(containing block + overflow 裁剪)导致的布局错乱backdrop-filter;因破坏 fixed 弹层被 v5 取代)localStorage 持久化cordis_define + cordis_run。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。