@pinkbanana/dsh-balance 0.12.1 → 0.13.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.md +2 -2
  2. package/README_EN.md +2 -2
  3. package/package.json +40 -37
package/README.md CHANGED
@@ -29,9 +29,9 @@ DeepSeek Harness 插件,用于查询 DeepSeek / StepFun API 余额,以及 De
29
29
 
30
30
  ## 兼容性
31
31
 
32
- 0.12.1 适配 DeepSeek Harness **0.2.1-rc.5**([上游版本](https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.2.1-rc.5)),需要 Node.js **22.19+(22.x)或 24+**。所有 DSH peer 依赖和开发依赖均锁定为 `0.2.1-rc.5`。Harness `0.2.0-rc.2` 用户请继续使用插件 `0.10.2`;本次源码不再兼容 Harness 0.1 的接口。
32
+ 自 0.13.1 起,插件采用宽泛兼容范围:**`>=0.2.2-rc.1 <1.0.0-0`**,需要 Node.js **24.9+**。`engines.dsh` 和所有 DSH peer 依赖使用同一范围;DSH 的版本检查包含预发布版,因此后续 0.x 的 RC、补丁版和次版本不会仅因版本号变化而被拒绝加载。Cordis peer 范围为 `^4.1.0`。开发依赖仍固定在 DSH `0.2.2-rc.1` 和 Cordis `~4.1.0`,以保持构建可复现。已实测 [DSH 0.2.2-rc.1](https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.2.2-rc.1);宽泛声明不代表未来版本已完成运行测试,若上游改变 API,仍需适配。Harness `0.2.0-rc.2` 用户请继续使用插件 `0.10.2`;本次源码不再兼容 Harness 0.1 的接口。
33
33
 
34
- 新版 dsh 会在安装及启动时校验插件兼容版本。旧插件锁定 `rc.2`,会被 `rc.5` 拒绝加载;请升级到插件 `0.12.1`,无需添加版本豁免。仍使用 dsh `0.2.1-rc.2` 的用户请保留插件 `0.11.0`。
34
+ 新版 dsh 会在安装及启动时校验插件兼容版本。旧版插件精确锁定 DSH 版本,会在升级 DSH 后被拒绝加载;请升级到插件 `0.13.1` 并重启 Harness。上述兼容范围内无需添加版本豁免;低于 `0.2.2-rc.1` 或进入 `1.0.0` 预发布/正式版时仍保留版本检查。仍使用 dsh `0.2.1-rc.5` 的用户请保留插件 `0.12.1`;dsh `0.2.1-rc.2` 用户请保留插件 `0.11.0`。
35
35
 
36
36
  也可在本地构建并打包源码,再用 `dsh plugin --profile web add /absolute/path/to/package.tgz` 安装生成的 `.tgz` 文件,随后重启 Harness:
37
37
 
package/README_EN.md CHANGED
@@ -27,7 +27,7 @@ The composer readout follows the current session’s provider and model. The Set
27
27
 
28
28
  ## Compatibility
29
29
 
30
- Version 0.12.1 targets DeepSeek Harness **0.2.1-rc.5** ([upstream release](https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.2.1-rc.5)). Use Node.js **22.19+ (22.x) or 24+**. All DSH peer and development dependencies are pinned to `0.2.1-rc.5`. Harness `0.2.0-rc.2` users should keep plugin `0.10.2`; Harness 0.1 APIs are no longer supported by this checkout.
30
+ Starting with 0.13.1, the plugin declares the broad DSH range **`>=0.2.2-rc.1 <1.0.0-0`**. Use Node.js **24.9+**. `engines.dsh` and every DSH peer use the same range. DSH includes prereleases in its compatibility checks, so later 0.x RCs, patches, and minor versions are not rejected solely because their version changed. The Cordis peer range is `^4.1.0`. Development dependencies remain pinned to DSH `0.2.2-rc.1` and Cordis `~4.1.0` for reproducible builds. Runtime validation covers [DSH 0.2.2-rc.1](https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.2.2-rc.1); the broad declaration does not mean future versions have been runtime-tested, and upstream API changes may still require adaptation. Harness `0.2.0-rc.2` users should keep plugin `0.10.2`; Harness 0.1 APIs are no longer supported by this checkout.
31
31
 
32
32
  To install from source, build and pack it locally, then pass the generated `.tgz` path to `dsh plugin --profile web add /absolute/path/to/package.tgz` and restart Harness:
33
33
 
@@ -81,7 +81,7 @@ Statistics cover locally saved dsh sessions only, not other clients or organizat
81
81
 
82
82
  Conversation/reasoning model estimates use the [Tokener model catalog](https://www.tokener.ai/zh/models) USD reference snapshot checked on 2026-11-03, matching exact model IDs without vendor rates or DeepSeek peak multipliers. This snapshot also estimates older records; it does not reconstruct historical charges. Unknown models, missing usage, and requests with unpublished cache-write pricing retain their requests/tokens but stay unpriced. Account balances and actual bills remain in the [Tokener console](https://console.tokener.ai).
83
83
 
84
- New dsh versions validate compatibility before installation and startup. Plugin `0.11.0` declares `rc.2` peers and is rejected on `rc.5`; upgrade to `0.12.1` without a version exemption. Keep plugin `0.11.0` if you remain on dsh `0.2.1-rc.2`.
84
+ New dsh versions validate compatibility before installation and startup. Older plugin releases pin exact DSH versions and can be rejected after a DSH upgrade; update to plugin `0.13.1` and restart Harness. No version exemption is required within the declared range. Versions below `0.2.2-rc.1`, and 1.0.0 prereleases or newer, remain outside the range. Keep plugin `0.12.1` on dsh `0.2.1-rc.5`, or plugin `0.11.0` on dsh `0.2.1-rc.2`.
85
85
 
86
86
  ## StepFun setup
87
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinkbanana/dsh-balance",
3
- "version": "0.12.1",
3
+ "version": "0.13.1",
4
4
  "description": "DeepSeek Harness plugin for multi-provider API balances, available models, and usage billing",
5
5
  "repository": {
6
6
  "type": "git",
@@ -68,65 +68,68 @@
68
68
  }
69
69
  },
70
70
  "engines": {
71
- "node": "^22.19.0 || >=24.0.0"
71
+ "node": ">=24.9.0",
72
+ "dsh": ">=0.2.2-rc.1 <1.0.0-0"
72
73
  },
73
74
  "publishConfig": {
74
75
  "access": "public"
75
76
  },
76
77
  "license": "MIT",
77
78
  "peerDependencies": {
78
- "@deepseek-ai/cordis": "~4.0.5",
79
- "@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.5",
80
- "@deepseek-ai/dsh-client-locale": "0.2.1-rc.5",
81
- "@deepseek-ai/dsh-client-store": "0.2.1-rc.5",
82
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.5",
83
- "@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.5",
84
- "@deepseek-ai/dsh-client-ui-model-selection": "0.2.1-rc.5",
85
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.5",
86
- "@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.5",
87
- "@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.5",
88
- "@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.5",
89
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.5",
90
- "@deepseek-ai/dsh-credentials": "0.2.1-rc.5",
91
- "@deepseek-ai/dsh-host-webserver": "0.2.1-rc.5",
92
- "@deepseek-ai/dsh-session": "0.2.1-rc.5",
93
- "@deepseek-ai/dsh-session-persistence": "0.2.1-rc.5",
94
- "@deepseek-ai/dsh-token-meter": "0.2.1-rc.5",
79
+ "@deepseek-ai/cordis": "^4.1.0",
80
+ "@deepseek-ai/dsh-api-session-controller": ">=0.2.2-rc.1 <1.0.0-0",
81
+ "@deepseek-ai/dsh-client-locale": ">=0.2.2-rc.1 <1.0.0-0",
82
+ "@deepseek-ai/dsh-client-store": ">=0.2.2-rc.1 <1.0.0-0",
83
+ "@deepseek-ai/dsh-client-ui-conversation": ">=0.2.2-rc.1 <1.0.0-0",
84
+ "@deepseek-ai/dsh-client-ui-layout": ">=0.2.2-rc.1 <1.0.0-0",
85
+ "@deepseek-ai/dsh-client-ui-model-selection": ">=0.2.2-rc.1 <1.0.0-0",
86
+ "@deepseek-ai/dsh-client-ui-renderer": ">=0.2.2-rc.1 <1.0.0-0",
87
+ "@deepseek-ai/dsh-client-ui-session": ">=0.2.2-rc.1 <1.0.0-0",
88
+ "@deepseek-ai/dsh-client-ui-settings": ">=0.2.2-rc.1 <1.0.0-0",
89
+ "@deepseek-ai/dsh-client-ui-sidebar": ">=0.2.2-rc.1 <1.0.0-0",
90
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.2.2-rc.1 <1.0.0-0",
91
+ "@deepseek-ai/dsh-credentials": ">=0.2.2-rc.1 <1.0.0-0",
92
+ "@deepseek-ai/dsh-host-webserver": ">=0.2.2-rc.1 <1.0.0-0",
93
+ "@deepseek-ai/dsh-session": ">=0.2.2-rc.1 <1.0.0-0",
94
+ "@deepseek-ai/dsh-session-persistence": ">=0.2.2-rc.1 <1.0.0-0",
95
+ "@deepseek-ai/dsh-token-meter": ">=0.2.2-rc.1 <1.0.0-0",
95
96
  "react": "^18.2.0",
96
97
  "react-dom": "^18.2.0"
97
98
  },
98
99
  "dependencies": {
99
- "@deepseek-ai/schemastery": "^3.18.5"
100
+ "@deepseek-ai/schemastery": "^3.19.0"
100
101
  },
101
102
  "devDependencies": {
102
- "@deepseek-ai/cordis": "~4.0.5",
103
- "@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.5",
104
- "@deepseek-ai/dsh-client-locale": "0.2.1-rc.5",
105
- "@deepseek-ai/dsh-client-store": "0.2.1-rc.5",
106
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.5",
107
- "@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.5",
108
- "@deepseek-ai/dsh-client-ui-model-selection": "0.2.1-rc.5",
109
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.5",
110
- "@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.5",
111
- "@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.5",
112
- "@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.5",
113
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.5",
114
- "@deepseek-ai/dsh-credentials": "0.2.1-rc.5",
115
- "@deepseek-ai/dsh-host-webserver": "0.2.1-rc.5",
116
- "@deepseek-ai/dsh-session": "0.2.1-rc.5",
117
- "@deepseek-ai/dsh-session-persistence": "0.2.1-rc.5",
118
- "@deepseek-ai/dsh-token-meter": "0.2.1-rc.5",
103
+ "@deepseek-ai/cordis": "~4.1.0",
104
+ "@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.1",
105
+ "@deepseek-ai/dsh-client-locale": "0.2.2-rc.1",
106
+ "@deepseek-ai/dsh-client-store": "0.2.2-rc.1",
107
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.1",
108
+ "@deepseek-ai/dsh-client-ui-layout": "0.2.2-rc.1",
109
+ "@deepseek-ai/dsh-client-ui-model-selection": "0.2.2-rc.1",
110
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.1",
111
+ "@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.1",
112
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.1",
113
+ "@deepseek-ai/dsh-client-ui-sidebar": "0.2.2-rc.1",
114
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
115
+ "@deepseek-ai/dsh-credentials": "0.2.2-rc.1",
116
+ "@deepseek-ai/dsh-host-webserver": "0.2.2-rc.1",
117
+ "@deepseek-ai/dsh-session": "0.2.2-rc.1",
118
+ "@deepseek-ai/dsh-session-persistence": "0.2.2-rc.1",
119
+ "@deepseek-ai/dsh-token-meter": "0.2.2-rc.1",
119
120
  "@eslint/js": "^9.39.1",
120
121
  "@types/node": "^24.10.0",
121
122
  "@types/react": "^18.3.27",
122
123
  "@types/react-dom": "^18.3.7",
123
124
  "@types/react-test-renderer": "18.3.1",
125
+ "@types/semver": "^7.8.0",
124
126
  "eslint": "^9.39.1",
125
127
  "globals": "^16.5.0",
126
128
  "react": "^18.3.1",
127
129
  "react-dom": "18.3.1",
128
130
  "react-test-renderer": "18.3.1",
129
131
  "rimraf": "^6.1.2",
132
+ "semver": "^7.8.5",
130
133
  "tsdown": "^0.22.14",
131
134
  "typescript": "^5.9.3",
132
135
  "typescript-eslint": "^8.48.0",