dshbase

插件目录 / Developer / dsh-whale-usage

dsh-whale-usage

未验证 YpipaQ

✓ 持续维护 基于 9 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
语言
2026-08-23最近推送
跨平台平台

功能简介

dsh-whale-usage: a self-contained DeepSeek Harness (DSH) plugin that bridges the whale-widget and usage-stats plugins (balance widget + accounting/real-time-token/app-usage settings). Personal localization bridge, MIT.

我们的评价
未验证 — 尚未实测

dsh-whale-usage: a self-contained DeepSeek Harness (DSH) plugin that bridges the whale-widget and usage-stats plugins (balance widget + accounting/real-time-token/app-usage settings). Personal localization bridge, MIT. 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

🌏 中文 · English
A self-contained DeepSeek Harness (DSH) plugin: balances, today's usage & app-usage in one bridge

License: MIT GitHub GitHub stars DSH

🐳 dsh-whale-usage

Self-contained DSH plugin that merges two existing plugins into one, and adds an
accounting / real-time-token / app-usage configuration panel on the desktop whale widget.

Does not modify the original packages — it absorbs their source logic at the bottom layer, so it is immune to upstream updates. After installing, you can maintain two fewer plugins (dsh-whale-widget and dsh-usage-stats may be uninstalled).

✨ What it is

Absorbed source Capabilities Original author / repo
dsh-whale-widget Bottom-right DeepSeek balance whale widget (balance, peak/off-peak pricing, random quotes & sounds, ledger / token usage modes) zhu1090093659/dsh-web-ui
dsh-usage-stats Per-DSH-session app usage data engine (token trends, model breakdown, activity) lanlandeli/dsh-usage-stats

dsh-whale-usage is the bridge & merge product: it replaces both plugins above with a single
self-contained one. © credits: CREDITS.md.

💡 Features

  • Whale widget — kept as-is: balance, today's usage, peak/off-peak pricing, sounds, draggable.
  • Usage settings panel — click the whale button at the bottom of the sidebar to open the "Little Whale · Usage" overlay and configure:
    • Accounting (ledger): accumulate today's usage from the balance delta (auto-resets daily and appends to the history ledger).
    • Real-time tokens: compute today's usage from DeepSeek platform tokens in real time.
    • App usage: show local DSH session usage (today / last 7 days Tokens, sessions, messages, most-used model).

🖼️ Screenshots

Usage config panel

Usage config panel — usage mode / pricing / sounds / volume / peak times.

App usage dashboard

App-usage dashboard — tokens, sessions, messages, activity heatmap, top model.

Peak / off-peak time

Peak / off-peak pricing time periods (weekly).

🚀 Install

Install as a normal package — do NOT link it via a junction. A junction makes dependencies fail to resolve upward (e.g. schemastery / react) and desyncs the package name from cordis.patch.yml; both break DSH startup.

# Recommended — install from npm (published): https://www.npmjs.com/package/dsh-whale-usage
dsh plugin --profile web add dsh-whale-usage
# or: npm install dsh-whale-usage

# From source: this repo (or after cloning it on the target machine)
dsh plugin --profile web add <absolute path to this folder>

# Or install the built tarball
dsh plugin --profile web add <path>/dsh-whale-usage-0.1.4.tgz

# Or use the convenience scripts
bash scripts/install.sh                              # macOS / Linux / Git Bash
powershell -ExecutionPolicy Bypass -File scripts/install.ps1   # Windows

After installing, restart DSH and hard-refresh the browser (Cmd/Ctrl+Shift+R):

  • the whale widget appears in the bottom-right corner;
  • a "Little Whale · Usage" button appears at the bottom of the sidebar.

Because this plugin replaces the original two, uninstall dsh-whale-widget and dsh-usage-stats only after confirming this plugin works:
dsh plugin --profile web remove dsh-whale-widget · dsh plugin --profile web remove dsh-usage-stats

⚙️ Configuration

config:
  indexConcurrency: 2      # usage engine concurrency for reading historical sessions
  cacheWriteDelayMs: 1000  # debounce before writing local stats
  apiPath: /usage-stats/v1 # app-usage API prefix

Data is stored locally:

  • Whale accounting / config: ~/.dsh/.dshw-*.json
  • App-usage index: $DSH_HOME/usage-stats

🗂️ Repository structure

dsh-whale-usage/
├── lib/                # built plugin (host: index.js, usage-host.js, whale-host.js; client: client.js)
├── assets/             # whale images / sounds
├── cordis.patch.yml    # DSH bundle patch (plugin id dsh-whale-usage)
├── dsh.plugin.json     # DSH plugin manifest (id / version / main / client.main)
├── package.json        # npm package (name dsh-whale-usage, MIT)
├── LICENSE / CREDITS.md# MIT + upstream credits
├── README.md / README.zh.md
├── docs/               # dev notes (development.md) + screenshots
└── scripts/install.*   # one-click install scripts

🛠️ Development

See docs/development.md for architecture, building the tarball
(npm pack), and re-syncing upstream fixes (lib/whale-host.js, lib/usage-host.js).

📄 License & Credits

  • License: MIT. The merged third-party source remains © its original authors — see CREDITS.md.
  • This plugin is self-contained: it does not follow upstream automatically; re-sync fixes via docs/development.md.

中文说明见 README.zh.md

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-whale-usage」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:YpipaQ/dsh-whale-usage

Headless(CLI)profile:

dsh plugin --profile headless add github:YpipaQ/dsh-whale-usage

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-27 · 标记 webonly
备注:验证: web-only;待 L4 web CDP;L4 web CDP runtime-fail on dsh 0.1.0-rc.8. 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7795 个插件 →