ggghhh-11/dsh-peak-hour-reminder ↗★ 1
dsh-peak-hour-reminder
DeepSeek API 高峰时段开局询问、跨峰暂停、窗口内静默,以及节假日数据自动更新。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ggghhh-11/dsh-peak-hour-reminderREADME
Read the full README ↗配置
在 profile 的 cordis.patch.yml 用 id 覆盖(不是 insert):
- id: dsh-peak-hour-reminder
config:
timeZone: Asia/Shanghai
peakWindows:
- { start: '09:00', end: '12:00' }
- { start: '14:00', end: '18:00' }
weekendOffPeak: true
pauseOnPeakCrossing: true
askOnPeakStart: true
quietAfterContinue: true
showPriceHint: true
updateEnabled: true
updateUrls:
- https://timor.tech/api/holiday/year/{year}
retentionYears: 1
常用项:
enabled:总开关,默认true。timeZone:默认Asia/Shanghai;DeepSeek 峰谷按北京时间。peakWindows:高峰窗口,支持跨午夜(如22:00–02:00)。weekendOffPeak:周末全天空闲,默认true。extraHolidays:额外假日YYYY-MM-DD数组(补官方尚未发布的假期、公司假日)。pauseOnPeakCrossing:跨峰暂停询问,默认true。askOnPeakStart:高峰开局立即询问,默认true。quietAfterContinue:用户选择继续后,本高峰窗口内不再发提醒,默认true;设为false可保留每回合 notice。showPriceHint:是否在高峰提醒里附价格提示,默认true。updateEnabled:是否联网更新节假日,默认true;关闭后完全离线。updateUrls:节假日 JSON 模板,必须包含{year};默认 timor.tech。dataDir:数据目录,默认$DSH_HOME/peak-hour-reminder(通常是%USERPROFILE%\.dsh\peak-hour-reminder);一般不需要改。retentionYears:保留多少个过去年份,默认1(保留上一年)。debugNow/debugForceUpdate/debugForcePause:测试钩子,默认关闭。
配置非法时回退默认值并打印 warning,不会让插件加载失败拖垮 DSH。