lihang-lh/dsh-moon-light
给 DSH Web 界面加一圈氛围光:根据当前会话的运行状态,在屏幕最外层自动显示 不同颜色、不同转速/闪动节奏的光。默认柔光晕(散光)——无边框、由屏幕边缘 平滑向内淡出的多层内散射光,并带轻微有机不规则;跑马灯(旋转光带)与线性渐变 仍作为可选样式。
catalog descriptioncatalog 简介 / catalog description:dsh 的氛围灯,让你直观的看到 agent 是否完成或者是否在运行
Project Overview项目介绍
dsh-moon-light is a native UI theme plugin built exclusively for the DeepSeek Harness (DSH) web client. It adds a border ambient lighting effect to the DSH interface that changes color and animation based on the current session’s status. To install the plugin, you run the command dsh plugin --profile web add "github:lihang-lh/dsh-moon-light" in your terminal, then you must restart the dsh web process for the plugin to load properly. After restarting, it automatically adds a dedicated “Mood Light” settings section to DSH’s settings panel, where all parameters can be adjusted visually with changes saved instantly to your browser’s localStorage.
The plugin is designed for DSH users who want to add a personalized visual touch to their workflow and get intuitive visual feedback for session status. After installation and the required restart of the DSH web client, users can open the settings panel to tweak a wide range of parameters, including aperture width, opacity, effect style, light animation speed, and custom colors for each session state. Each session state maps to a specific lighting pattern: when the agent is working, it shows a flowing green light; when the session is idle or complete, it switches to a steady pink light; when there is a pending interaction waiting for user input, it displays a slow pulsing yellow light; and it turns off entirely for blank or disabled sessions.
This is an open source project released under the permissive MIT license, so it is free to use, modify, and distribute. It only depends on the React module that is already bundled with DSH, so no extra dependencies or build steps are required to run it. It automatically respects the user’s prefers-reduced-motion browser setting, pausing all animations when that option is enabled. Admins can set deployment-wide default configurations via profile patches, developers can test changes locally using the link: install method, and anyone can preview the effect without installing the plugin by opening the standalone docs/preview.html file in a browser.
这是专为DeepSeek Harness(DSH)Web界面开发的原生主题插件,作用是给DSH界面外层添加不同状态的氛围灯光效果。插件遵循DSH client-modules协议,可以通过DSH官方CLI命令直接从GitHub仓库安装,安装完成后需要重启dsh web服务才能生效。它会在DSH的设置面板中注册专门的「氛围灯」设置页,所有参数都支持可视化调节,修改后立即生效并持久化保存在浏览器localStorage中。
这款插件面向想要个性化定制DSH界面、给会话状态增加直观视觉反馈的用户使用。日常使用流程十分简单:通过CLI命令完成安装后,重启dsh web服务,打开DSH设置面板的氛围灯分页,就可以按需调节光圈宽度、不透明度、效果样式、不同状态的灯光颜色等参数,随时可以修改适配个人喜好。不同会话状态对应不同灯光效果,运行中为绿色流动光,空闲完成为粉色稳态光,待处理交互为黄色慢脉冲光,空白会话则自动关闭灯光。
该插件是开源项目,采用MIT许可协议,仅依赖DSH平台自带的React模块,不需要额外的构建步骤。它会响应浏览器的prefers-reduced-motion设置,当用户开启减少动画选项时自动停止氛围灯动画。管理员还可以通过profile补丁配置部署级默认参数,开发者可以用本地link方式安装调试,不需要安装插件也能直接打开独立预览页查看效果。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-moon-light(lihang-lh/dsh-moon-light)
仓库:https://github.com/lihang-lh/dsh-moon-light
本站详情页:https://www.yhbd.top/plugins/lihang-lh-dsh-moon-light/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 6 · 最近提交 2026-08-25 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
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 "github:lihang-lh/dsh-moon-light"
把 lihang-lh/dsh-moon-light 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-mood-light — 会话氛围灯
给 DSH Web 界面加一圈氛围光:根据当前会话的运行状态,在屏幕最外层自动显示 不同颜色、不同转速/闪动节奏的光。默认柔光晕(散光)——无边框、由屏幕边缘 平滑向内淡出的多层内散射光,并带轻微有机不规则;跑马灯(旋转光带)与线性渐变 仍作为可选样式。
| 会话状态 | 氛围灯 | 判定依据(宿主实时下发的会话摘要) |
|---|---|---|
| 运行中(agent 正在工作) | 🟢 绿色光带流动 + 闪动 | summary.running === true |
| 完成 / 空闲(无待处理) | 🩷 粉色光带(稳态) | 非 running、非 blank、无待处理 |
| 有待处理(审批 / 计划确认 / 提问) | 🟡 黄色光带(慢速脉冲,优先级最高) | summary.pendingInteraction 非空 |
| 无会话 / 空白会话 / 已禁用 | 关闭 | 无当前会话或 blank === true |
光带为纯装饰(pointer-events: none),不遮挡任何操作;支持
prefers-reduced-motion 时自动停止动画。
设置
插件会在设置面板里注册一个「氛围灯」页面(设置 -> 氛围灯),全部参数可视化调节, 修改立即生效并持久化到 localStorage:
- 启用氛围灯:开关
- 光圈宽度:1–40 px 滑块
- 不透明度:5%–100% 滑块
- 效果样式:
柔光晕(散光,默认)/跑马灯(旋转光带)/线性渐变(静止) - 光带样式(仅跑马灯):
分段跑马灯(经典)/平滑渐变(柔和) - 跑马灯转速:0–60 秒/圈(0 = 静止)
- 扩散范围(仅柔光晕):0–200 px,控制光晕由屏幕边缘向内散射的程度
- 不规则强度(仅柔光晕):0–10,控制光晕边缘的轻微有机波动(0 = 关闭)
- 亮度闪动:0–10 秒/周期(0 = 不闪动,可每个状态单独设置)
- 状态渐变色:运行中 / 完成 / 待处理 三组颜色各 3 个取色器
- 恢复默认:一键还原
安装
从 GitHub 仓库安装:
dsh plugin --profile web add "github:lihang-lh/dsh-moon-light"
装完重启 dsh web——客户端插件名录在启动时组合,重启后刷新页面即可看到
效果(设置面板里改的配置保存在 localStorage,重启后自动沿用)。
开发期改代码建议用本地 link: 安装(符号链接,改完重启即生效,无需重装):
dsh plugin --profile web add "link:/你的本地路径/dsh-moon-light"
卸载:
dsh plugin --profile web remove dsh-moon-light
配置优先级
localStorage(设置面板里改的)> 插件行 config(cordis.patch.yml / profile
补丁)> 内置默认。第三方插件的命名空间不在宿主 settings wire 的暴露白名单内,
所以用户配置保存在 localStorage(与 dsh-skin 同一模式)。
通过 profile 补丁覆盖部署级默认(不修改插件本体):
# ~/.dsh/profiles/web/cordis.patch.yml
- id: mood-light
config:
width: 12 # 光圈厚度(px)
rotate: 24 # 跑马灯转速(秒/圈)
gradientType: 'glow' # 默认柔光晕(散光);可选 'conic' | 'linear' | 'glow'
glowSpread: 40 # 扩散范围(px,仅 glow)
glowWobble: 2.5 # 不规则强度(0..10,仅 glow)
states:
running:
colors: ['#22c55e', '#4ade80', '#bbf7d0']
flash: 0.8
原理(供二次开发)
- 插件是手写 bundle,遵循 DSH client-modules 协议:
window.__ModuleLoader__.load({ id, factory }),只依赖平台种子模块react,通过slots服务协作,无需构建步骤。 - 渲染位置:
shell.overlay(frame 级浮层,点击穿透)+settings.section(设置面板页面),注册 id 均为mood-light。 - 状态分析:
shell.overlay标准 props 的useSessions快照选择器读出当前 会话SessionSummary,按running/blank/pendingInteraction映射到 running / success / warning 三种模式(见client.js的resolveMode)。 - 跑马灯实现:
position: fixed; inset: 0层 +padding+mask-composite: exclude抠出外圈光环;内层一个inset: -50%的conic-gradient旋转盘被 mask 裁成光带,rotate控制转速(经典分段 跑马灯用硬边界色标,平滑模式用连续渐变),flash控制整体明暗呼吸。 - 柔光晕(glow)实现:
position: fixed; inset: 0的满屏层(无背景、不用 mask 抠边),由 JS 用状态主色/次色 +width+glowSpread拼出一串 多层 blur>0 的嵌套 inset box-shadow(无零模糊实心核心层,spread 由width递增至width+glowSpread、alpha 递减——光由屏幕边缘平滑向内淡出、 无清晰棱线)注入--ml-glow-shadow;再叠加一个隐藏<svg>里的feTurbulence+feDisplacementMap滤镜,glowWobble作为位移 scale 让光晕边缘呈轻微有机不规则(glowWobble = 0时不应用滤镜)。 - 默认效果样式为柔光晕(散光):开箱即软、无边框;
conic/linear仍可在 设置页或行配置里选回。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Aisland-SJL/dsh-worktable
left0ver/dsh-file-review
yoli-mi/dsh-client-ui-custom
Fengze233/dsh-vscode
chouxiaohuai/dsh-uiskin-theme
meyaomiao/dsh-server-deck