dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DeepSeek Pet 是一个嵌入 DeepSeek Harness 网页的交互式桌宠插件。它会跟随当前任务、 工具调用、上下文占用和活跃会话自动切换 DeepSeek 表情,并通过呼吸、弹跳、倾斜、 视差和淡入动画呈现 Live2D 风格效果。
角色使用完整表情图切换,不拆分头部、手脚或五官图层,避免部件错位和表情突变。
prefers-reduced-motion;本插件面向当前的 DeepSeek Harness Web 客户端(DSH 0.1.7 系列及以上)。 Harness 把会话数据拆到了多个客户端面上,插件按新的分工读取:
retainedBy.mainView),不再读取已移除的 sessions.list.current;chat 目标:uiConversation.binding(id).target('chat') 的 legacy 切片;uiSession.sessionStatus 的 pendingInteraction(approval / plan-review / question);uiWorkspace.openSession(id),不再调用已移除的 sessions.open。服务不可用时会自动降级(例如没有 uiConversation 时只显示状态、不显示正文),不会抛错。 升级 Harness 后请重新安装本插件,确保拉到的是匹配当前客户端 API 的版本。
包清单按当前 DSH 插件规范声明:engines.dsh 为 >=0.1.7-0,低于该版本的 Harness 会在安装时 直接给出不兼容提示;react / react-dom 由网页端共享模块表提供,不再作为 peer 依赖; 插件管理器中的标题、简介来自 locale/en.json,图标为 icon.webp(由 scripts/build_assets.py 从立绘裁剪生成)。Web 与桌面版 (--profile desktop)使用同一套插件加载方式,安装命令只需替换 profile 名。
安装需要 Node.js 和 pnpm。如果已经全局安装 dsh,运行:
dsh plugin --profile web add github:keleus/deepseek-pet没有全局 dsh 命令时,无需额外安装 CLI,直接通过 npx 执行:
npx @deepseek-ai/dsh plugin --profile web add github:keleus/deepseek-pet两种命令效果相同,都会从 GitHub 拉取插件并安装到 Web profile。
安装完成后启动或重新启动网页。全局 CLI:
dsh webnpx:
npx @deepseek-ai/dsh web如果网页已经打开,请刷新页面。
git clone https://github.com/keleus/deepseek-pet.git
cd deepseek-pet
npm install
npm run build
dsh plugin --profile web add .如果没有全局 CLI,将最后一条命令替换为:
npx @deepseek-ai/dsh plugin --profile web add .本地安装会链接当前目录,修改代码并重新构建后即可继续调试。
重新执行安装命令即可拉取并安装远端最新版本:
dsh plugin --profile web add github:keleus/deepseek-pet或者:
npx @deepseek-ai/dsh plugin --profile web add github:keleus/deepseek-pet随后重新启动网页进程并刷新页面。
从 0.2.1 起,插件的包名由deepseek-pet改为@keleus/deepseek-pet
(npm 上的 deepseek-pet 属于另一个无关项目,同名会导致插件市场装错包而安装失败)。如果之前装过旧版本,请先移除旧包名再重新安装,避免同时加载两份:
```bash
dsh plugin --profile web remove deepseek-pet
`dsh plugin --profile web remove @keleus/deepseek-pet没有全局 CLI 时:
npx @deepseek-ai/dsh plugin --profile web remove @keleus/deepseek-pet环境要求:Node.js 22.19 或更高版本,以及 Python 3 和 Pillow。
npm install
npm run buildnpm run assets:从源图生成透明 WebP 表情并嵌入客户端代码;npm run build:生成 lib/index.js 和 lib/client.js。主要目录:
src/host/ 插件 Host 入口
src/client/ 网页入口、组件、状态逻辑和动画样式
public/assets/ 表情源素材
scripts/ 素材处理和构建脚本
lib/ 可安装的构建产物MIT © 2026 keleus