dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Stripe 风格主题插件,给 DeepSeek Harness Web GUI 换上「紫色网格 + 多级柔和阴影 + 亮紫强调」的外观。参考 StyleKit 的 Stripe Style 规范,只改外壳与设计 token,不动对话排版。
白昼紫 · 午夜蓝 ·
白昼紫(#f6f9fc 底 / 白卡片 / #635bff 主色)与 午夜蓝(#0a2540 官方深色 / 深蓝卡片 / #7a73ff 主色)。scale(.98) + 内阴影。1px 低对比描边;1px 细线分隔;亮紫只用于主按钮、选中态、焦点环和关键高亮。test/theme.test.mjs 中自动校验;键盘焦点 3px 紫环;遵循 prefers-reduced-motion。设置页里的主题行:
插件兼容 DSH Web 0.2.1 线(在 0.2.1-rc.3 上完成端到端验证,见 docs/VERIFICATION.md)。
预构建包挂在 GitHub Release 上,直接装,不需要 clone 或构建:
dsh plugin --profile web add https://github.com/Jimxinfang/dsh-theme-stripe-style/releases/download/v0.1.0/dsh-theme-stripe-style-0.1.0.tgz装完重启对应的 dsh web / 桌面应用(Host 只在启动时扫描插件清单,之后换主题即时生效)。
# 在插件目录内,一条命令安装到 Web profile
./scripts/install-local.sh
# 安装到 DSH Desktop 的 desktop profile:先完全退出桌面应用,再执行,然后重新打开
./scripts/install-local.sh desktop
# 卸载时把 install 换成 uninstall
./scripts/uninstall-local.sh desktop脚本会自动找到 DSH 自带的 dsh CLI(macOS 桌面版路径);非标准安装可设 DSH_CLI=/path/to/dsh。也可以直接调用:
dsh plugin --profile web add /absolute/path/to/dsh-theme-stripe-style安装后重启对应的 dsh web / 桌面应用。Host 只在启动时扫描浏览器插件清单,所以新增插件需要重启一次;之后换主题都是即时的。
DSH Desktop 的desktopprofile 归应用自己的插件管理器所有。若命令行安装被应用覆盖或拒绝,可以npm pack生成 tarball 后发布/安装,或把插件发布到 npm 后从插件市场安装。
npm pack # 生成 dsh-theme-stripe-style-0.1.0.tgz
dsh plugin --profile web add ./dsh-theme-stripe-style-0.1.0.tgzRelease 里的 dsh-theme-stripe-style-0.1.0.tgz 与 npm pack 产物一致(含主题代码、图标、验证说明与截图)。
市场目录收录在 awesome-dsh-plugin,一条目录项就是全部投稿:
dsh.bundle.patch 清单、cordis.patch.yml、真实可运行代码、dsh-plugin topic、screenshots.json(6 张截图)、Release 预构建包。data/plugins/Jimxinfang__dsh-theme-stripe-style.yml 使用 category: theme + tarball: 指向 Release 包;仓库创建满 1 天后提 PR(目录 CI 自动检查仓库年龄),维护者会在合并前实际阅读代码。npm publish,账号需 2FA),市场「发现」索引会自动识别 npm 版本,安装体验更好;不发布 npm 时,市场条目通过上面的 Release 包安装。白昼紫 或 午夜蓝。选择立即生效并跨重启保留。出厂外观 恢复 DSH 内置的浅色/深色/跟随系统。之后再点内置外观,插件不会抢回主题。偏好记录在浏览器 localStorage 的 dsh-theme-stripe-style.preference;主题本身通过 DSH 官方 ctx.theme 服务注册与切换。
dsh plugin --profile web remove dsh-theme-stripe-style卸载或热禁用会释放主题注册、移除样式和 body[data-dsh-stripe-style] 标记,界面恢复原样。
npm run check # node --check
npm test # token 完整性 / 对比度 / CSS 门控 / 注入契约 / 生命周期端到端验证使用独立 DSH_HOME + 独立端口的 dsh web 实例,Playwright 驱动系统 Chrome,覆盖首次自动启用、白昼紫/午夜蓝切换、设置行、390px 移动端、出厂恢复,并断言无 console/page error。结果:40/40 hard assertions 通过(另有 8/9 soft checks,1 项为 harness 元检查的预期 WARN)。详见 docs/VERIFICATION.md。
dsh-theme-stripe-style/
├── package.json # dsh.bundle.patch + dsh.client 清单
├── cordis.patch.yml # 唯一的 loader 行
├── index.js # Host 半:空 apply()
├── client.js # 浏览器半:主题注册 + 结构 CSS + 设置行
├── test/theme.test.mjs # 不依赖浏览器的静态校验
├── test/runtime.test.mjs # 用假 DOM 校验生命周期与恢复逻辑
├── docs/ # 验证说明与截图
└── DESIGN.md # 设计系统说明color-mix() / :has() 均在 DSH 支持范围内;老版本 WebView 会回退到不带网格的纯色背景。