dsh-model-allowance 0.0.0-stage → 1.0.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MeiK2333
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,54 @@
1
- # Temporary Holding Version
1
+ # dsh-model-allowance
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [中文](README.zh.md)
4
+
5
+ Shows the balance or remaining allowance of the provider behind the current
6
+ conversation model.
7
+
8
+ ## Supported
9
+
10
+ - DeepSeek
11
+ - MiniMax Coding Plan
12
+ - Zhipu Coding Plan
13
+ - Kimi for Coding
14
+ - OpenCode Go
15
+
16
+ ### Not supported
17
+
18
+ - Qwen Token Plan: the vendor publishes no balance API
19
+
20
+ ## Installation
21
+
22
+ ### Install from npm (recommended)
23
+
24
+ 1. Open the **Plugins** page in the DSH sidebar.
25
+ 2. Choose **Install** and enter:
26
+
27
+ ```
28
+ dsh-model-allowance@1.0.0
29
+ ```
30
+
31
+ Use the latest published version instead of `1.0.0` when a newer one
32
+ exists.
33
+ 3. Confirm the installation. If DSH reports **restart required**, restart
34
+ DSH; otherwise refresh the page.
35
+
36
+ The npm installation is eligible for the Plugin Manager's **Update** action.
37
+
38
+ ### Install from GitHub
39
+
40
+ ```
41
+ git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.0.0
42
+ ```
43
+
44
+ Git installations are not covered by the Plugin Manager's **Update** action;
45
+ updating means removing the old version first, then installing the new tag.
46
+
47
+ ## Compatibility
48
+
49
+ DeepSeek Harness `>=0.2.1-rc.5 <0.3.0`.
50
+
51
+ ## License
52
+
53
+ [MIT](LICENSE). Provider icons are trademarks of their respective owners,
54
+ used only to identify them.
package/README.zh.md ADDED
@@ -0,0 +1,50 @@
1
+ # dsh-model-allowance
2
+
3
+ [English](README.md)
4
+
5
+ 显示当前会话所用模型对应厂商的余额或剩余额度。
6
+
7
+ ## 支持
8
+
9
+ - DeepSeek
10
+ - MiniMax Coding Plan
11
+ - 智谱 Coding Plan
12
+ - Kimi for Coding
13
+ - OpenCode Go
14
+
15
+ ### 不支持
16
+
17
+ - 千问 Token Plan:官方未提供余额接口
18
+
19
+ ## 安装
20
+
21
+ ### 从 npm 安装(推荐)
22
+
23
+ 1. 打开 DSH 侧边栏的 **Plugins(插件)** 页面。
24
+ 2. 点击 **Install(安装)**,填入:
25
+
26
+ ```
27
+ dsh-model-allowance@1.0.0
28
+ ```
29
+
30
+ 如果已有更新版本,请把 `1.0.0` 换成最新的精确版本。
31
+ 3. 确认安装。如果 DSH 提示需要重启,重启 DSH;否则刷新页面即可。
32
+
33
+ 通过 npm 安装的版本可以在 Plugin Manager 中使用 **Update** 更新。
34
+
35
+ ### 从 GitHub 安装
36
+
37
+ ```
38
+ git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.0.0
39
+ ```
40
+
41
+ Git 安装不受 Plugin Manager 的 **Update** 管理;更新时需要先移除旧版本,
42
+ 再安装新的 tag。
43
+
44
+ ## 兼容性
45
+
46
+ DeepSeek Harness `>=0.2.1-rc.5 <0.3.0`。
47
+
48
+ ## 许可
49
+
50
+ [MIT](LICENSE)。各厂商图标为其所有者的商标,仅用于标识对应厂商。