f20880479-lab/dsh-peak-gate ↗★ 3
dsh-peak-gate
DeepSeek Harness peak/off-peak pricing gate: during peak hours (weekdays 09:00-12:00 / 14:00-18:00 Beijing time) every send asks for confirmation, with an option to mute the reminder for the current peak segment, or to queue the message for off-peak (half price) auto-send via the /peakgate command family; off-peak hours never ask. | DeepSeek Harness 峰谷计费闸门:高峰时段(工作日北京时间 09:00-12:00 / 14:00-18:00)每次发送都确认,可勾选“本次高峰段内不再提示”,或用 /peakgate 指令排队到空闲时段(半价)自动发送;空闲时段不询问。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:f20880479-lab/dsh-peak-gate说明文档
阅读完整 README ↗使用
- 重启 DSH Desktop 后,插件自动加载(浏览器端 bundle)。
- 高峰时段(工作日 09:00–12:00、14:00–18:00,北京时间)发送消息 → 弹出确认卡片:
- ☑ 本次高峰段内不再提示(可选):勾选后直到本段结束都不再询问(所有会话)。
- 立即发送(高峰价):按当前价格发送。
- 等到空闲时段(自动发送):取消本次发送,草稿暂存,空闲时段开始时自动发出(半价)。
- ✕ 关闭:取消本次发送、保留草稿(不静音,下次发送仍会询问)。
- 不勾选时,高峰时段每次发送都会询问。
- 空闲时段(其余时间、周末)发送消息 → 完全无打扰。
- 任意时段输入
/peakgate hold 消息内容后回车 → 消息入队(输入框被清空),空闲时段自动半价发送;/peakgate list打开队列卡片管理(删除/清空)。指令不会触发高峰确认,也不发给模型。
配置
高级配置存于浏览器 localStorage(键 dsh.peakGate.settings.v1),可用 DevTools 修改:
{
"enabled": true,
"timezone": "Asia/Shanghai",
"peakWindows": [
{ "start": "09:00", "end": "12:00" },
{ "start": "14:00", "end": "18:00" }
],
"offPeakWeekends": true
}
timezone:计费时钟的 IANA 时区(默认北京时间)。peakWindows:工作日高峰窗口(24 小时制,end为开区间)。offPeakWeekends:周末全天按空闲价(官方政策)。
其他 localStorage 键:dsh.peakGate.muted.v1(已静音的高峰段记录,形如 2026-08-25|09:00-12:00)、dsh.peakGate.holds.v1(暂存消息)。