Skip to content

Releases: Mystery-God/dsh-balance

dsh-balance v0.1.2

Choose a tag to compare

@Mystery-God Mystery-God released this 15 Aug 12:00

功能版 · Feature release

新增 API Key 填写入口:web profile 中 credentials 服务可能解析不到 DEEPSEEK_API_KEY,现在可以直接在「设置 → 插件 → 模型余额悬浮窗」页粘贴并保存 API key。

Adds an API key entry on the Plugins-settings page: the web profile's credentials seam may not resolve DEEPSEEK_API_KEY, so the key can now be entered and saved directly.

变更 · Changes

  • 🔑 设置页新增 Key 输入框(密码框、回车/按钮保存、一键清除)· password input + save/clear
  • 🛡️ Key 仅存于 ~/.dsh/balance/settings.json,接口只回传脱敏预览(如 sk-…7890)· masked responses, never echoes the key
  • ⚖️ 解析优先级:本插件保存的 Key > credentials 服务(env / .credentials.yaml / .env)· local key first, credentials fallback
  • 🧪 冒烟测试扩至 13 项 · smoke test extended to 13 checks

升级 · Upgrade

dsh plugin --profile web add github:Mystery-God/dsh-balance

附件 · Assets

  • linxin666-dsh-balance-0.1.2.tgz — npm 打包产物 · npm tarball

dsh-balance v0.1.1

Choose a tag to compare

@Mystery-God Mystery-God released this 15 Aug 11:30

修复版 · Patch release

修复重启后插件加载失败的问题:客户端轮询误用 ctx.interval,而 cordis 守卫要求声明 inject: ['timer'] 才允许访问 timer 混入属性,导致整个 loader entry 应用失败(cannot get property "timer" without inject)。改用浏览器原生 window.setInterval,插件恢复正常加载。

Fixes the loader-entry crash after restart: the client poll used ctx.interval, which the cordis guard rejects without inject: ['timer']. Switched to the browser-native window.setInterval.

变更 · Changes

  • 🐛 客户端 60 秒轮询改用 window.setInterval · client polling now uses window.setInterval
  • 📦 版本升至 0.1.1 · version bump to 0.1.1

升级 · Upgrade

dsh plugin --profile web add github:Mystery-God/dsh-balance

(重新安装后重启 dsh web;或等待插件市场更新)

附件 · Assets

  • linxin666-dsh-balance-0.1.1.tgz — npm 打包产物 · npm tarball

dsh-balance v0.1.0

Choose a tag to compare

@Mystery-God Mystery-God released this 15 Aug 10:32

首个发行版 · First release

模型账户余额悬浮窗插件 v0.1.0:右下角悬浮展示模型账户余额(每 60 秒自动刷新),设置页「设置 → 插件 → 模型余额悬浮窗」带「显示余额悬浮窗」总开关,并附余额预览与手动刷新。

First release of dsh-balance: a draggable floating model-account balance monitor (auto-refresh every 60s) with a master show/hide switch, balance preview, and manual refresh on the Plugins-settings page.

功能 · Features

  • 💰 可拖动悬浮卡片:总余额 + 充值/赠送明细 + 更新时间 · draggable card with breakdown
  • 🔄 60 秒自动刷新 + host 侧 30 秒缓存 · 60s polling with 30s host cache
  • 🔌 「显示余额悬浮窗」总开关(持久化到 ~/.dsh/balance/settings.json)· persistent master switch
  • 🌐 DeepSeek / 硅基流动 / Moonshot / OpenRouter 余额接口自动识别 · multi-provider support
  • 🔐 密钥经 credentials 服务解析,仅余额数字下发浏览器 · credential-safe
  • 💾 零运行时依赖 · zero runtime dependencies

安装 · Install

dsh plugin --profile web add github:Mystery-God/dsh-balance

附件 · Assets

  • linxin666-dsh-balance-0.1.0.tgz — npm 打包产物,可直接 npm/pnpm 安装 · npm tarball