← 返回列表
D

@badai147/dsh-ocgo-usage

v0.1.1 · 0 天前发布

OpenCode Go usage stats for the DeepSeek Harness Web GUI: compact bottom-left sidebar button with a hover detail card

dshdsh-plugindeepseek-harnesspluginopencode-gousagestats

README

dsh-ocgo-usage

在 DeepSeek Harness Web 侧边栏左下角显示 OpenCode Go 用量的插件。

Show your OpenCode Go usage in the DeepSeek Harness web sidebar's bottom-left corner.

!底部用量按钮与悬停卡片

功能 / Features

  • 左下角常驻按钮(与设置按钮同列同款):仪表盘图标 + 剩余用量百分比,剩余 ≤20% 变橙、≤0 变红

  • 悬停展开明细卡片(向上弹出):滚动 / 本周 / 本月三条用量进度 + 已用百分比 + 重置时间

  • 数据每 60 秒自动刷新

  • 零配置:自动读取 DSH 供应商配置中的 opencode-go API key(~/.dsh/.ocg-state.json → ~/.dsh/.credentials.yaml → 环境变量)

  • 零构建:Client 端为手写 __ModuleLoader__ bundle,Host 端为纯 Node ESM
  • 安装 / Install

    sh
    dsh plugin --profile web add @badai147/dsh-ocgo-usage

    从 GitHub 源安装(备选):

    sh
    dsh plugin --profile web add github:badai147/dsh-ocgo-usage

    重启 dsh web,左下角(设置按钮旁)即可看到「Go 用量」按钮。

    使用 / Usage

    1. 在 DSH 设置中配置 opencode-go 供应商(含 API key)——插件自动读取,无需额外配置
    2. 悬停左下角「Go 用量

    查看完整 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
    @badai147/dsh-ocgo-usage
    Repo
    git+https://github.com/badai147/dsh-ocgo-usage.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web"}}