插件目录 / Developer / dsh-whale-avatar
dsh-whale-avatar
未验证 lhjlol
功能简介
DSH 插件:给助手消息加头像与名字(App 图标 + 吃白饭的蓝色大肥鱼)| Adds app-icon avatar and name to assistant messages
未验证 — 尚未实测
DSH 插件:给助手消息加头像与名字(App 图标 + 吃白饭的蓝色大肥鱼)| Adds app-icon avatar and name to assistant messages 尚未验证——请自行安装测试。
「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-whale-avatar
给 DSH Web UI 的助手消息加上头像与名字:App 图标 + 吃白饭的蓝色大肥鱼。纯 CSS 注入(::before),React 重渲染不会丢,跟随日间/夜间主题令牌。
Adds an avatar (the app icon) and the name to every assistant message in the DSH Web UI. Pure CSS injection — survives React re-renders, theme-aware.
实现
- 目标元素:
[data-chat-flow-kind="assistant-step"](官方 web 应用的助手消息节点)。 - 注入方式:
style标签内一条 CSS 规则,::before伪元素渲染「头像 + 名字」,无 DOM 改动。 - 头像:56px PNG 包进 28×28 SVG 的 data URI(Retina 清晰)。
安装
通过 Oh-DSH Desktop 插件市场安装(或 dsh plugin --profile <name> add github:lhjlol/dsh-whale-avatar)。安装后运行时自动重启生效。
卸载
从市场的插件列表卸载即可;CSS 随之移除。
结构
lib/client.js— 浏览器半(__ModuleLoader__格式),全部逻辑在此。lib/index.mjs— Node 半,空 apply(纯 client 插件)。cordis.patch.yml— bundle patch:向组合插入本插件行。
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-whale-avatar」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:lhjlol/dsh-whale-avatar Headless(CLI)profile:
dsh plugin --profile headless add github:lhjlol/dsh-whale-avatar 实测报告
尚未 L3 验证——若已跑过,见下方失败备注。