dsh-peak
提供API高峰期计价指示器与查询工具 适合需要监控DeepSeek API计价窗口以优化调用成本的用户。
同名包的其他仓库
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:geokkjer/dsh-peak说明文档
阅读完整 README ↗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_statusfirst 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.