@yakumoryo/minimax-plan-usage 0.3.0 → 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
@@ -2,30 +2,37 @@
2
2
 
3
3
  Query MiniMax Coding Plan usage statistics via CLI.
4
4
 
5
- ## Quick Start
5
+ ## Installation
6
+
7
+ ### Claude Code Plugin (Recommended)
6
8
 
7
9
  ```bash
8
- # Configure API Key (required first time)
9
- npx @yakumoryo/minimax-plan-usage setup <your-token>
10
+ /plugin yakumo96/minimax-plan-usage
11
+ ```
10
12
 
11
- # Query usage
12
- npx @yakumoryo/minimax-plan-usage query
13
+ ### npm Package (CLI only)
14
+
15
+ ```bash
16
+ npm install -g @yakumoryo/minimax-plan-usage
13
17
  ```
14
18
 
15
- ## Optional Setup
19
+ ## Setup
16
20
 
17
21
  ```bash
18
- # Configure API URL (for non-default endpoints)
22
+ # 1. Configure API Key (required)
23
+ npx @yakumoryo/minimax-plan-usage setup <your-token>
24
+
25
+ # 2. Configure API URL (optional, for non-default endpoints)
19
26
  npx @yakumoryo/minimax-plan-usage setup-url https://api.minimaxi.com/anthropic
20
27
 
21
- # Configure Model (for custom model names)
28
+ # 3. Configure Model (optional, for custom model names)
22
29
  npx @yakumoryo/minimax-plan-usage setup-model MiniMax-M2.7
23
30
  ```
24
31
 
25
- ## Installation
32
+ ## Query Usage
26
33
 
27
34
  ```bash
28
- npm install -g @yakumoryo/minimax-plan-usage
35
+ npx @yakumoryo/minimax-plan-usage query
29
36
  ```
30
37
 
31
38
  ## Requirements
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.3.0",
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('');