返回目录
模型与 MCP 插件

dsh-plugin-balance-chip

boy1141/dsh-plugin-balance-chip

Live DeepSeek account balance chip in the session header: remaining credit and unused bonus, refreshed every 20 seconds.

Stars
0
Forks
0
Issues
0
更新
16 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:boy1141/dsh-plugin-balance-chip

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-plugin-balance-chip

A live DeepSeek account balance chip for the DeepSeek Harness web GUI. It sits in the session header next to the other header actions and shows the remaining credit, the unused bonus credit, and when the number was last read.

在 DeepSeek Harness 的会话标题栏实时显示账户余额:主数字是账户余额,+ 后面是尚未用完的赠送额度, 悬停可看更新时间,点击立即刷新。

What it does

  • Reads ctx.remote.account.getBalance() — the same Host-side platform query the Settings → Account panel uses. The browser never holds the account token.
  • Refreshes every 20 seconds while the page is visible, and immediately when the window regains focus or the tab becomes visible again.
  • Hides itself when signed out; shows a red dot and “balance unavailable” on failure, and a click retries.
  • Follows the interface language (zh / en) and the theme's CSS variables.

Install

From GitHub:

dsh plugin add github:boy1141/dsh-plugin-balance-chip

Or grab dsh-plugin-balance-chip.tgz from the latest release and install that tarball. Once the entry is listed in the plugin market, Settings → Plugins will find it there as well.

Files

File Role
lib/index.js Host half — an empty mount that gives the Loader an enabled entry
lib/client.js Browser half — slot registration, polling store, chip component
cordis.patch.yml The Loader row this bundle inserts (id: balance-chip)

Development

tools/smoke-client.mjs (in the contributing workspace) simulates the DSH module loader, React, and the account Remote to check the bundle id, exports, slot registration, polling state machine, and the rendered amount text.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。