dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zy12342/usage-widget
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A quick balance viewer for DeepSeek Harness — good news for the balance-anxious. The sidebar badge also shows the current official pricing period (peak / off-peak) without opening anything; click it for balance, bonus credit, current model, next price switch and the platform usage shortcut. Low balances are highlighted.
Formerly a context-usage widget. The Harness now renders its own context meter below the composer and token-usage pills in the composer dock, so this widget focuses on account information instead of repeating those readings.
Personal share. Built for my own use and released as-is — if something is off, please be patient; issues and suggestions are welcome. The gemstone tiers are there so checking the balance feels a little more VIP.


The icon uses the DeepSeek Harness brand whale mark (a Harness plugin borrowing the Harness brand artwork).
高峰 (peak) or 空闲 (off-peak) in Beijing time, following the official Models & Pricing rules; the host re-syncs the public pricing page daily and retries hourly on failure. Peak hours are Mon–Fri 09:00–12:00 / 14:00–18:00 Beijing time, excluding Chinese public holidays; weekends and holidays are off-peak. The popover shows the next switch and the last official sync date.The whale icon, the sidebar amount and the popover balance use gemstone/metal textures by primary wallet amount (CNY, then USD, then the first wallet):
| Amount | Texture |
|---|---|
| below 10 | ruby (dark rim, jewel red, light window) |
| 10 – 29.99 | amber / citrine |
| 30 – 99.99 | jade |
| 100 and above | metallic gold (multi-band reflections, subtle 5 s sheen) |
Below 10 the panel also shows a Low balance warning. Thresholds are hardcoded in client.js (balanceTier).
>= 0.2.0 (Web client).From the plugin manager: Settings → Plugins, install the package @mark.zy/usage-widget.
For a local source checkout, install the bundle with the plugin manager and point it at this directory (install_bundle, target = this folder's absolute path).
After installing or updating, quit DSH completely and reopen it — client plugins load at startup, a page refresh is not enough.
| Data | Source | Notes |
|---|---|---|
| Balance / bonus credit | DSH's built-in account service (remote.account.getBalance) |
The same service DSH itself uses; the widget only formats the numbers |
| Pricing period | Host route /usage-widget/api/pricing |
Host fetches the public DeepSeek Models & Pricing page daily; a public holiday calendar is best-effort |
| Platform usage link | DSH account state (links.usageUrl) |
Only http: / https: URLs are rendered; opens with noopener noreferrer |
| Current model | DSH's modelSelection conversation projection |
Read locally; not uploaded |
api-docs.deepseek.com (pricing page) and timor.tech (Chinese holiday calendar) to build the pricing-period badge; no account data is sent.See SECURITY.md for the full security notes.
| Symptom | What to check |
|---|---|
| Badge missing after install/update | Fully quit DSH and reopen (not just refresh). Check Settings → Plugins that @mark.zy/usage-widget is enabled. |
| Badge shows a dash | Not signed in, or the account service is unavailable. |
| Balance is stale | The panel refreshes on open and every 60 seconds; the platform may lag behind real spending. |
| Text is amber | The balance is below the low-balance threshold (see above). |
sidebar.footer.action and shell.overlay; it never replaces the account button or the composer controls.immediately: true.dsh plugin --profile desktop remove @mark.zy/usage-widget
Or disable/remove it in Settings → Plugins.
@mark.zy/usage-widget,装完完全退出 DSH 再打开。MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。