dsh-pet-quota
DSH 桌面宠物的今日 token 额度气泡:按用量分轻度/中度/重度三档,档位只用一个彩色圆点表示,没有进度条也没有百分比。 / Today's token quota bubble for the DSH desktop pet: three usage tiers shown as one coloured dot, with no progress bar and no percentage.
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Daizhdd/dsh-pet-quotaドキュメント
README 全文を読む ↗配置
设置页在 设置 → 宠物额度:今日用量与档位阶梯、两个阈值输入框、三个开关
(显示额度气泡 / 任务完成时冒泡 / 长时间运行中冒泡)。改动写入
$DSH_HOME/pet-quota/config.json,立即生效并跨重启保留。
命令行/脚本改配置:
curl -X POST http://127.0.0.1:
/api/pet-quota/config \
-H 'content-type: application/json' \
-d '{"lowMax":30000000,"midMax":80000000}'
| 路由 | 用途 |
|---|---|
GET /api/pet-quota/today | 当日用量、档位、阈值、开关、按模型分布 |
POST /api/pet-quota/config | 改阈值与开关(越界、或重度阈值 ≤ 中度阈值会被拒) |
GET /api/pet-quota/boot | 诊断:前端是否已进启动图、事件形状采样 |