Introduction¶
In the DeepSeek Harness (DSH) ecosystem, developers frequently need to check their account balances to manage resources. Switching to the account management page to view the amount every time is cumbersome. This plugin aims to solve this pain point by adding a wallet balance capsule at the bottom of the DSH Web UI sidebar, providing an instant and non-intrusive balance inquiry entry.
The plugin is maintained by gggtmd and licensed under the MIT License. It reuses the existing account service interfaces provided by the host without adding new Host-layer interfaces, achieving a zero-build installation via a handwritten lazy-CJS bundle.
Features¶
- Fixed Position: Displayed at the bottom of the sidebar, next to the settings button. When the sidebar collapses into an icon rail, the capsule automatically hides text, keeping only the amount centered.
- Clear Three States: Distinguishes between three states: not logged in, querying, and query failed. No failure state is disguised as a zero balance; instead, specific text is displayed.
- Refresh Logic: Clicking the capsule manually refreshes the balance. During the query, the last valid amount continues to be displayed and is marked as “querying” in the prompt, rather than reverting to “not logged in.”
- Hover Tooltip: On mouse hover, details are displayed using the host-provided Tooltip primitive, including the top-up balance, gifted balance, and update time. Supports both Chinese and English.
- Auto-Refresh: The plugin automatically refreshes the balance upon mounting, when the window regains focus, or every 5 minutes.
Installation¶
Install via the plugin manager. Method A is recommended, which installs directly from GitHub; the source code directory does not need to be retained after installation.
plugin_manager action=install_bundle target=github:gggtmd/dsh-wallet-hud
Usage¶
After installation, refresh the Web UI page to see the balance capsule at the bottom of the sidebar.
- View Details: Hover the mouse over the capsule to view the top-up balance, gifted balance, and update time.
- Manual Refresh: Click the capsule to immediately fetch the latest balance.
- Auto-Update: No operation is required; the plugin automatically pulls balance data at specific intervals.
Technical Details¶
- Platform Limitation: Supports Web platform only.
- Host Dependency: Depends on the
Tooltipprimitive provided by the host. If the host does not provide this primitive, the plugin falls back to the browser’s nativetitleattribute. - Interface Reuse: Balance data is obtained by directly calling the host’s
account.getBalanceinterface; no new Host interfaces are added. - Zero-Build: The plugin requires no build tools; it can be installed via the plugin manager immediately after
git clone.
Conclusion¶
This plugin makes balance inquiry instant and non-intrusive via a sidebar capsule. For more details and source code, please visit the GitHub Repository.