PuluWang/dsh-peak-hours ↗★ 0

dsh-peak-hours

DeepSeek Harness plugin: warns when the current time is in the peak billing window, where cost is 2x the off-peak rate. 适合使用付费API并希望在高峰时段获得双倍扣费提醒以控制成本的用户。

패키지
dsh-peak-hours
호환성
미검증
버전
1.4.0
라이선스
MIT
최근 업데이트
2026. 10. 18.

같은 패키지 이름의 다른 저장소

설치

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

配置

改 client.js 顶部 CONFIG:

字段默认说明
peakWindows[{540,720},{840,1080}]高峰窗口,北京时间分钟数
peakMultiplier2高峰倍数,用于「花费 ×2」
offPeakDiscount'5 折'空闲折扣文案
holidayRanges2026 全年法定节假日区间(含首尾),全天算空闲
tickMs10000刷新间隔
margin8拖动/吸附时与视口边缘的最小距离(px)

节假日需要每年维护

holidayRanges 目前只覆盖 2026 年(依据国务院办公厅《关于2026年部分节假日安排的通知》,国办发明电〔2025〕7号)。国务院一般在每年 11 月发布次年安排,届时在数组里按 ['2027-01-01','2027-01-03'] 的格式追加即可;没追加的年份,节假日会被当成普通工作日(显示为高峰)。

周末的「调休上班日」按官方文字仍属周末,插件按空闲处理。