Floating-Dreaming/dsh-minimax-usage

插件Plugin ⭐ 3 其他Other

DSH (DeepSeek Harness) plugin: MiniMax Token Plan usage in Settings

项目介绍Project Overview

DSH 插件,在设置页「用量」section 渲染 MiniMax Token Plan 实时数据。核心能力:展示 5 小时与周窗口用量百分比及重置倒计时,附加视频赠送可调用次数。适用场景:DSH 用户需监控 MiniMax Token Plan 用量时启用。注意:未配置 API key 时整段 section 与侧栏入口自动隐藏;数据经 60s 缓存与 10s 限流,可能与官方略有延迟。

DSH plugin that renders MiniMax Token Plan usage data in the Settings page under the "Usage" section. Core capability: displays 5-hour and weekly window usage percentages with reset countdowns, plus video gift call counts. Use when monitoring MiniMax Token Plan quotas within DSH. Caveat: the entire section and sidebar entry auto-hide without an API key; data is fetched with 60s cache and 10s rate limit, so values may lag the official dashboard.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile web add @floatingdeaming/minimax-usage

Floating-Dreaming/dsh-minimax-usage 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

MiniMax 用量插件

在 DSH(DeepSeek Harness)设置页「用量」section 展示 MiniMax Token Plan 的 5 小时与周窗口用量。

这是什么

DSH 插件,在设置页的「用量」section 渲染 MiniMax Token Plan 实时数据:

  • 5 小时窗口:当前用量百分比 + 剩余时间
  • 周窗口:当前用量百分比 + 重置倒计时
  • 视频赠送:可调用次数(video 模型按 count 计,不按百分比)
  • 未配置 API key 时整段 section 自动隐藏(侧栏「用量」入口也不显示)

数据通过 MiniMax 的 https://www.minimaxi.com/v1/token_plan/remains 接口实时获取(trusted plugin 持有 key、60s 缓存 + 10s 限流)。

安装

两种方式,任选其一

方式一:DSH 官方 dsh plugin add

trusted-plugin/ 声明了 dsh.bundle manifest,DSH 官方安装命令直接认:

# 从 GitHub(git 源一行)
dsh plugin --profile web add "github:Floating-Dreaming/dsh-minimax-usage#main"

# 从 npm
dsh plugin --profile web add @floatingdeaming/minimax-usage

# 从本地 checkout
dsh plugin --profile web add ./trusted-plugin

装完重启 DSH

方式二:install.ps1 / install.sh

OS 命令
Windows cd D:\Code\minimax-usage-plugin && .\install.ps1
macOS / Linux / WSL / Git Bash cd /path/to/minimax-usage-plugin && ./install.sh

从 npm 装:

.\install.ps1 -Source npm -NpmName @floatingdeaming/minimax-usage
./install.sh --source npm --npm-name @floatingdeaming/minimax-usage

脚本做了什么(幂等,已有文件不被覆盖):

  1. 部署 trusted plugin 源码到 ~/.dsh/profiles/web/minimax-usage/
  2. 创建符号链接 ~/.dsh/profiles/web/node_modules/minimax-usage/ → 上面那个目录
  3. 校验 / 补齐 profile 的 package.json 依赖
  4. 校验 / 补齐 profile 的 pnpm-workspace.yaml 的 packages 列表
  5. 校验 / 补齐 profile 的 cordis.patch.yml- insert:
  6. npm install

许可证

MIT

上一个 Prev dsh-tray-launcher 下一个 Next dsh-godot-tool