@yakumoryo/minimax-plan-usage 0.2.9 → 0.3.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/README.md +17 -16
- package/marketplace.json +1 -1
- package/package.json +1 -1
- package/query.js +2 -2
package/README.md
CHANGED
|
@@ -4,41 +4,42 @@ Query MiniMax Coding Plan usage statistics via CLI.
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
### Claude Code Plugin (Recommended)
|
|
8
|
+
|
|
7
9
|
```bash
|
|
8
|
-
|
|
10
|
+
/plugin yakumo96/minimax-plan-usage
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
### npm Package (CLI only)
|
|
12
14
|
|
|
13
15
|
```bash
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
npm install -g @yakumoryo/minimax-plan-usage
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Setup
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
```bash
|
|
22
|
+
# 1. Configure API Key (required)
|
|
23
|
+
npx @yakumoryo/minimax-plan-usage setup <your-token>
|
|
19
24
|
|
|
20
|
-
# Configure
|
|
21
|
-
minimax-plan-usage setup-
|
|
25
|
+
# 2. Configure API URL (optional, for non-default endpoints)
|
|
26
|
+
npx @yakumoryo/minimax-plan-usage setup-url https://api.minimaxi.com/anthropic
|
|
22
27
|
|
|
23
|
-
#
|
|
24
|
-
minimax-plan-usage
|
|
28
|
+
# 3. Configure Model (optional, for custom model names)
|
|
29
|
+
npx @yakumoryo/minimax-plan-usage setup-model MiniMax-M2.7
|
|
25
30
|
```
|
|
26
31
|
|
|
27
|
-
|
|
32
|
+
## Query Usage
|
|
28
33
|
|
|
29
34
|
```bash
|
|
30
|
-
npx @yakumoryo/minimax-plan-usage setup <your-token>
|
|
31
|
-
npx @yakumoryo/minimax-plan-usage setup-url https://api.minimaxi.com/anthropic
|
|
32
35
|
npx @yakumoryo/minimax-plan-usage query
|
|
33
36
|
```
|
|
34
37
|
|
|
35
38
|
## Requirements
|
|
36
39
|
|
|
37
40
|
- Node.js >= 18
|
|
38
|
-
- `ANTHROPIC_AUTH_TOKEN` environment variable set
|
|
39
|
-
- `ANTHROPIC_BASE_URL` environment variable set
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
The CLI reads settings from `~/.claude/settings.json` and uses the same authentication that Claude Code uses.
|
|
42
43
|
|
|
43
44
|
## How it works
|
|
44
45
|
|
package/marketplace.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
|
|
3
3
|
"name": "minimax-plan-usage",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"description": "Query quota and usage statistics for MiniMax Coding Plan service",
|
|
6
6
|
"owner": { "name": "yakumo96" },
|
|
7
7
|
"plugins": [{
|
package/package.json
CHANGED
package/query.js
CHANGED
|
@@ -28,8 +28,8 @@ function saveSettings(settings) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
function setup(token, url) {
|
|
31
|
-
if (!token
|
|
32
|
-
console.error('Error:
|
|
31
|
+
if (!token) {
|
|
32
|
+
console.error('Error: Token required');
|
|
33
33
|
console.error('');
|
|
34
34
|
console.error('Usage: npx @yakumoryo/minimax-plan-usage setup <your-token> [api-url]');
|
|
35
35
|
console.error('');
|