minimax-status 1.1.9 → 1.1.10
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/README.md +14 -5
- package/cli/api.js +2 -2
- package/cli/statusbar.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,11 +3,17 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/minimax-status)
|
|
4
4
|
[](https://www.npmjs.com/package/minimax-status)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
-
[](https://marketplace.visualstudio.com/items?itemName=JochenYang.minimax-status-vscode)
|
|
7
7
|
|
|
8
8
|
MiniMax coding-plan 使用状态监控工具,支持 CLI 命令和 Claude Code 状态栏集成。
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## 版本
|
|
11
|
+
|
|
12
|
+
| 插件 | 版本 | 安装方式 |
|
|
13
|
+
|------|------|----------|
|
|
14
|
+
| **CLI** | 1.1.9 | `npm install -g minimax-status` |
|
|
15
|
+
| **VSCode** | 1.2.6 | [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=JochenYang.minimax-status-vscode) 或 [下载 VSIX](https://github.com/JochenYang/minimax-status/releases) |
|
|
16
|
+
| **OpenClaw** | - | 参考 `openclaw/minimax-usage/` 目录 |
|
|
11
17
|
|
|
12
18
|
## 特性
|
|
13
19
|
|
|
@@ -67,7 +73,12 @@ minimax status --watch
|
|
|
67
73
|
|
|
68
74
|
### 安装方式
|
|
69
75
|
|
|
70
|
-
|
|
76
|
+
**方式一:从 VSCode 市场安装(推荐)**
|
|
77
|
+
|
|
78
|
+
1. 在 VSCode 中搜索 "MiniMax Status"
|
|
79
|
+
2. 点击安装
|
|
80
|
+
|
|
81
|
+
**方式二:下载 VSIX 文件**
|
|
71
82
|
|
|
72
83
|
1. 访问 [GitHub Releases](https://github.com/JochenYang/minimax-status/releases)
|
|
73
84
|
2. 下载最新的 `.vsix` 文件
|
|
@@ -92,8 +103,6 @@ npm run package
|
|
|
92
103
|
3. 输入您的 API Key
|
|
93
104
|
4. 配置完成后,状态栏将显示实时使用状态
|
|
94
105
|
|
|
95
|
-
> **注意**: 扩展尚未发布到 VSCode 市场,需要手动安装
|
|
96
|
-
|
|
97
106
|
## Claude Code 集成
|
|
98
107
|
|
|
99
108
|
将 MiniMax 使用状态显示在 Claude Code 底部状态栏。
|
package/cli/api.js
CHANGED
|
@@ -62,9 +62,9 @@ class MinimaxAPI {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
async getUsageStatus(forceRefresh = false) {
|
|
65
|
-
if (!this.token
|
|
65
|
+
if (!this.token) {
|
|
66
66
|
throw new Error(
|
|
67
|
-
'Missing credentials. Please run "minimax-status auth <token>
|
|
67
|
+
'Missing credentials. Please run "minimax-status auth <token>" first'
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
70
|
|
package/cli/statusbar.js
CHANGED
|
@@ -45,7 +45,7 @@ class TerminalStatusBar {
|
|
|
45
45
|
|
|
46
46
|
if (!require('fs').existsSync(configPath)) {
|
|
47
47
|
console.log(chalk.red('错误:未找到配置文件'));
|
|
48
|
-
console.log(chalk.yellow('请先运行: minimax-status auth <token>
|
|
48
|
+
console.log(chalk.yellow('请先运行: minimax-status auth <token>'));
|
|
49
49
|
process.exit(1);
|
|
50
50
|
}
|
|
51
51
|
|