← 返回列表
D

dsh-balance-dock

v0.1.1 · 2 天前发布

Show the DeepSeek account balance below the conversation in the web UI. · 在对话下方显示 DeepSeek 账户余额。

dshdsh-plugindeepseek-harnessbalanceusage

README

dsh-balance

在对话下方(消息区与输入框之间)显示 DeepSeek 账户余额的 DeepSeek Harness(DSH)web 插件。

Show the DeepSeek account balance below the conversation in the DSH web UI.

!dsh-plugin !license

功能 Features

  • conversation.input.dock 槽位渲染紧凑余额条:💰 CNY 19.63

  • 每 15 秒自动刷新(轮询 host 路由 /dsh-balance/balance

  • 悬停显示「赠送 / 充值」拆分

  • 余额不可用时显示降级文案,不打扰对话

  • 零依赖、无构建脚本;API key 只留在 host 侧,永不下发浏览器
  • 安装 Install

    前置:DSH 已安装且 dsh web 可正常运行;Node.js ≥ 20;pnpm ≥ 10(dsh plugin 需要)。

    npm 包名是 dsh-balance-dockdsh-balance 已被同名插件占用);GitHub 仓库名是 dsh-balance,两者装出来是同一个插件。

    ```sh

    从 npm 安装(推荐)


    dsh plugin --profile web add dsh-balance-dock

    或从 GitHub 安装

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-balance-dock
    Repo
    git+https://github.com/Shawnxxboxx/dsh-balance.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-ui-slots","@deepseek-ai/dsh-client-ui-conversation"]}}