minimax-status 1.1.8 → 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 CHANGED
@@ -3,11 +3,17 @@
3
3
  [![npm version](https://img.shields.io/npm/v/minimax-status.svg)](https://www.npmjs.com/package/minimax-status)
4
4
  [![npm downloads](https://img.shields.io/npm/dm/minimax-status.svg)](https://www.npmjs.com/package/minimax-status)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
- [![VSCode Extension Build](https://github.com/JochenYang/minimax-status/actions/workflows/build-vscode-extension.yml/badge.svg)](https://github.com/JochenYang/minimax-status/actions/workflows/build-vscode-extension.yml)
6
+ [![VSCode Extension](https://img.shields.io/badge/VSCode-MiniMax-blue?style=flat-square)](https://marketplace.visualstudio.com/items?itemName=JochenYang.minimax-status-vscode)
7
7
 
8
8
  MiniMax coding-plan 使用状态监控工具,支持 CLI 命令和 Claude Code 状态栏集成。
9
9
 
10
- ![MiniMax StatusBar](https://img.shields.io/badge/StatusBar-MiniMax-blue?style=flat-square)
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
 
@@ -37,17 +43,16 @@ npm update -g minimax-status
37
43
  ### 3. 配置认证
38
44
 
39
45
  ```bash
40
- minimax auth <token> <groupId>
46
+ minimax auth <token>
41
47
  ```
42
48
 
43
49
  配置信息将保存在 `~/.minimax-config.json` 文件中。
44
50
 
45
- 获取令牌和组 ID:
51
+ 获取令牌:
46
52
 
47
53
  1. 访问 [MiniMax 开放平台](https://platform.minimaxi.com/user-center/payment/coding-plan)
48
54
  2. 登录并进入控制台
49
- 3. 账户信息中复制 groupID
50
- 4. Coding Plan 中创建或获取 API Key
55
+ 3. Coding Plan 中创建或获取 API Key
51
56
 
52
57
  ### 4. 查看状态
53
58
 
@@ -68,7 +73,12 @@ minimax status --watch
68
73
 
69
74
  ### 安装方式
70
75
 
71
- **方式一:下载 VSIX 文件**
76
+ **方式一:从 VSCode 市场安装(推荐)**
77
+
78
+ 1. 在 VSCode 中搜索 "MiniMax Status"
79
+ 2. 点击安装
80
+
81
+ **方式二:下载 VSIX 文件**
72
82
 
73
83
  1. 访问 [GitHub Releases](https://github.com/JochenYang/minimax-status/releases)
74
84
  2. 下载最新的 `.vsix` 文件
@@ -90,11 +100,9 @@ npm run package
90
100
 
91
101
  1. 安装扩展后,点击状态栏的 "MiniMax 未配置" 按钮
92
102
  2. 或使用命令 "MiniMax Status: 配置向导"
93
- 3. 输入您的 API Key 和 GroupID
103
+ 3. 输入您的 API Key
94
104
  4. 配置完成后,状态栏将显示实时使用状态
95
105
 
96
- > **注意**: 扩展尚未发布到 VSCode 市场,需要手动安装
97
-
98
106
  ## Claude Code 集成
99
107
 
100
108
  将 MiniMax 使用状态显示在 Claude Code 底部状态栏。
@@ -105,7 +113,7 @@ npm run package
105
113
 
106
114
  ```bash
107
115
  npm install -g minimax-status
108
- minimax auth <token> <groupId>
116
+ minimax auth <token>
109
117
  ```
110
118
 
111
119
  2. **配置 Claude Code**:
@@ -190,7 +198,7 @@ my-app │ main * │ ...
190
198
 
191
199
  ```bash
192
200
  npm install -g minimax-status
193
- minimax auth <token> <groupId>
201
+ minimax auth <token>
194
202
  ```
195
203
 
196
204
  2. **配置 Droid**:
@@ -271,9 +279,9 @@ minimax-status │ main * │ Usage █░░░░░░░░ 10% (4047/4500)
271
279
 
272
280
  ## 命令说明
273
281
 
274
- | 命令 | 描述 | 示例 |
275
- | --------------------- | ------------------------------------------- | -------------------------------- |
276
- | `minimax auth` | 设置认证凭据 | `minimax auth <token> <groupId>` |
282
+ | 命令 | 描述 | 示例 |
283
+ | --------------------- | ------------------------------------------- | ----------------------------- |
284
+ | `minimax auth` | 设置认证凭据 | `minimax auth <token>` |
277
285
  | `minimax status` | 显示当前使用状态(支持 --compact、--watch) | `minimax status` |
278
286
  | `minimax bar` | 终端底部持续状态栏 | `minimax bar` |
279
287
  | `minimax statusline` | Claude Code 状态栏集成 | 用于 Claude Code 配置 |
@@ -322,8 +330,7 @@ minimax-status │ main * │ Usage █░░░░░░░░ 10% (4047/4500)
322
330
 
323
331
  ```json
324
332
  {
325
- "token": "your_access_token_here",
326
- "groupId": "your_group_id_here"
333
+ "token": "your_access_token_here"
327
334
  }
328
335
  ```
329
336
 
@@ -359,11 +366,11 @@ npm install -g minimax-status
359
366
  ### 认证失败
360
367
 
361
368
  ```bash
362
- # 检查令牌和组 ID
369
+ # 检查令牌
363
370
  minimax status
364
371
 
365
372
  # 重新设置认证
366
- minimax auth <new_token> <new_groupId>
373
+ minimax auth <new_token>
367
374
  ```
368
375
 
369
376
  ### 状态栏不显示
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 || !this.groupId) {
65
+ if (!this.token) {
66
66
  throw new Error(
67
- 'Missing credentials. Please run "minimax-status auth <token> <groupId>" first'
67
+ 'Missing credentials. Please run "minimax-status auth <token>" first'
68
68
  );
69
69
  }
70
70
 
@@ -82,7 +82,6 @@ class MinimaxAPI {
82
82
  const response = await axios.get(
83
83
  `https://www.minimaxi.com/v1/api/openplatform/coding_plan/remains`,
84
84
  {
85
- params: { GroupId: this.groupId },
86
85
  headers: {
87
86
  Authorization: `Bearer ${this.token}`,
88
87
  Accept: "application/json",
@@ -124,7 +123,6 @@ class MinimaxAPI {
124
123
  biz_line: 2,
125
124
  cycle_type: 1,
126
125
  resource_package_type: 7,
127
- GroupId: this.groupId,
128
126
  },
129
127
  headers: {
130
128
  Authorization: `Bearer ${this.token}`,
@@ -157,7 +155,6 @@ class MinimaxAPI {
157
155
  page: page,
158
156
  limit: limit,
159
157
  aggregate: false,
160
- GroupId: this.groupId,
161
158
  },
162
159
  headers: {
163
160
  Authorization: `Bearer ${this.token}`,
package/cli/index.js CHANGED
@@ -29,9 +29,9 @@ program
29
29
  .command("auth")
30
30
  .description("设置认证凭据")
31
31
  .argument("<token>", "MiniMax 访问令牌")
32
- .argument("<groupId>", "MiniMax 组 ID")
32
+ .argument("[groupId]", "MiniMax 组 ID(已废弃,可不填)")
33
33
  .action((token, groupId) => {
34
- api.setCredentials(token, groupId);
34
+ api.setCredentials(token, groupId || null);
35
35
  console.log(chalk.green("✓ 认证信息已保存"));
36
36
  });
37
37
 
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> <groupId>'));
48
+ console.log(chalk.yellow('请先运行: minimax-status auth <token>'));
49
49
  process.exit(1);
50
50
  }
51
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minimax-status",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "MiniMax Claude Code 使用状态监控工具",
5
5
  "bin": {
6
6
  "minimax-status": "cli/index.js",