# dsh-budget-guard bundle 层
# 由 profile 的 dsh.profile.bundles 引用（dsh plugin add 时自动追加）。
# 用户可在 profile 自己的 cordis.patch.yml 中覆盖本层的 config。

- insert:
    - id: budget-guard
      name: dsh-budget-guard
      config:
        budget:
          daily: 5        # 日预算（USD）
          monthly: 100    # 月预算（USD）
          total: 1000     # 总预算（USD）
          overBudgetAction: deny   # deny（硬拦截）| warn（只告警）
        prices:
          peakValley: true          # DeepSeek 峰谷定价开关
          valleyFactor: 0.5         # 谷价折扣（官方半价）
          # 可覆盖默认模型价格（USD/1M tokens，峰价）
          models:
            deepseek-chat:
              input: 1.26
              cachedInput: 0.31
              output: 3.78
