@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 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
- npm install -g @yakumoryo/minimax-plan-usage
10
+ /plugin yakumo96/minimax-plan-usage
9
11
  ```
10
12
 
11
- ## Usage
13
+ ### npm Package (CLI only)
12
14
 
13
15
  ```bash
14
- # Configure API Key (required first time)
15
- minimax-plan-usage setup <your-token>
16
+ npm install -g @yakumoryo/minimax-plan-usage
17
+ ```
18
+
19
+ ## Setup
16
20
 
17
- # Configure API URL (optional, for non-default endpoints)
18
- minimax-plan-usage setup-url https://api.minimaxi.com/anthropic
21
+ ```bash
22
+ # 1. Configure API Key (required)
23
+ npx @yakumoryo/minimax-plan-usage setup <your-token>
19
24
 
20
- # Configure Model (optional, for custom model names)
21
- minimax-plan-usage setup-model MiniMax-M2.7
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
- # Query usage
24
- minimax-plan-usage query
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
- Or with npx:
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
- These are typically already configured in your Claude Code settings.
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.2.5",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yakumoryo/minimax-plan-usage",
3
- "version": "0.2.9",
3
+ "version": "0.3.1",
4
4
  "description": "MiniMax Coding Plan usage query CLI tool",
5
5
  "type": "module",
6
6
  "keywords": [
package/query.js CHANGED
@@ -28,8 +28,8 @@ function saveSettings(settings) {
28
28
  }
29
29
 
30
30
  function setup(token, url) {
31
- if (!token || !token.startsWith('sk-cp-')) {
32
- console.error('Error: Invalid token format. Token should start with "sk-cp-"');
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('');