dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:EviMing/dsh-balance
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
利用一条简单的 HTTP 接口,让 DSH 可以直接获取自己剩余的余额。返回的就是 设置 → 账号与余额 里那个 platform.deepseek.com 钱包(充值额度 + 赠送额度),不是 API key 余额,也不是上下文余量。
A single loopback HTTP request returns the DeepSeek Harness account balance — the same platform.deepseek.com wallet DSH shows under Settings → Account (recharge credit plus granted bonus).
dsh plugin --profile web add github:EviMing/dsh-balance
装完刷新页面即可,无需重启。也可以从本地目录安装:
dsh plugin --profile web add D:\path\to\dsh-balance
curl -s http://127.0.0.1:3080/api/balance
{
"ok": true,
"currency": "CNY",
"recharge": 12.416959,
"bonus": 0,
"total": 12.416959,
"fetchedAt": 1794049067812
}
只要数字:
curl -s "http://127.0.0.1:3080/api/balance?format=text"
# 12.416959 CNY
字段:recharge 充值余额、bonus 赠送额度、total 两者之和、fetchedAt 本次读取时间(毫秒时间戳)。
405。req.socket.remoteAddress 和 Host 头,非本机请求返回 403,局域网里别的机器读不到。deepseekAccount 服务读取,token 仍由 DSH 放在 ~/.dsh/.credentials.yaml 里管理,插件不碰。127.0.0.1:3080。| 状态 | error |
含义 |
|---|---|---|
| 401 | signed-out |
当前 DSH 没有登录 DeepSeek 账号 |
| 403 | forbidden |
请求不是来自本机 |
| 405 | method-not-allowed |
不是 GET |
| 502 | upstream-failed |
平台查询失败 |
| 503 | account-unavailable |
宿主没有挂载 deepseekAccount 服务 |
错误响应统一为 {"ok": false, "error": "...", "message": "..."}。
webServer.register 和 deepseekAccount.getBalance)。index.js — 路由、缓存、loopback 校验、错误映射cordis.patch.yml — bundle 插入点locale/ — 市场卡片的中英文标题与描述icon.svg — 市场图标MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。