Skip to content

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过蜜䜠的 AI 舆情监控助手䞎热点筛选工具聚合倚平台热点 + RSS 订阅支持关键词粟准筛选。AI 智胜筛选新闻 + AI 翻译 + AI 分析简报盎掚手机也支持接入 MCP 架构赋胜 AI 自然语蚀对话分析、情感掞察䞎趋势预测等。支持 Docker 数据本地/云端自持。集成埮信/飞乊/钉钉/Telegram/邮件/ntfy/bark/slack 等枠道智胜掚送。

27.3 KB
Raw Blame
# ═══════════════════════════════════════════════════════════════
#                   TrendRadar 时闎线配眮
#                      Version: 1.2.0
# ═══════════════════════════════════════════════════════════════
#
# 这䞪文件控制「什么时闎做什么事」。
#
# 倧倚数人䞍需芁猖蟑这䞪文件。
# 只需圚 config.yaml 䞭选择䞀䞪预讟暡板即可
#
#   schedule:
#     preset: "morning_evening"    ← 改这里就行
#
#
# 可视化配眮猖蟑噚地址: https://sansan0.github.io/TrendRadar/
#
#
# ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
# 📖 基本抂念垮助䜠理解后面的配眮
# ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
#
#
# 🔁 皋序是怎么运行的
#
#   TrendRadar 䞍是䞀盎圚后台运行的而是被「定时闹钟」呚期性唀醒
#
#     GitHub Actions 甚户 → 由 .github/workflows/crawler.yml 侭的 cron 定时觊发
#                           默讀每小时运行䞀次劂每小时第 33 分钟
#
#     Docker 甚户         → 由 docker/.env 侭的 CRON_SCHEDULE 定时觊发
#                           默讀每 30 分钟运行䞀次
#
#   每次被唀醒后皋序按以䞋䞉䞪阶段䟝次执行
#
#     1⃣ 采集collect
#        爬取各热抜平台 + RSS 订阅源的最新数据存入数据库
#
#                  ⬇
#
#     2⃣ 分析analyze
#        调甚 AI 倧暡型对采集到的新闻进行深床分析可选需配眮 API Key
#
#                  ⬇
#
#     3⃣ 掚送push
#        将敎理奜的热点新闻 + AI 分析结果发送到䜠的通知枠道
#        飞乊、钉钉、Telegram、邮件等
#
#   这䞉䞪阶段郜可以独立匀关。本文件的䜜甚就是控制
#   「圚什么时闎段匀启/关闭哪些阶段」。
#
#
# 🔌 config.yaml 总匀关 侎 timeline 时闎段匀关 的关系
#
#   config.yaml 里有几䞪「总匀关」它们的䌘先级高于本文件
#
#     platforms.enabled: false   → 氞远䞍爬热抜无论 timeline 怎么讟眮
#     rss.enabled: false         → 氞远䞍爬 RSS同䞊
#     notification.enabled: false → 氞远䞍掚送同䞊
#     ai_analysis.enabled: false  → 氞远䞍分析同䞊
#
#   只有圓总匀关䞺 true 时timeline 的时闎段匀关才䌚生效。
#   换句话诎总匀关决定「胜䞍胜做」timeline 决定「什么时候做」。
#
#
# ⏰ 什么是「时闎段」和「静默期」
#
#   䜠可以把䞀倩想象成䞀条时闎线䞊面划分了若干䞪「时闎段」。
#   每䞪时闎段有自己的行䞺匀关是吊采集、是吊分析、是吊掚送。
#
#   而䞍圚任䜕时闎段内的时闎就叫「静默期」走 default 默讀配眮。
#   静默期通垞必须芁采集这样数据䞀盎圚积环
#   等到掚送时就胜汇总出完敎的报告。
#
#
#   💡 静默期越长积环的数据越䞰富排名变化蜚迹、䞊抜/䞋抜时闎等
#   最终提亀给 AI 分析的䞊䞋文也越完敎分析莚量曎高。
#   盞比 MCP Server该方案的党倩数据胜呈现曎完敎的热床趋势和变化脉络。
#
#
# ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
# 📋 预讟暡板䞀览选䞀䞪就行
# ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
#
#   1⃣ always_on        党倩候有新增就掚默讀
#   2⃣ morning_evening  党倩掚送 + 晚闎汇总掚荐倧倚数人
#   3⃣ office_hours     工䜜日䞉段匏到岗速览→午闎热点→收工汇总
#   4⃣ night_owl        午后速览 + 深倜党倩汇总
#   5⃣ custom           完党自定义需芁猖蟑本文件底郚的 custom 段
#
# 想自定义䞀种方匏
#   1. 盎接翻到本文件底郚的「自定义暡匏」郚分
#   2. 圚䞋方 presets 里新增䜠自己的预讟暡板
#      只芁 key 䞍重倍然后圚 config.yaml 里填䜠的暡板名即可
#
# ⚠ 关于时闎段讟计的建议
#   GitHub Actions 建议定时任务闎隔 ≥ 2 小时。由于系统觊发存圚随机延迟闎隔过短可胜富臎任务挏运行。
#   Docker 甚户cron 定时是准时的无歀限制按需讟眮即可。
#
#
# ═══════════════════════════════════════════════════════════════


# ───────────────────────────────────────────────────────────────
# 预讟暡板
# ───────────────────────────────────────────────────────────────
presets:

  # ───────────────────────────────────────────────────────────
  # 1⃣ always_on - 党倩候监控
  #
  # 最简单的暡匏党倩候采集 + 掚送有新增就通知䜠。
  # 䞍划分时闎段党倩䜿甚同䞀套配眮。
  # 适合重床甚户、实时舆情监控
  #
  # 党倩掚送 ✓ | AI分析 ✗ | 䞍限掚送次数
  # ───────────────────────────────────────────────────────────
  always_on:
    name: "党倩监控"
    description: "党倩候监控有新增立即掚送。适合重床甚户。"

    # 默讀配眮 ── 䞍圚任䜕时闎段内时䜿甚这组匀关
    # 因䞺这䞪暡匏没有划分时闎段所以 default 就是党倩的行䞺
    default:
      collect: true                # 采集数据爬取热抜 + RSS
      analyze: false               # 䞍做 AI 分析节省 API 莹甚
      ai_mode: "current"           # AI 分析圓前抜单
      push: true                   # 有新内容就掚送
      report_mode: "incremental"   # 只掚送新增内容避免重倍
      once:                        # 限制每䞪时闎段内只执行䞀次
        analyze: false             #   䞍限制分析次数
        push: false                #   䞍限制掚送次数

    # 没有定义任䜕时闎段党倩郜走 default
    #
    # 语法提瀺{} 是 YAML 的「空字兞」写法衚瀺里面没有任䜕内容。
    # 等价于写成倚行䜆什么郜䞍填。后面的 [] 同理衚瀺「空列衚」。
    periods: {}
    day_plans:
      all_day:
        periods: []                   # 空列衚 = 这倩䞍启甚任䜕时闎段
    week_map:
      1: "all_day"                 # 呚䞀
      2: "all_day"                 # 呚二
      3: "all_day"                 # 呚䞉
      4: "all_day"                 # 呚四
      5: "all_day"                 # 呚五
      6: "all_day"                 # 呚六
      7: "all_day"                 # 呚日


  # ───────────────────────────────────────────────────────────
  # 2⃣ morning_evening - 早晚汇总掚荐
  #
  # 党倩掚送圓前热点 + 晚闎做䞀次圓日党倩汇总。
  # 适合倧倚数人
  #
  # 默讀党倩掚送 ✓ | AI分析 ✓ | 䞍限掚送次数
  # 晚闎汇总掚送 ✓ | AI分析 ✓ | 只掚/分析䞀次
  # ───────────────────────────────────────────────────────────
  morning_evening:
    name: "早晚汇总"
    description: "党倩掚送 + 晚闎圓日汇总。适合倧倚数人。"

    # 默讀配眮 ── 䞍呜䞭任䜕时闎段时的行䞺
    default:
      collect: true                # 始终采集
      analyze: true                # AI 分析圓前抜单
      ai_mode: "current"           # AI 分析圓前抜单
      push: true                   # 每次掚送圓前圚抜热点
      report_mode: "current"       # 圓前圚抜的新闻
      # frequency_file: "xxx.txt"               # 关键词文件可选䜍于 config/custom/keyword/
      # interests_file: "xxx.txt"                # AI 兎趣文件可选䜍于 config/custom/ai/
      # filter_method: "keyword"                # 筛选策略可选: keyword | ai䞍填甚党局 filter.method
      once:
        analyze: false             # 䞍限制分析次数
        push: false                # 䞍限制掚送次数

    # 时闎段定义 ── 只有晚闎汇总需芁特殊倄理
    periods:
      evening_summary:
        name: "晚闎汇总"
        start: "20:00"
        end: "22:00"
        # frequency_file: "xxx.txt"               # 关键词文件可选䜍于 config/custom/keyword/
        # interests_file: "xxx.txt"                # AI 兎趣文件可选䜍于 config/custom/ai/
        # filter_method: "keyword"                # 筛选策略可选: keyword | ai䞍填甚党局 filter.method
        analyze: true              # 晚闎做 AI 分析
        ai_mode: "daily"           # AI 也汇总党倩内容
        report_mode: "daily"       # 切换䞺圓日党郚新闻汇总
        once:
          analyze: true            # 窗口内只分析䞀次
          push: true               # 窗口内只掚送䞀次

    # 日计划 ── 把时闎段组装成䞀倩的安排
    day_plans:
      all_day:
        periods: ["evening_summary"]

    # 呚映射 ── 每倩甚哪䞪日计划1=呚䞀 ... 7=呚日
    week_map:
      1: "all_day"
      2: "all_day"
      3: "all_day"
      4: "all_day"
      5: "all_day"
      6: "all_day"
      7: "all_day"


  # ───────────────────────────────────────────────────────────
  # 3⃣ office_hours - 办公时闎掚送
  #
  # 工䜜日䞉段匏掚送呚末增量自由掚。
  # 适合䞊班族、䌁䞚甚户
  #
  # 默讀静默期掚送 ✗ | AI分析 ✗
  # 到岗速览掚送 ✓ | AI分析 ✓ | 只掚䞀次
  # 午闎热点掚送 ✓ | AI分析 ✗ | 只掚䞀次
  # 收工汇总掚送 ✓ | AI分析 ✓ | 只掚䞀次
  # 呚末自由掚送 ✓ | AI分析 ✗ | 䞍限掚送次数
  # ───────────────────────────────────────────────────────────
  office_hours:
    name: "办公时闎"
    description: "工䜜日䞉段匏掚送到岗→午闎→收工呚末增量自由掚送。"

    default:
      collect: true
      analyze: false
      ai_mode: "current"
      push: false                  # 默讀䞍掚送
      report_mode: "current"
      once:
        analyze: true              # 每䞪时段只分析䞀次
        push: true                 # 每䞪时段只掚送䞀次

    periods:
      morning_briefing:
        name: "到岗速览"
        start: "09:00"
        end: "11:00"
        analyze: true              # AI 分析圓前热点
        ai_mode: "current"         # AI 分析圓前抜单
        push: true                 # 到岗后看圓前热点
        report_mode: "current"     # 圓前圚抜的新闻
        # once 继承 defaultanalyze: true, push: true→ 只掚/分析䞀次

      noon_update:
        name: "午闎热点"
        start: "13:00"
        end: "15:00"
        push: true                 # 午闎掚送圓前圚抜热点
        report_mode: "current"     # 圓前圚抜的新闻
        # analyze 继承 default: false → 午闎䞍做 AI 分析节省 API
        # once 继承 defaultpush: true→ 只掚䞀次

      closing_summary:
        name: "收工汇总"
        start: "17:00"
        end: "19:00"
        analyze: true              # AI 做党倩汇总分析
        ai_mode: "daily"           # AI 也分析党倩内容
        push: true                 # 䞋班前掚送圓日完敎汇总
        report_mode: "daily"       # 圓日党郚新闻汇总
        # once 继承 defaultanalyze: true, push: true→ 只掚/分析䞀次

      weekend_free:
        name: "呚末自由"
        start: "08:00"
        end: "23:00"
        ai_mode: "current"         # AI 分析圓前抜单
        push: true                 # 有新增就掚送
        report_mode: "incremental" # 增量暡匏有新增才掚没有就安静
        once:
          analyze: false           # 䞍限制分析次数
          push: false              # 䞍限制掚送次数

    # 工䜜日䜿甚䞉段匏掚送呚末䜿甚增量自由暡匏
    day_plans:
      workday:
        periods: ["morning_briefing", "noon_update", "closing_summary"]
      weekend:
        periods: ["weekend_free"]  # 呚末有新增就掚䞍打扰睡眠

    week_map:
      1: "workday"                 # 呚䞀 → 工䜜日计划
      2: "workday"
      3: "workday"
      4: "workday"
      5: "workday"
      6: "weekend"                 # 呚六 → 呚末计划
      7: "weekend"                 # 呚日 → 呚末计划


  # ───────────────────────────────────────────────────────────
  # 4⃣ night_owl - 倜猫子暡匏
  #
  # 癜倩安静午后和深倜各掚䞀次。
  # 适合倜闎工䜜者、海倖时差甚户、自由职䞚者
  #
  # 默讀癜倩静默掚送 ✗ | AI分析 ✗
  # 午后速览掚送 ✓ | AI分析 ✓ | 只掚䞀次
  # 深倜汇总掚送 ✓ | AI分析 ✓ | 只掚䞀次
  # ───────────────────────────────────────────────────────────
  night_owl:
    name: "倜猫子暡匏"
    description: "午后速览 + 深倜党倩汇总。适合倜闎工䜜者、海倖时差甚户。"

    default:
      collect: true
      analyze: false
      ai_mode: "current"
      push: false
      report_mode: "current"
      once:
        analyze: true              # 每䞪时段只分析䞀次
        push: true                 # 每䞪时段只掚送䞀次

    periods:
      afternoon_peek:
        name: "午后速览"
        start: "15:00"
        end: "17:00"
        analyze: true              # AI 分析圓前热点
        ai_mode: "current"         # AI 分析圓前抜单
        push: true                 # 午后看圓前热点
        report_mode: "current"     # 圓前圚抜的新闻
        # once 继承 defaultanalyze: true, push: true→ 只掚/分析䞀次

      late_night:
        name: "深倜汇总"
        start: "22:00"
        end: "01:00"               # start > end → 自劚识别䞺跚日
        analyze: true              # AI 做党倩汇总分析
        ai_mode: "daily"           # AI 也分析党倩内容
        push: true                 # 深倜掚送圓日完敎汇总
        report_mode: "daily"       # 圓日党郚新闻汇总
        # once 继承 defaultanalyze: true, push: true→ 只掚/分析䞀次

    day_plans:
      all_day:
        periods: ["afternoon_peek", "late_night"]
    week_map:
      1: "all_day"
      2: "all_day"
      3: "all_day"
      4: "all_day"
      5: "all_day"
      6: "all_day"
      7: "all_day"


# ═══════════════════════════════════════════════════════════════
#
# 5⃣ 自定义暡匏
#
# 圓 config.yaml 䞭讟眮 schedule.preset: "custom" 时
# 系统䌚读取䞋面这段配眮。
#
# 劂果䞊面的预讟暡板无法满足䜠的需求可以圚这里自由定义。
#
# ═══════════════════════════════════════════════════════════════
#
# 自定义配眮的思路埈简单就像搭积朚
#
#   第 1 步定义「积朚块」periods
#            每块积朚 = 䞀䞪时闎段 + 这段时闎芁做什么
#            䟋劂早闎 08-10 掚送、晚闎 19-21 汇总
#
#   第 2 步拌成「䞀倩的安排」day_plans
#            把积朚块组合起来圢成䞀倩的日皋
#            䟋劂工䜜日甚 [æ—©é—Ž, 晚闎]呚末甚 [晚闎]
#
#   第 3 步指定「每倩甚哪䞪安排」week_map
#            呚䞀到呚日分别对应哪䞪日计划
#            䟋劂呚䞀~呚五甚 workday呚六呚日甚 weekend
#
#   及倖还有䞀䞪「默讀配眮」default
#   圓某䞪时刻䞍圚任䜕积朚块内时就甚默讀配眮。
#   积朚块里没写的字段也䌚自劚回退到默讀配眮。
#
#
# 䞋面是䞀䞪完敎的自定义瀺䟋工䜜日和呚末䜿甚䞍同的时闎段安排
#
#   工䜜日时闎段:
#     深倜静默 23:00-06:00跚日采集 ✓ | 分析 ✓ | 掚送 ✗
#     工䜜日早闎 08:00-10:00掚送 ✓ | incremental
#     晚闎汇总 19:00-21:00掚送 ✓ | 分析 ✓ | daily
#     其䜙时闎走默讀配眮静默采集
#
#   呚末时闎段:
#     深倜静默 23:00-06:00跚日采集 ✓ | 分析 ✓ | 掚送 ✗
#     呚末早闎 10:00-12:00掚送 ✓ | daily
#     晚闎汇总 19:00-21:00掚送 ✓ | 分析 ✓ | daily
#     其䜙时闎走默讀配眮静默采集

custom:
  name: "自定义"
  description: "完党自由定义时闎段、日计划和呚映射。"

  # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  # 默讀配眮
  #
  # 圓前时刻䞍圚任䜕时闎段积朚块内时䜿甚这组匀关。
  # 时闎段䞭没有写的字段也䌚回退到这里。
  # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  default:
    collect: true                  # 是吊采集数据爬取热抜 + RSS
    analyze: false                 # 是吊执行 AI 分析
    ai_mode: "current"            # AI 分析暡匏:
                                   #   follow_report → 跟随 report_mode
                                   #   daily         → 区制党倩汇总
                                   #   current       → 区制圓前抜单
                                   #   incremental   → 区制增量暡匏
    push: false                    # 是吊发送掚送通知
    report_mode: "current"         # 报告暡匏:
                                   #   daily       → 圓日所有新闻的汇总
                                   #   current     → 圓前圚抜的新闻
                                   #   incremental → 只掚送新增内容

                                   
    # frequency_file: "general.txt"
                                   # 关键词文件可选䜍于 config/custom/keyword/
                                   # 䞍填则䜿甚默讀的 config/frequency_words.txt
                                   # 时闎段period䞭也可以讟眮歀字段来芆盖默讀倌
                                   # 䟋劂晚闎汇总甚科技词库
                                   #   frequency_file: "tech.txt"
                                   # 泚意仅圚 filter_method 䞺 keyword 时生效
                                   
    # interests_file: "finance.txt"
                                   # AI 兎趣描述文件可选䜍于 config/custom/ai/
                                   # 䞍填则䜿甚默讀的 config/ai_interests.txt
                                   # 时闎段period䞭也可以讟眮歀字段来芆盖默讀倌
                                   # 䟋劂晚闎汇总甚金融兎趣
                                   #   interests_file: "finance.txt"
                                   # 泚意仅圚 filter_method 䞺 ai 时生效

    # filter_method: "keyword"     # 筛选策略可选: keyword | ai
                                   # 䞍填则䜿甚党局 config.yaml 的 filter.method
                                   # 时闎段period䞭也可以讟眮歀字段来芆盖
                                   # 䟋劂晚闎汇总甚 AI 筛选
                                   #   filter_method: "ai"
    once:
      analyze: true                # 该时闎段内只分析䞀次省 API
      push: true                   # 该时闎段内只掚送䞀次省打扰


  # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  # 第 1 步定义积朚块时闎段
  #
  # 每䞪时闎段有䞀䞪唯䞀的 key劂 deep_quiet
  # 以及 start / end 衚瀺生效的时闎范囎。
  #
  # 只需芁写「和 default 䞍同的字段」其䜙自劚继承 default。
  # 䟋劂 weekday_morning 没写 collect就䌚继承 default 的 collect: true。
  #
  # 提瀺劂果 start > end劂 22:00 → 07:00
  #       系统䌚自劚识别䞺跚越午倜的时闎段。
  # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  periods:

    deep_quiet:
      name: "深倜静默"
      start: "23:00"
      end: "06:00"                 # 23:00 → 次日 06:00跚日时闎段
      # frequency_file: "xxx.txt"               # 关键词文件可选䜍于 config/custom/keyword/
      # interests_file: "xxx.txt"                # AI 兎趣文件可选䜍于 config/custom/ai/
      # filter_method: "keyword"                # 筛选策略可选: keyword | ai䞍填甚党局 filter.method
      collect: true                # 倜闎继续采集数据
      analyze: true                # 倜闎可以跑 AI 分析反正䞍掚送
      push: false                  # 深倜䞍掚送避免打扰

    weekday_morning:
      name: "工䜜日早闎"
      start: "08:00"
      end: "10:00"                 # 跚床 2h留足觊发裕量
      # frequency_file: "xxx.txt"               # 关键词文件可选䜍于 config/custom/keyword/
      # interests_file: "xxx.txt"                # AI 兎趣文件可选䜍于 config/custom/ai/
      # filter_method: "keyword"                # 筛选策略可选: keyword | ai䞍填甚党局 filter.method
      push: true                   # 早䞊掚送䞀次
      report_mode: "incremental"   # 只掚新增内容
      # once 继承 defaultpush: true→ 窗口内只掚䞀次

    weekend_morning:
      name: "呚末早闎"
      start: "10:00"
      end: "12:00"                 # 跚床 2h
      # frequency_file: "xxx.txt"               # 关键词文件可选䜍于 config/custom/keyword/
      # interests_file: "xxx.txt"                # AI 兎趣文件可选䜍于 config/custom/ai/
      # filter_method: "keyword"                # 筛选策略可选: keyword | ai䞍填甚党局 filter.method
      push: true
      report_mode: "daily"         # 呚末看党倩汇总
      # once 继承 defaultpush: true→ 窗口内只掚䞀次

    evening_summary:
      name: "晚闎汇总"
      start: "19:00"
      end: "21:00"
      # frequency_file: "xxx.txt"               # 关键词文件可选䜍于 config/custom/keyword/
      # interests_file: "xxx.txt"                # AI 兎趣文件可选䜍于 config/custom/ai/
      # filter_method: "keyword"                # 筛选策略可选: keyword | ai䞍填甚党局 filter.method
      analyze: true                # 晚闎做 AI 分析
      ai_mode: "daily"             # AI 也分析党倩内容
      push: true                   # 晚闎掚送
      report_mode: "daily"         # 圓日党郚新闻汇总
      # once 继承 defaultanalyze: true, push: true→ 只分析/掚送䞀次


  # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  # 第 2 步把积朚块拌成日计划
  #
  # 把䞊面定义的时闎段组合成䞀倩的安排。
  # 䜠可以定义倚䞪日计划劂 workday 和 weekend
  # 然后圚第 3 步的 week_map 䞭分配给䞍同的星期。
  # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  day_plans:
    workday:                       # 工䜜日计划
      periods: ["deep_quiet", "weekday_morning", "evening_summary"]
    weekend:                       # 呚末计划甚 weekend_morning 替换 weekday_morning
      periods: ["deep_quiet", "weekend_morning", "evening_summary"]


  # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  # 第 3 步指定每倩甚哪䞪日计划
  #
  # 1=呚䞀  2=呚二  3=呚䞉  4=呚四  5=呚五  6=呚六  7=呚日
  # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  week_map:
    1: "workday"                   # 呚䞀 → 工䜜日计划
    2: "workday"                   # 呚二
    3: "workday"                   # 呚䞉
    4: "workday"                   # 呚四
    5: "workday"                   # 呚五
    6: "weekend"                   # 呚六 → 呚末计划
    7: "weekend"                   # 呚日


  # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  # 冲突策略䞀般䞍甚改
  #
  # 什么是「冲突」
  #   劂果䜠的䞀䞪时闎段有重叠比劂 A 是 08:00-12:00B 是 10:00-14:00
  #   那么 10:00-12:00 这段时闎就同时属于 A 和 B产生了冲突。
  #   歀时皋序需芁知道到底听谁的
  #
  # 䞀种倄理方匏
  #
  #   error_on_overlap掚荐
  #     盎接报错提醒䜠去修改配眮。
  #     适合倧倚数人 —— 时闎段重叠通垞是写错了报错胜及时发现。
  #
  #   last_wins
  #     day_plans 的 periods 列衚䞭写圚后面的䌘先。
  #     比劂 periods: ["A", "B"]重叠时 B 生效。
  #     适合场景䜠想甚䞀䞪倧范囎时闎段打底再甚后面的小范囎芆盖。
  #
  # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  overlap:
    policy: "error_on_overlap"