rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:CaoNing3212/dsh-plugin-deepseek-balance
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
在 Web 界面输入框下方的会话统计行(「2 轮 · 110 步 | LLM …」那行)前面显示 DeepSeek 官方账户余额的小插件,例如:余额:¥69.94。点击可刷新。
只在使用 DeepSeek 官方接口(https://api.deepseek.com)且已配置 API key 时显示;代理/网关、未配 key、查询失败时自动隐藏。
lib/index.js):挂载 GET /dsh-balance,通过平台凭据服务读取 DEEPSEEK_API_KEY(设置 → 模型 页面写入的那个),调用官方 /user/balance。完全自包含,不依赖任何平台补丁。lib/client.js):向 conversation.composer.dock 插槽注册 order: -1 的条目,排在自带的 stats(order 0)前面。方式 A —— 用 dsh 插件命令(需要 pnpm):
dsh plugin --profile web add <本插件文件夹的绝对路径>
# 重启 dsh web,浏览器刷新页面
方式 B —— 手动(无需 pnpm):
dsh-plugin-deepseek-balance 文件夹复制到 %USERPROFILE%\.dsh\profiles\node_modules\ 下%USERPROFILE%\.dsh\profiles\web\package.json:dependencies 加入 "dsh-plugin-deepseek-balance": "1.0.1"dsh.profile.bundles 数组追加 "dsh-plugin-deepseek-balance"dsh web,浏览器刷新页面方式 A:dsh plugin --profile web remove dsh-plugin-deepseek-balance
方式 B:手动删除上面登记的依赖、bundles 条目和 node_modules 里的文件夹,然后重启。
DSH 启动时会用 semver.satisfies(runtime, range, { includePrerelease: true }) 校验本插件
peerDependencies 里的 @deepseek-ai/dsh / @deepseek-ai/dsh-*(@deepseek-ai/cordis 与
react 不在校验范围内)。所以 DSH 升到新的次版本后,要把下面两项的区间改到新运行时版本,
否则该行会被护栏停用并打印 "is incompatible with dsh ...":
"@deepseek-ai/dsh-credentials": "^<新运行时版本>"
"@deepseek-ai/dsh-launch-environment": "^<新运行时版本>"
确需在旧声明下启用时,可用 dsh plugin allow-version 授予精确版本豁免。
conversation.composer.dock 需存在)DEEPSEEK_API_KEY)CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。