geokkjer/dsh-peak ↗★ 0

dsh-peak

提供API高峰期计价指示器与查询工具 适合需要监控DeepSeek API计价窗口以优化调用成本的用户。

套件
dsh-peak
相容性
待驗證
版本
0.3.0
授權
MIT
最近更新
2026年9月22日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:geokkjer/dsh-peak

Usage

Ask the agent:

  • "is it peak pricing right now?" → calls dsh_peak_status
  • "run this long job off-peak" → the agent checks dsh_peak_status first and reports the window

The pill itself needs no interaction: it self-updates every 30s and flips color at each window boundary.

dsh_peak_status returns the summary an agent reads plus structured fields: peak, offPeakReason (weekend / holiday / none, the last when only the peak-window rule applies), holidayName (empty unless the day is a holiday), makeupWorkday, the UTC and Beijing clocks, nextSwitchUtc / nextSwitchInMinutes, and holidayCalendarThrough / holidayCalendarStale.

Tool schemas use the harness's JSON-schema subset, which takes a single type string per node — a type array disables the whole plugin entry at load, so offPeakReason carries the none sentinel instead of a nullable type.