dsh-whale-usage
桥接后的新产物:把 dsh-whale-widget(桌面鲸鱼挂件)与 dsh-usage-stats(用量统计)合并为一个自包含插件,并在挂件上提供「记账 / 实时令牌 / 应用用量」配置界面。不改原插件包,对上游更新免疫。
ypipaq
@ypipaq
⬇ 1
★ 0
main
安装
dsh plugin --profile web add github:ypipaq/dsh-whale-usage
需要可复现安装时,可在仓库后追加 #commit 固定提交。
桥接后的新产物:把 dsh-whale-widget(桌面鲸鱼挂件)与 dsh-usage-stats(用量统计)合并为一个自包含插件,并在挂件上提供「记账 / 实时令牌 / 应用用量」配置界面。不改原插件包,对上游更新免疫。
该插件未提供要点说明,请参考仓库 README。
deepseek-harnessdshdsh-plugin
- 安装并启动 DeepSeek Harness:
npx @deepseek-ai/dsh web - 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
- 用 dsh plugins list 确认已安装,必要时重启 Harness 生效
插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。
| 代码仓库 | github.com/ypipaq/dsh-whale-usage |
| 许可证 | 未标注(见仓库) |
| 主要语言 | main |
| 下载量 | 1 |
| GitHub 星标 | 0 |
| 最近推送 | 2026-08-23 |
| 收录日期 | 2026-09-19 |
| 分类 | 工具与能力 |
事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。
以下为插件仓库 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](https://github.com/zhu1090093659/dsh-web-ui) | | `dsh-usage-stats` | Per-DSH-session **app usage** data engine (token trends, model breakdown, activity) | [lanlandeli/dsh-usage-stats](https://github.com/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](./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. ```sh # 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 # Or install the built tarball dsh plugin --profile web add /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 ```yaml 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`](./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](./LICENSE). The merged third-party source remains © its original authors — see [CREDITS.md](./CREDITS.md). - This plugin is **self-contained**: it does not follow upstream automatically; re-sync fixes via `docs/development.md`. --- *中文说明见 [`README.zh.md`](./README.zh.md)。*
数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。