@dougen/dsh-deepseek-usage 0.10.2 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +22 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -14,6 +14,17 @@ A sidebar plugin for the **DeepSeek Harness (DSH) Web UI** that answers two ques
14
14
  - **Peak / off-peak dot with a countdown**: orange during peak hours (Mon–Fri, excluding Chinese public holidays, 9:00–12:00 and 14:00–18:00 Beijing Time), green otherwise — weekends, public holidays and the make-up workdays that fall on a weekend are all off-peak; next to it, the time left until the next switch (`2d 15h`, `5h 47m`, `23m`).
15
15
  - Refreshes every 5 minutes, and immediately when you click the card or switch models. Follows the app light/dark theme and the DSH language (Chinese / English).
16
16
 
17
+ ## DSH compatibility
18
+
19
+ Before installing, match the plugin version to your DSH line. DSH compares this package's `peerDependencies` on `@deepseek-ai/dsh-credentials` and `@deepseek-ai/dsh-host-webserver` against its own version and refuses to load the plugin when they disagree.
20
+
21
+ | DSH | Plugin version |
22
+ | --- | --- |
23
+ | `0.2.x` (`0.2.0-rc.1` and later) | `0.11.0` and later |
24
+ | `0.1.x` (`0.1.0-rc.6` and later) | `0.10.x`, or `0.11.0` and later |
25
+
26
+ `dsh --version` prints your DSH version. Installing without a version picks the newest compatible release; name an exact version (`@dougen/dsh-deepseek-usage@0.10.2`) when the newest does not match your DSH.
27
+
17
28
  ## Install, uninstall, common errors
18
29
 
19
30
  ### Install
@@ -62,6 +73,17 @@ The card then shows the reason instead of numbers:
62
73
  - **峰谷指示灯 + 倒计时**:高峰(周一至周五、不含中国法定节假日,9:00–12:00、14:00–18:00 北京时间)橙色,其余时间绿色——周末、法定节假日全天,以及调休上班的周末都是空闲;指示灯旁给出距下次切换的剩余时间(`2d 15h`、`5h 47m`、`23m`)。
63
74
  - 每 5 分钟自动刷新;点击卡片或切换模型时立即刷新。跟随应用明暗主题与 DSH 语言(中文 / English)。
64
75
 
76
+ ### DSH 版本对应关系
77
+
78
+ 安装前先按 DSH 版本选插件版本:DSH 会用本包的 `peerDependencies`(`@deepseek-ai/dsh-credentials`、`@deepseek-ai/dsh-host-webserver`)与自身版本比对,不一致就拒绝加载插件。
79
+
80
+ | DSH | 插件版本 |
81
+ | --- | --- |
82
+ | `0.2.x`(`0.2.0-rc.1` 起) | `0.11.0` 及以后 |
83
+ | `0.1.x`(`0.1.0-rc.6` 起) | `0.10.x`,或 `0.11.0` 及以后 |
84
+
85
+ `dsh --version` 查看当前 DSH 版本。不带版本号安装会取最新的兼容版本;最新版与你的 DSH 不匹配时,用 `@dougen/dsh-deepseek-usage@0.10.2` 这样的完整版本号指定。
86
+
65
87
  ### 安装、卸载与常见错误
66
88
 
67
89
  安装:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dougen/dsh-deepseek-usage",
3
- "version": "0.10.2",
3
+ "version": "0.11.0",
4
4
  "description": "A DeepSeek Harness sidebar plugin: your balance (official API), the active model's unit prices and a peak/off-peak indicator, in a Chinese/English UI. / DeepSeek Harness 侧边栏插件:余额(官方 API)、当前模型档单价与峰谷时段指示灯,界面支持中英文。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -38,8 +38,8 @@
38
38
  }
39
39
  },
40
40
  "peerDependencies": {
41
- "@deepseek-ai/dsh-credentials": "^0.1.0-rc.6",
42
- "@deepseek-ai/dsh-host-webserver": "^0.1.0-rc.6"
41
+ "@deepseek-ai/dsh-credentials": "^0.1.0-rc.6 || ^0.2.0-rc.1",
42
+ "@deepseek-ai/dsh-host-webserver": "^0.1.0-rc.6 || ^0.2.0-rc.1"
43
43
  },
44
44
  "keywords": [
45
45
  "dsh",