- Inicio
- Plugins
- Mejoras de UI
- dsh-balance-context-meter
E
dsh-balance-context-meter
evangelimo/dsh-balance-context-meter
Sidebar meters for DeepSeek Harness Web: a DeepSeek account balance bar (orange, with a low-balance alarm) and a conversation context-usage bar (blue), rendered above the plugin store with a hover detail popover.
Instalar
dsh plugin --profile web add github:evangelimo/dsh-balance-context-meterREADME
dsh-balance-context-meter
DeepSeek Harness Web 侧边栏仪表盘插件:DeepSeek 账户余额进度条与对话上下文进度条,位于侧边栏底部、插件商店上方。
功能
- 余额条(橙色胶囊):
剩余 / 上次刷新时余额,40 秒轮询;右侧刷新按钮把当前余额设为新的满值,之后随使用逐渐缩短(满值存浏览器 localStorage) - 上下文条(蓝色胶囊):
剩余 / 窗口上限,跟随当前对话窗口实时更新(对话中 10s 刷新,空闲 40s,新会话无数据 5s ) - 余额预警:余额低于阈值(默认 ¥10,悬浮框内可修改)时,进度条变红橙渐变并带光点动画;悬浮框内有预警开关
- 悬浮框:悬停或点击可查看余额明细(总/充值/赠送,各币种)、当前会话标题、上下文明细(pressure/projected/上限)
安装
# npm
dsh plugin --profile web add dsh-balance-context-meter
# GitHub
dsh plugin --profile web add github:EvangeliMo/dsh-balance-context-meter#main
# 本地目录
dsh plugin --profile web add /path/to/dsh-balance-context-meter
安装后重启 dsh web。
要求
- DeepSeek Harness Web(rc.6 或更新)
- 已在 设置 的 模型 页 配置
DEEPSEEK_API_KEY(能用聊天即已配置) - 账户有可用余额(
GET /user/balance)
开发
npm install # 安装 esbuild 与 zod
node scripts/build-client.mjs # 改客户端源码后重新生成 lib/client.js(--check 校验新鲜度)
node scripts/test-host.mjs # 宿主冒烟测试(真实调用余额 API)
Ryuko酱的说明:预警阈值是本地配置——DeepSeek 官方
GET /user/balance不返回DeepSeek账户上设置报警阈值,阈值由用户在悬浮框内自行设置。
许可
MIT