dsh-usage-state 0.3.0 → 0.3.1

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 (3) hide show
  1. package/README.en.md +15 -1
  2. package/README.md +15 -1
  3. package/package.json +1 -4
package/README.en.md CHANGED
@@ -58,6 +58,20 @@ If a source needs an endpoint or a key (a self-hosted Sub2API, or a provider wit
58
58
 
59
59
  A very long provider name never pushes the controls around: the card header stays on one line and only the grey provider id is truncated (hover it for the full text).
60
60
 
61
+ ## Screenshots
62
+
63
+ The reading directly below the composer's stats row (shown here with OpenCode Zen Go's three windows; hover any segment for source, mode and the absolute reset time):
64
+
65
+ ![The reading below the composer](https://raw.githubusercontent.com/takboo/dsh-usage-state/main/assets/screenshots/status-line.webp)
66
+
67
+ Settings: one row per provider; **Auto** detects the data source and its primary mode:
68
+
69
+ ![Provider list in the settings page](https://raw.githubusercontent.com/takboo/dsh-usage-state/main/assets/screenshots/settings-providers.webp)
70
+
71
+ Expanding **Advanced** lets you override the source and endpoint, name a credential, or paste a key (written to the DSH credential store):
72
+
73
+ ![Advanced block](https://raw.githubusercontent.com/takboo/dsh-usage-state/main/assets/screenshots/settings-advanced.webp)
74
+
61
75
  ## Supported sources
62
76
 
63
77
  | Source | API mode | Coding-plan mode | Credential |
@@ -84,7 +98,7 @@ A very long provider name never pushes the controls around: the card header stay
84
98
 
85
99
  - Verified against DSH `0.1.5-rc.2`, Node ≥ 20; the DSH requirement is declared as `>=0.1.5-rc.1 <0.2.0-0` through `engines.dsh` (this is what dsh-market's compatibility badge reads).
86
100
  - Published to npm as [`dsh-usage-state`](https://www.npmjs.com/package/dsh-usage-state); GitHub installs work too.
87
- - Version `0.3.0`: DeepSeek, z.ai and OpenCode Zen Go are verified against live accounts; see the limitations below.
101
+ - Version `0.3.1`: DeepSeek, z.ai and OpenCode Zen Go are verified against live accounts; see the limitations below.
88
102
 
89
103
  ## Limitations
90
104
 
package/README.md CHANGED
@@ -60,6 +60,20 @@ dsh plugin --profile web add /path/to/dsh-usage-state
60
60
 
61
61
  供应商名过长时,卡片头部只截断灰色的 provider id(悬停显示全文),右侧的 `↑ ↓ 自动 / Coding Plan / 隐藏` 不会换行。
62
62
 
63
+ ## 截图
64
+
65
+ 输入框统计行正下方的账户读数(图示为 OpenCode Zen Go 的三个窗口,悬停任意一段可看数据源、模式与绝对重置时刻):
66
+
67
+ ![输入框下方的账户读数](https://raw.githubusercontent.com/takboo/dsh-usage-state/main/assets/screenshots/status-line.webp)
68
+
69
+ 设置页:每个 provider 一行,默认「自动」会识别数据源与主模式:
70
+
71
+ ![设置页的供应商列表](https://raw.githubusercontent.com/takboo/dsh-usage-state/main/assets/screenshots/settings-providers.webp)
72
+
73
+ 展开「高级」可覆盖数据源与端点、指定凭据名,或写入密钥(写入 DSH 凭据库):
74
+
75
+ ![高级区](https://raw.githubusercontent.com/takboo/dsh-usage-state/main/assets/screenshots/settings-advanced.webp)
76
+
63
77
  ## 支持的数据源
64
78
 
65
79
  | 数据源 | API 模式 | Coding Plan 模式 | 凭据 |
@@ -108,7 +122,7 @@ dsh plugin --profile web add /path/to/dsh-usage-state
108
122
 
109
123
  - 实测环境:DSH `0.1.5-rc.2`,Node ≥ 20;DSH 版本要求通过 `engines.dsh` 声明为 `>=0.1.5-rc.1 <0.2.0-0`(dsh-market 的兼容徽标读的就是它)。
110
124
  - 同名发布在 npm([`dsh-usage-state`](https://www.npmjs.com/package/dsh-usage-state)),也可从 GitHub 直接安装。
111
- - 版本 `0.3.0`:DeepSeek、z.ai 与 OpenCode Zen Go 已在真机验证,其余见下。
125
+ - 版本 `0.3.1`:DeepSeek、z.ai 与 OpenCode Zen Go 已在真机验证,其余见下。
112
126
 
113
127
  ## 已知限制
114
128
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-usage-state",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "DSH plugin: show account balance (API mode) or coding-plan quota (5h/7d/30d) for the model in use",
6
6
  "license": "MIT",
@@ -69,9 +69,6 @@
69
69
  "LICENSE",
70
70
  "docs/adapters.md"
71
71
  ],
72
- "peerDependencies": {
73
- "react": "^18.2.0"
74
- },
75
72
  "keywords": [
76
73
  "deepseek",
77
74
  "dsh",