# dsh-token-usage-stats bundle patch
#
# This file is the `dsh.bundle.patch` layer of the package: when the plugin is
# installed through the official CLI —
#
#   dsh plugin --profile <name> add dsh-token-usage-stats@<version>
#
# — the command reconciles `dsh.profile.bundles` against installed packages
# and, seeing this declaration, appends `dsh-token-usage-stats` to the bundle
# stack. The profile boot then merges this patch (a single `insert` of the
# plugin row) like a manual cordis.patch.yml mount. The client half loads
# automatically from the package's `dsh.client` manifest.
#
# `pricing` supports a peak/off-peak split per model. Peak hours are Beijing
# time 09:00-12:00 and 14:00-18:00; every other Beijing hour is off-peak, and
# weekends (Beijing Saturday/Sunday) are always off-peak.
# A model priced with only the four flat keys (no `peak`/`offpeak`) applies
# that price at any hour. `cacheWritePerMillion` is not part of the published
# DeepSeek price book and defaults to 0.
- insert:
    - id: token-usage-stats
      name: 'dsh-token-usage-stats'
      config:
        currency: CNY
        pricing:
          deepseek-flash:
            peak:
              uncachedInputPerMillion: 2.0
              cacheReadPerMillion: 0.04
              cacheWritePerMillion: 0
              outputPerMillion: 8.0
            offpeak:
              uncachedInputPerMillion: 1.0
              cacheReadPerMillion: 0.02
              cacheWritePerMillion: 0
              outputPerMillion: 4.0
          deepseek-v4-pro:
            peak:
              uncachedInputPerMillion: 9.0
              cacheReadPerMillion: 0.30
              cacheWritePerMillion: 0
              outputPerMillion: 27.0
            offpeak:
              uncachedInputPerMillion: 4.5
              cacheReadPerMillion: 0.15
              cacheWritePerMillion: 0
              outputPerMillion: 13.5
