deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
在对话下方(消息区与输入框之间)显示 DeepSeek 账户余额的 DeepSeek Harness(DSH)web 插件。
Show the DeepSeek account balance below the conversation in the DSH web UI.
conversation.input.dock 槽位渲染紧凑余额条:💰 CNY 19.63/dsh-balance/balance)前置:DSH 已安装且 dsh web 可正常运行;Node.js ≥ 20;pnpm ≥ 10(dsh plugin 需要)。
npm 包名是
dsh-balance-dock(dsh-balance已被同名插件占用);GitHub 仓库名是dsh-balance,两者装出来是同一个插件。
# 从 npm 安装(推荐)
dsh plugin --profile web add dsh-balance-dock
# 或从 GitHub 安装
dsh plugin --profile web add git+https://github.com/Shawnxxboxx/dsh-balance.git
# 固定到 tag:git+https://github.com/Shawnxxboxx/dsh-balance.git#v0.1.0
装完重启 dsh web(插件含 host 半,需要重启挂载),然后硬刷新浏览器(Cmd/Ctrl+Shift+R)即可在对话下方看到余额条。
安装过程会自动完成 bundle 挂载(
dsh.profile.bundles会加入dsh-balance-dock),无需手动编辑任何配置文件。
pnpm 11 用户注意:npm 发布不足 24 小时的新版本会被 pnpm 的 release-age 策略拦截(表现为装到旧版本)。遇到时把下面两行并入 profile 的
pnpm-workspace.yaml后重装:minimumReleaseAgeExclude: - dsh-balance-dock
git clone https://github.com/Shawnxxboxx/dsh-balance.git
cd dsh-balance
dsh plugin --profile web add . # 以本地路径安装
dsh plugin --profile web add dsh-balance-dock # npm 渠道
dsh plugin --profile web add git+https://github.com/Shawnxxboxx/dsh-balance.git # GitHub 渠道
client 改动热加载(刷新即生效);host 改动需重启 dsh web。
dsh plugin --profile web remove dsh-balance-dock
dsh-balance-dock(列表显示名为 balance-dock,前缀 dsh- 被剥掉)。「插件配置」页只列出声明了设置项的插件。DEEPSEEK_API_KEY 已配置(通过 web 的模型设置页写入,或在启动环境导出);确认能访问 https://api.deepseek.com/user/balance。client/client.js 里的 POLL_MS,client 改动刷新页面即生效。lib/index.js):通过 credentials 服务解析 DEEPSEEK_API_KEY,调用 https://api.deepseek.com/user/balance;只对环回地址 + 同源请求开放(GET /dsh-balance/balance),带 10s 超时与明确错误码。client/client.js):手写 window.__ModuleLoader__.load bundle,注册 conversation.input.dock(order 30),每 15s 轮询 host 路由渲染余额。MIT © Shawnxxboxx
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。