ggghhh-11/dsh-peak-hour-reminder ↗★ 1

dsh-peak-hour-reminder

DeepSeek API 高峰时段开局询问、跨峰暂停、窗口内静默,以及节假日数据自动更新。

套件
dsh-peak-hour-reminder
相容性
待驗證
版本
0.1.1
授權
MIT
最近更新
2026年11月4日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ggghhh-11/dsh-peak-hour-reminder

配置

在 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。