Skip to content

Releases: lingruan28-boop/dsh-balance-float

v1.1.0 — 官网数据滞后兜底

Choose a tag to compare

@lingruan28-boop lingruan28-boop released this 17 Aug 03:38

v1.1.0 — 官网数据滞后兜底 / Dashboard-lag Estimate Fallback

✨ 新增 Added

  • 官网今日数据未同步时的兜底展示:官方模式下,若 platform.deepseek.com 今日行仍为 0(平台用量后台同步有滞后),用量面板自动回退显示"余额差值估算"的今日消费,并在柱状图与今日费用上标注
  • Dashboard-lag fallback: in official mode, when today's row on platform.deepseek.com is still zero (the platform usage backend syncs with a lag), the usage panel falls back to the balance-delta estimate for today's cost, marked with .

🔧 变更 Changed

  • 余额差值估算在官方模式下也持续计算,作为官网数据滞后时的兜底 / The balance-delta meter now also advances in official mode to back the lag fallback.

完整变更见 CHANGELOG。See the CHANGELOG for details.

v1.0.1 — 补丁 Patch

Choose a tag to compare

@lingruan28-boop lingruan28-boop released this 16 Aug 16:38

v1.0.1 补丁 Patch

🐛 修复 Fix

  • 将 peer 依赖 @deepseek-ai/cordis 标记为 optional(仅类型层使用,运行时无引用)——消除 pnpm 11 安装时 "missing peer" 警告。
  • Marked the @deepseek-ai/cordis peer dependency as optional (types-only, no runtime import) to remove the "missing peer" warning under pnpm 11.

完整变更见 CHANGELOG。See the CHANGELOG for details.

v1.0.0 — 正式版 First Release

Choose a tag to compare

@lingruan28-boop lingruan28-boop released this 16 Aug 16:32

🎉 首个开源正式版 / First Open-Source Release

DeepSeek 余额悬浮窗 —— 打开 Harness 即显示余额,拉大窗口查看官方用量(今日柱状图、逐日明细、模型分布)。

A floating DeepSeek balance & usage widget for DeepSeek Harness (DSH): see your balance the moment the Harness opens, enlarge the window for official usage stats (today's bar chart, daily breakdown, model share).

✨ 功能 Features

  • 悬浮窗:整窗拖动、右下角缩放、收起胶囊、60 秒自动刷新 / Draggable & resizable window, collapse pill, 60s auto-refresh
  • 余额:总额 / 赠送 / 充值,多币种符号 / Total / granted / topped-up balance with currency symbols
  • 尺寸分级:拉大到 ≥ 400×300 追加官方用量面板 / Size-adaptive: enlarge to ≥ 400×300 to reveal the usage panel
  • 用量面板:今日用量柱状图(金额 + Tokens)、本月逐日明细表、模型分布、官网用量链接 / Today's bar chart (amount + tokens), daily breakdown table, model share, console link
  • 双数据通道:配置 DEEPSEEK_PLATFORM_TOKEN 取官方数据;未配置时按余额差值估算 / Dual channels: official data via DEEPSEEK_PLATFORM_TOKEN, balance-delta estimate as fallback
  • 明暗主题自适应 / Light & dark theme adaptive

🚀 性能 Performance

  • 外壳/内容拆分(memo)+ requestAnimationFrame 帧节流,缩放拖拽流畅 / memo shell/content split + rAF coalescing for smooth resize & drag

🐛 修复 Fixes

  • 模型分布解析错误(usage 明细与模型条目求和函数混用) / Model-share parsing bug

📦 安装 Install

dsh plugin --profile web add github:lingruan28-boop/dsh-balance-float

⚙️ 配置 Configuration

凭据 Credential 必填 Required 用途 Purpose
DEEPSEEK_API_KEY 余额查询 Balance query
DEEPSEEK_PLATFORM_TOKEN 可选 Optional 官方用量数据 Official usage data

详细配置见 README · See the README for details.

完整变更记录见 CHANGELOG。Full changelog in CHANGELOG.