dshbase

插件目录 / Developer / dsh-peak-badge

dsh-peak-badge

已验证 · 实测可装 mj5809

✓ 持续维护 2 位贡献者

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-17最近推送
跨平台平台

功能简介

Developer 类别的 DeepSeek Harness 插件。

✅
我们的评价
可用 — 实测通过,早期项目

Developer 类别的 DeepSeek Harness 插件。 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-peak-badge

A floating DeepSeek peak/off-peak pricing badge for the DeepSeek Harness (DSH) web GUI. It tells you at a glance whether DeepSeek tokens are currently billed at peak or off-peak rates — based on Beijing time, with zero configuration.

🟢 Off-peak hours — light green pill: 「优惠时段 · 半价」 (off-peak, half price)
🟠 Peak hours (09:00–12:00, 14:00–18:00 Beijing time) — light orange pill: 「高峰时段 · 单价×2」 (peak, 2× price)

Why

DeepSeek introduced peak/off-peak pricing (峰谷计费) on 2026-08-17: during the peak windows 09:00–12:00 and 14:00–18:00 (Beijing time), token prices are 2× the off-peak rate. This badge keeps that status visible at all times so you can decide whether to keep chatting or defer the expensive work.

Features

  • Always current — refreshes every 30 s using Intl.DateTimeFormat('Asia/Shanghai') (no manual timezone setup).
  • Draggable — move it anywhere; the position is remembered in localStorage and clamped to the viewport.
  • Click for details — a card shows the current Beijing time, the peak/off-peak windows, and reference prices for DeepSeek V4-Flash / V4-Pro.
  • Zero host risk — pure browser plugin; the host half is a no-op.
  • Complements the text-rule reminder in AGENTS.md for agents working in basecamp-style repositories.

Install

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

Restart dsh web, then hard-refresh the browser (Cmd+Shift+R on macOS / Ctrl+Shift+R elsewhere). The badge appears at the bottom-left by default — drag it wherever you like.

Usage

  • See status: green = off-peak, orange = peak. The pill also shows the current Beijing time.
  • Drag: press and hold, move, release. Position persists across refreshes.
  • Details: click (without dragging) to open/close the info card.

Reference prices (effective 2026-08-17, CNY per million tokens)

Model Peak input / output Off-peak input / output
V4-Flash ¥3.0 / ¥9.0 ¥1.5 / ¥4.5
V4-Pro ¥9.0 / ¥27.0 ¥4.5 / ¥13.5

Cache hits are billed at half the input price. Always check the official pricing page: https://api-docs.deepseek.com/quick_start/pricing

Structure

  • lib/index.js — host half (no-op; browser-only plugin)
  • lib/client.js — browser half: window.__ModuleLoader__.load() + shell.overlay slot
  • cordis.patch.yml — bundle patch (inserts the peak-badge row)

Development

npm run check      # syntax-check host + client
dsh plugin --profile web add "link:$PWD"   # install from source

Uninstall

dsh plugin --profile web remove dsh-peak-badge

License

MIT © 2026 Sue YoungZen

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-peak-badge」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:mj5809/dsh-peak-badge

Headless(CLI)profile:

dsh plugin --profile headless add github:mj5809/dsh-peak-badge

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →