minimax-status 1.1.8 → 1.1.9
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 +12 -14
- package/cli/api.js +0 -3
- package/cli/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,17 +37,16 @@ npm update -g minimax-status
|
|
|
37
37
|
### 3. 配置认证
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
minimax auth <token>
|
|
40
|
+
minimax auth <token>
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
配置信息将保存在 `~/.minimax-config.json` 文件中。
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
获取令牌:
|
|
46
46
|
|
|
47
47
|
1. 访问 [MiniMax 开放平台](https://platform.minimaxi.com/user-center/payment/coding-plan)
|
|
48
48
|
2. 登录并进入控制台
|
|
49
|
-
3.
|
|
50
|
-
4. Coding Plan 中创建或获取 API Key
|
|
49
|
+
3. Coding Plan 中创建或获取 API Key
|
|
51
50
|
|
|
52
51
|
### 4. 查看状态
|
|
53
52
|
|
|
@@ -90,7 +89,7 @@ npm run package
|
|
|
90
89
|
|
|
91
90
|
1. 安装扩展后,点击状态栏的 "MiniMax 未配置" 按钮
|
|
92
91
|
2. 或使用命令 "MiniMax Status: 配置向导"
|
|
93
|
-
3. 输入您的 API Key
|
|
92
|
+
3. 输入您的 API Key
|
|
94
93
|
4. 配置完成后,状态栏将显示实时使用状态
|
|
95
94
|
|
|
96
95
|
> **注意**: 扩展尚未发布到 VSCode 市场,需要手动安装
|
|
@@ -105,7 +104,7 @@ npm run package
|
|
|
105
104
|
|
|
106
105
|
```bash
|
|
107
106
|
npm install -g minimax-status
|
|
108
|
-
minimax auth <token>
|
|
107
|
+
minimax auth <token>
|
|
109
108
|
```
|
|
110
109
|
|
|
111
110
|
2. **配置 Claude Code**:
|
|
@@ -190,7 +189,7 @@ my-app │ main * │ ...
|
|
|
190
189
|
|
|
191
190
|
```bash
|
|
192
191
|
npm install -g minimax-status
|
|
193
|
-
minimax auth <token>
|
|
192
|
+
minimax auth <token>
|
|
194
193
|
```
|
|
195
194
|
|
|
196
195
|
2. **配置 Droid**:
|
|
@@ -271,9 +270,9 @@ minimax-status │ main * │ Usage █░░░░░░░░ 10% (4047/4500)
|
|
|
271
270
|
|
|
272
271
|
## 命令说明
|
|
273
272
|
|
|
274
|
-
| 命令 | 描述 | 示例
|
|
275
|
-
| --------------------- | ------------------------------------------- |
|
|
276
|
-
| `minimax auth` | 设置认证凭据
|
|
273
|
+
| 命令 | 描述 | 示例 |
|
|
274
|
+
| --------------------- | ------------------------------------------- | ----------------------------- |
|
|
275
|
+
| `minimax auth` | 设置认证凭据 | `minimax auth <token>` |
|
|
277
276
|
| `minimax status` | 显示当前使用状态(支持 --compact、--watch) | `minimax status` |
|
|
278
277
|
| `minimax bar` | 终端底部持续状态栏 | `minimax bar` |
|
|
279
278
|
| `minimax statusline` | Claude Code 状态栏集成 | 用于 Claude Code 配置 |
|
|
@@ -322,8 +321,7 @@ minimax-status │ main * │ Usage █░░░░░░░░ 10% (4047/4500)
|
|
|
322
321
|
|
|
323
322
|
```json
|
|
324
323
|
{
|
|
325
|
-
"token": "your_access_token_here"
|
|
326
|
-
"groupId": "your_group_id_here"
|
|
324
|
+
"token": "your_access_token_here"
|
|
327
325
|
}
|
|
328
326
|
```
|
|
329
327
|
|
|
@@ -359,11 +357,11 @@ npm install -g minimax-status
|
|
|
359
357
|
### 认证失败
|
|
360
358
|
|
|
361
359
|
```bash
|
|
362
|
-
#
|
|
360
|
+
# 检查令牌
|
|
363
361
|
minimax status
|
|
364
362
|
|
|
365
363
|
# 重新设置认证
|
|
366
|
-
minimax auth <new_token>
|
|
364
|
+
minimax auth <new_token>
|
|
367
365
|
```
|
|
368
366
|
|
|
369
367
|
### 状态栏不显示
|
package/cli/api.js
CHANGED
|
@@ -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("
|
|
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
|
|