dsh-whale-balance

DSH PLUGIN通知与集成

仓库 BugDesigner-Hy/dsh-whale-balance

通知与集成 L5 · 运行验证通过 安全审查:低风险 可信度:金 可安装插件
安装这个插件

DSH 插件:把 DeepSeek 账户余额显示成鲸鱼标志里上涨的水面

一句话选型结论

按资料字段整理

dsh-whale-balance 是通知与集成类的 DSH 可安装插件,验证等级 L5 · 运行验证通过,安全审查为低风险,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类通知与集成 收录类型可安装插件 验证等级L5 · 运行验证通过 安全审查低风险
验证等级 L5 L5 · 运行验证通过
GitHub 星标 0 复刻 未标注 · 未关闭 issue 未标注
最近更新 2026-10-20 创建于 未标注
README 11.3 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:BugDesigner-Hy/dsh-whale-balance
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

通知与集成
字段来自项目仓库与公开索引,中文说明由本站标注

适用场景

通知

验证等级与安全审查

L5 · 运行验证通过
自动化流程结论,不是人工审核
验证等级L5 · 运行验证通过在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度金综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L5:安装和运行都在沙盒里跑通过,装完能直接用的概率高。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在通知与集成场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-whale-balance当前 L5 · 运行验证通过 低风险 0 未标注 有
treg L3 · 安装规范通过 低风险 4,976 未标注 无
dsh-purge 未做沙盒验证 未标注 3,412 未标注 有
dsh-im L5 · 运行验证通过 低风险 1,837 0.1.7-rc.2 等 10 个 有
dsh-aurabot-qq 未做沙盒验证 未标注 633 未标注 有
dsh-dafeiyu L5 · 运行验证通过 低风险 425 0.1.7-rc.2 等 10 个 有

仓库档案

通知与集成
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方BugDesigner-Hy仓库 dsh-whale-balance · 默认分支 未标注
分类通知与集成notify
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言未标注仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 未标注 / 未标注收录时的数值,非实时
创建 / 更新未标注 · 2026-10-20最后推送 未标注
本站收录2026-10-30首次进入本站目录的时间

README 全文

11.3 KB
作者原文,中文版优先;只做安全转义,不改内容

Whale Balance · 余额水杯

English · 中文

English — A DeepSeek Harness (DSH) plugin that turns your account balance into water inside the whale mark: the level fills against a full amount you set, the surface keeps rippling, and a hover panel shows exact amounts, spend, remaining days and a top-up link.

中文 — 把 DeepSeek 账户余额显示成鲸鱼标志里上涨的水面:水位按你设置的满杯金额线性变化,水面持续荡漾;悬停面板给出精确金额、今日/近 7 天消耗、还能用几天,以及充值入口。


English

Install

From npm:

dsh plugin --profile desktop add dsh-whale-balance

Straight from GitHub:

dsh plugin --profile desktop add "git+https://github.com/BugDesigner-Hy/dsh-whale-balance.git"

Then enable Whale Balance on the Plugins page. The plugin is also listed in the Open Plugin Market — add https://dshopen.org/index.json under Discover → Add index source and search for whale or balance.

What you get

  • A 46px floating whale mark in the bottom-right corner (shell.overlay). Drag it anywhere; the position is remembered and clamped to the window.
  • Clicking the mark unfolds it into a pill with a Casio-style LCD face on the right showing the live total: seven-segment digits, faint ghost segments, and a short digit churn when the amount changes. The pill hugs the amount instead of reserving a wide empty display. It unfolds toward the side with room — left by default, and when a dragged chip cannot fit to the right, it keeps its right edge and grows leftwards instead of leaving the window. Click again to fold it back; otherwise it stays open.
  • Water height = balance / full amount, capped at full. The full amount is per currency and set in the panel's gear.
  • Two drifting wave layers inside the whale silhouette, plus a ±4° sway of the mark so the tail moves most.
  • Live balance from the account watch stream: login, top-up and sign-out push a frame immediately. Falls back to 60 s polling when the stream is unavailable.
  • Hover panel: wallet totals with the bonus share in parentheses (gift icon + amount); click a currency to make it the vessel's basis. Also today's and last-7-day spend, an estimate of remaining days, a low-balance warning, refresh, and Top up.
  • Clicking the mark only unfolds or folds the LCD face — it never navigates; top-up has its own link.
  • Low balance: amber water and a soft breathing glow around the mark's edge. The threshold is either an amount or a percentage of the full amount.
  • Only theme tokens for the container, focus rings and text; prefers-reduced-motion disables the ripples, sway, breathing glow and spinner. UI is localized (English / Chinese).

Settings

Setting Default Notes
Full amount ¥100 (USD $15) Spendable total (recharge + bonus) at which the vessel is full; set 1000 to make 1000 the top
Alert mode amount amount or percent
Alert threshold ¥5 (USD $1) Below it the water turns amber and the mark's edge glows softly
Percent threshold 10% Used in percent mode: threshold = full amount × percent

Full amount and amount threshold are stored per currency (CNY / USD); the percentage is global. Everything lives in localStorage and applies immediately; Reset restores the defaults.

How the level works

  • Linear: (recharge + bonus) / full amount, capped at 1. 40 of 100 fills 40% of the height.
  • Spend figures come from the balance decreases this plugin observes while the app runs, so they are an estimate, not a bill. The ledger tracks the recharge and bonus wallets together (the platform spends the bonus first), and both the today and 7-day rows are always shown — 0.00 when nothing has been observed yet.
  • Days left divides the usable total (recharge + bonus) by the extrapolated daily spend from the last seven days of observations, and stays hidden until there is at least one day of history.

Where the data comes from

The browser reads the same account Remote as Settings → Account:

ctx.get('remote').$stream({ name: 'account', open: (signal) => account.watch(signal) })   // live state
ctx.get('remote.account').getBalance({ version, locale, timezoneOffsetSeconds })          // balance

No API key is stored and the plugin makes no external network requests.

Limits

  • Spend history and settings are kept in localStorage per origin; a desktop build that changes ports starts collecting again.
  • Spend is observed only while the app is running, so long offline periods are not attributed.

License

MIT © 2026 BugDesigner-Hy. The whale path comes from the MIT-licensed DSH client primitives (© DeepSeek); see LICENSE.


中文

安装

从 npm:

dsh plugin --profile desktop add dsh-whale-balance

直接从 GitHub:

dsh plugin --profile desktop add "git+https://github.com/BugDesigner-Hy/dsh-whale-balance.git"

装好后到 插件 页确认「余额水杯」已启用。也可以在 发现 → 添加索引源 加入社区市场 https://dshopen.org/index.json,搜索 whale / 余额 找到它。

它在哪里

shell.overlay 里的一块 46px 悬浮徽标,默认在窗口右下角(距边 20px),不占布局、不遮挡滚动区域。

  • 拖动:按住徽标可拖到任意位置,松手后记住坐标(窗口缩小时会自动收回可视区)。
  • 点击展开:徽标展开成一条胶囊,右侧亮起电子表风格的 LCD 实时余额(七段数字、未点亮的「幽灵段」、金额变化时数字快速滚动一下),胶囊宽度随金额自适应,不多留空白;再点一次收回,不点就一直保持展开。默认贴着右边,所以是向左展开;如果拖到了别处,会先看右侧是否放得下,放不下就固定右边缘、向左展开,绝不越出窗口。全程不做任何跳转。
  • 游动:鲸鱼以身体为轴微微摆动(约 ±4°),尾巴的摆幅最明显;prefers-reduced-motion 下停止。
  • 悬停 / 键盘聚焦:在水杯上方展开面板(靠近窗口顶部时自动翻到下方,靠近左侧时改为左对齐)。
  • 面板右上角的齿轮:切换到设置,改完立即生效并保存;Esc 先退出设置、再收起面板。

面板内容

区域 内容
标题行 标题 + 齿轮(设置)+ 刷新(读取时旋转)
金额 各币种可用总额;赠送部分紧跟在后面,括号内以礼物图标 + 金额显示;点币种把它设为水位基准
统计 今日消耗、近 7 天消耗、约可用天数
提醒 低于阈值时出现琥珀色提示
底部 「去充值」+ 上次更新时间

设置(默认值可直接用)

设置 默认 说明
满杯金额 ¥100(USD 为 $15) 水位到顶对应的可用总额(充值 + 赠送)。设成 1000,就以 1000 为满杯
提醒方式 金额 可选「金额」或「百分比」
提醒阈值 ¥5(USD 为 $1) 低于该金额时水体转琥珀、徽标外缘持续微微发光(呼吸感)
百分比阈值 10% 当提醒方式为百分比时,阈值 = 满杯金额 × 该比例

满杯金额与金额阈值按币种分别保存(CNY / USD 各一套),百分比是全局一个;恢复默认 一次还原全部。设置保存在浏览器 localStorage,修改后立即生效,无需重启。

水位怎么算

  • 水位:线性,(充值 + 赠送) / 满杯金额。满杯填 100、可用总额 40 就是四成高;超过满杯金额则封顶为满。
  • 低余额:可用总额(充值 + 赠送)低于你设置的金额阈值,或低于满杯金额的百分比,即触发提醒。
  • 「可用天数」用观察到的近 7 天消耗外推日均(历史不足 7 天按已观察天数等比外推,不足 1 天则不显示),分子是「充值 + 赠送」的可用总额,只是趋势参考。
  • 消耗完全来自本插件观察到的余额变化(只在应用运行时记录),是估算;把它当作趋势,不要当作账单。统计把「充值余额 + 赠送余额」合在一起算(平台先扣赠送),今日与近 7 天两行始终显示,尚未观察到扣费时显示 ¥0.00 并附一行说明。

数据来源

浏览器端读取本应用已挂载的账户 Remote:

ctx.get('remote').$stream({ name: 'account', open: (s) => account.watch(s), ... })  // 实时状态
ctx.get('remote.account').getBalance({ version, locale, timezoneOffsetSeconds })  // 余额

即「设置 → 账户」页用的同一条通道。登录、充值、退出都会推一帧,水位随即更新;流不可用时自动退化为每 60 秒轮询,读取失败或服务未就绪时每 5 秒重试,页面隐藏时不发请求、重新可见时立刻刷新。

插件本身不保存 API Key、不发任何外部网络请求。

可调常量(client.js 顶部)

常量 默认 含义
REFRESH_MS 60000 轮询回退的刷新间隔
RETRY_MS 5000 未就绪/失败时的重试间隔
FALLBACK_FULL { CNY: 100, USD: 15 } 各币种满杯金额的默认值
FLOOR_LOW { CNY: 5, USD: 1 } 各币种金额阈值的默认值
DEFAULT_PERCENT 10 百分比阈值的默认值
DAY_MS 86400000 统计窗口单位
WATER / WATER_LOW 蓝 / 琥珀 水体与水面高光配色

主题与可访问性

  • 容器、文字、边框只用 --dsw-alias-* 主题变量,跟随明暗主题;只有水体是美术配色。
  • 徽标是真正的 `:可聚焦、有含金额与低余额提示的aria-label;面板关闭时用visibility` 隐藏,不会进入 Tab 顺序。
  • 数字输入框在失焦或回车时才提交,允许中途清空;Esc 在输入框内只还原输入,不关闭面板。
  • 面板不挡鼠标:只有打开时才接收指针事件,并有一段透明桥接区域,鼠标从徽标移进面板不会闪断。
  • 尊重 prefers-reduced-motion:关闭波纹漂移、水位过渡、低余额呼吸光与刷新旋转。
  • 文案走客户端 locale 服务(内置 en / zh)。

已知限制

  • 消耗统计与设置存放在浏览器 localStorage(按 origin)。如果桌面端每次启动换端口,这些数据会重新积累。
  • 「可用天数」依赖已观察到的消耗,长时间不用时消耗为 0,该项不显示。

文件

文件 作用
index.js Host 半侧:空座位,不注册任何资源
client.js 浏览器半侧:水位徽标、拖动、面板、设置、余额与消耗统计
cordis.patch.yml 插入 balance-vessel 这一行
locale/en.json、locale/zh.json 插件管理器里的标题与说明
icon.svg 原创图标(水面与鲸尾),非官方商标素材
LICENSE MIT

鲸鱼轮廓路径取自本应用自带的品牌标志(@deepseek-ai/dsh-client-ui-primitives,MIT,© DeepSeek),其余图形与动效为原创。

许可证

MIT © 2026 BugDesigner-Hy。仓库里的鲸鱼路径来自同样以 MIT 分发的 DSH 客户端素材,署名见 LICENSE。

常见问题

5 问
答案由本站依据条目字段整理,不引用上游原文
dsh-whale-balance 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:BugDesigner-Hy/dsh-whale-balance` 即可。

dsh-whale-balance 的验证等级是什么意思?

L5 · 运行验证通过。在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来

dsh-whale-balance 安全吗?

低风险。

dsh-whale-balance 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-whale-balance 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

同名或近似条目

1 条
不同作者的仓库分开列,请确认你要装的是哪一个
通知与集成
按星标排序,可作替代方案

treg

treg

Treg 是面向 Agent 工具的 OpenRouter,聚合 60 个提供商的 2896 个端点,按调用计费,统一令牌访问,无需注册各供

L3 · 安装规范通过 4,976 星

dsh-purge

dsh-purge

dsh-purge Community · DeepSeek Harness 社区维护版:宿主兼容、状态诊断、提示词管理、更新与本机备份回滚

未标注验证等级 3,412 星

dsh-im

dsh-im

将IM机器人接入DeepSeek Harness,支持飞书、微信、钉钉等九种渠道,通过扫码或凭据配置,统一管理多机器人连接。

L5 · 运行验证通过 1,837 星

dsh-aurabot-qq

dsh-aurabot-qq

让 DeepSeek Harness 里的 AI 以「大肥鱼」人格住进 QQ,通过 OneBot v11 网关聊天、发表情语音、写空间日记并

未标注验证等级 633 星

dsh-dafeiyu

dsh-dafeiyu

DSH 大肥鱼是一款由 DeepSeek Harness 真实工作状态驱动的桌面伴侣插件,以始终置顶的透明窗口实时展示 Agent 的思考、

L5 · 运行验证通过 425 星

dsh-trading

dsh-trading

L3 · 安装规范通过 235 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。