c-ling/dsh-plugin-pet

c-ling★ 2JavaScriptLast synced: 2026-08-14

Open on GitHub

DeepSeek Harness 桌面电子宠物插件:跟随 agent 状态变换心情的内置/自定义/Codex 精灵图伙伴。

README excerpt

dsh-plugin-pet 一个为 DeepSeek Harness Web GUI 打造的桌面电子宠物插件,灵感来自 Codex companion 与 Claude Code Buddy。宠物常驻页面右下角,实时响应 agent 的状态(思考 / 调用工具 / 报错 / 完成 / 等待你操作),并支持改名、缩放、隐藏与完全换肤: - 6 个内置形象 (blob / cat / duck / robot / axolotl / ghost,内联 SVG,纯 CSS 动画) - 自定义图片上传 (PNG / JPEG / GIF / WebP;动图会原样播放) - Codex 风格多帧精灵图 ——导入 Codex 宠物包( pet.json + spritesheet.webp ,V1 1536×1872 与 V2 1536×2288,见 Codex pet package spec), 或配置通用网格(列数 / 行数 / fps / 各心情状态行) 所有状态都保存在 $DSH HOME/storages/dsh-plugin-pet/ 下,重启 dsh web 后仍然保留。 结构 文件 作用 lib/index.js 宿主插件:宠物持久化 + 挂在 harness webServer 服务上的 HTTP 路由 lib/client.js 浏览器 bundle(手写 factory-CJS,无构建步骤):宠物浮层与设置面板 test/ node --test 测试套件,覆盖宿主路由与零依赖图片嗅探器 本包是双面插件:宿主半边是普通 Cordis 插件;客户端半边通过 "dsh": { "client": { "platform": "web", "inject": [], "immediately": true } } 加 "./client" 导出声明,因此 harness 的 client 模块系统会在 /plugins/dsh-plugin-pet/client.js 提供它,并在启动时立即加载。 安装 从 GitHub 安装到 web profile(需要 pnpm 在 PATH 上;没有则用下面的 corepack 方式): pnpm 不在 PATH 上时: dsh plugin 把参数原样转发给 pnpm,直接从本仓库拉取包(pnpm 9+,本机需装有 git )。 安装时若看到 declares no dsh.bundle — installed as a plain dependency 的提示属正常现象: 本插件不是 profile bundle 层,而是通过下面的 loader 行激活。 然后在 /.dsh/profiles/web/cordis.patch.yml 增加一行插入: 重启 dsh web (client-modules …

View full README on GitHub →
Skins / UIcodexcompanioncordisdeepseekdeepseek-aideepseek-harnessdevtoolsdsh

Category