其他
插件
dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:qianmoyishu/dsh-balance
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DeepSeek Harness 的 DeepSeek API 余额常驻小部件 + 峰谷定价高峰时段提示。
shell.overlay 根级插槽,不占侧边栏插槽,也不和宠物等
其它插件的固定位抢位置;默认右上角、刻意避开右下角宠物区。¥总余额 + 高峰档期符号),点「▸」展开。09:00–12:00、14:00–18:00;/api/balance),DEEPSEEK_API_KEY 只在服务器进程内解析,不会下发到浏览器。时段定义在 lib/client.js 顶部的 PEAK_WINDOWS 常量(北京时间,分钟制,结束为开区间),官方调整后直接改这里即可:
const PEAK_WINDOWS = [
{ start: 9 * 60, end: 12 * 60 }, // 09:00 – 12:00
{ start: 14 * 60, end: 18 * 60 } // 14:00 – 18:00
];
档期按 Asia/Shanghai 时区计算,不依赖本机时区。
仓库:https://github.com/qianmoyishu/dsh-balance
本地源码(开发中)方式:
dsh plugin --profile web add "link:C:\Users\hzyqi\Desktop\dsh-balance"
(发布 Release 后也可用 GitHub 地址一键安装:
dsh plugin --profile web add "https://github.com/qianmoyishu/dsh-balance/releases/latest/download/dsh-balance-0.2.1.tgz"
)
装完重启 dsh web 并刷新页面(新增/更新插件需要服务端重启加载 bundle)。
dsh plugin --profile web remove dsh-balance
需要已配置 DEEPSEEK_API_KEY:
DEEPSEEK_API_KEY。未配置时,小部件会提示“未配置 DEEPSEEK_API_KEY”,不会报错。
dsh-balance/
├─ package.json # bundle 元数据(dsh.bundle.patch / dsh.client)
├─ cordis.patch.yml # 服务端插件注册(/api/balance 路由)
├─ dsh.plugin.json # 插件清单
├─ lib/
│ ├─ index.js # 服务端:余额代理路由(密钥不出服务器)
│ └─ client.js # 客户端 bundle:常驻可拖动小部件 + 高峰提示
├─ test/ # 冒烟测试(npm test)
└─ README.md
GET /api/balance → { ok, isAvailable, infos: [{currency,totalBalance,grantedBalance,toppedUpBalance}], fetchedAt }
或 { ok:false, error:"missing-key"|"upstream"|"network", message }GET /api/balance/status → { ok, keyConfigured }react / react/jsx-runtime),无构建步骤,
直接编辑 lib/client.js 后重启 dsh web 生效。npm test(服务端路由 mock + 客户端 bundle 加载/渲染)。MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。