← 返回列表
D

dsh-peak-badge

v0.1.1 · 0 天前发布

DeepSeek peak/off-peak pricing badge for DSH: light green in off-peak hours, light orange in peak hours (Beijing time), draggable. / DeepSeek 峰谷计价状态角标:北京时间高峰时段(09:00–12:00、14:00–18:00)浅橘,优惠时段浅绿,可拖动。

deepseek-harnessdshdsh-pluginplugincordispricingpeakoff-peakbadgebeijing-time

README

dsh-peak-badge

DeepSeek Harness(DSH)web 界面的峰谷计价状态角标:一眼看出当前 DeepSeek token 是按高峰价还是优惠价计费——以北京时间为准,零配置。

🟢 优惠时段 —— 浅绿胶囊:「优惠时段 · 半价」

🟠 高峰时段(北京时间 09:00–12:00、14:00–18:00)—— 浅橘胶囊:「高峰时段 · 单价×2」

为什么需要它

DeepSeek 自 2026-08-17 起实行峰谷计费:高峰窗口(北京时间 09:00–12:0014:00–18:00)的 token 单价为优惠时段的 2 倍。本插件把这一状态全天候摆在眼前,让你决定是继续聊,还是把费钱的活儿挪到优惠时段。

特性

  • 实时准确 —— 每 30 秒用 Intl.DateTimeFormat('Asia/Shanghai') 刷新,无需手动设置时区

  • 随意拖动 —— 拖到任何位置,位置记忆在 localStorage,且不会拖出屏幕

  • 点击看详情 —— 详情卡显示当前北京时间、高峰/优惠窗口、V4-Flash / V4-Pro 参考价

  • 零 host 风险 —— 纯浏览器插件,host 半是 no-op

  • 与仓库级 AGENTS.md 里的「峰谷计价提醒」文字规则互补:规则管提问时机,角标管全天候可见
  • 安装

    sh
    dsh plugin --profile web add dsh-peak-badge

    重启 dsh web,硬刷新浏览器(macOS:Cmd+Shift+R;其他:Ct

    查看完整 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-peak-badge
    Repo
    git+https://github.com/mj5809/dsh-peak-badge.git
    Engines
    {"node":">=18"}
    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-ui-layout"]}}