guoliyuan97-png/dsh-game-hud ↗★ 4

dsh-game-hud

游戏风格悬浮窗,显示余额、上下文及峰谷定价 适合需要直观监控账户余额、上下文剩余量及计费时段的用户。

套件
dsh-game-hud
相容性
待驗證
版本
1.3.2
授權
MIT
最近更新
2026年9月10日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:guoliyuan97-png/dsh-game-hud

配置

所有配置项都有默认值,可通过 DSH 设置 → 插件 → dsh-game-hud 界面编辑(保存后 HUD 实时生效,无需重启),或在 profile 的 cordis.patch.yml 中覆盖:

配置项类型默认值说明
maxBalancenumber20血条满格金额(CNY)。余额超过此值显示满格,低于按比例减少
lowAlertbooleantrue低余额红光告警开关:余额(血条)低于 lowThreshold 时,悬浮窗四周闪烁红光
lowThresholdnumber10告警阈值(%)。仅血条触发,蓝条(上下文)不触发
priceTableobject{}可选:按模型覆盖峰谷单价(元/百万 tokens)。未覆盖的模型用内置价格表

cordis.patch.yml 示例:

- insert:
    - id: game-hud
      name: 'dsh-game-hud'
      config:
        maxBalance: 50
        lowAlert: true
        lowThreshold: 10
        priceTable:
          # 官方价(元/百万 tokens),2026-09-10 12:00 起生效
          deepseek-v4-flash:
            peak: { input: 2.0, output: 8.0, cacheHit: 0.04 }
            valley: { input: 1.0, output: 4.0, cacheHit: 0.02 }