packages/dsh-task-board
zhu1090093659/dsh-web侧边栏多列任务看板:卡片交给真实 DSH 智能体会话执行,支持 cron 定时(Host 侧到点执行,关浏览器也生效)。
上传一张图片,在页面内抠掉背景做成浮在 Harness 上的桌宠,带呼吸摇摆动画和实时账户余额气泡。
Turn any picture into a desk pet that floats over the Harness Web UI. The background is removed right in the page, the figure gets a sticker outline and a little idle life, and a speech bubble keeps the current DeepSeek account balance in view.
把任意一张图片变成浮在 Harness 界面上的桌宠:在页面里直接抠掉背景、加白描边、让她会呼吸会摇摆, 头顶气泡实时显示当前 DeepSeek 账户余额。
From the plugin market (once listed):
dsh plugin --profile <profile> add dsh-cutout-pet
Straight from this repository:
dsh plugin --profile <profile> add github:AlannerFranklin/dsh-cutout-pet
or install the folder as a bundle from the Plugins page (Install from folder).
After installing, open Settings → Cutout Pet, choose an image, adjust Background tolerance if needed, and press Use as pet.
| Half | Responsibility |
|---|---|
client.js | Registers the pet in shell.overlay and the settings page in settings.section. Runs the cutout in a canvas: border-colour flood fill → main-silhouette filter → 3×3 alpha feather → trim → white outline → PNG data URL. |
index.js | Serves /.dsh-pet/art.png (uploaded or bundled default), /.dsh-pet/state, /.dsh-pet/art (POST/DELETE) and /.dsh-pet/balance. Stores the upload at <DSH_HOME>/plugin-data/dsh-cutout-pet/art.png. |
assets/default.png | Original strawberry placeholder drawn for this plugin (MIT, same as the code). |
Uploads are validated as real PNG data (signature, IHDR size, 3 MiB cap) before they are written.
功能
安装:dsh plugin --profile <profile> add github:AlannerFranklin/dsh-cutout-pet,然后在
「设置 → 抠图桌宠」上传图片、点「保存为桌宠」。
限制:抠图是颜色键算法而不是分割模型,纯色/简单背景效果最好;照片类背景建议关掉去背。
MIT © AlannerFranklin. The default strawberry mascot is drawn for this plugin and covered by the same license; uploaded artwork stays on the user's machine and is never redistributed by the plugin.