@hunghoang3011/minimax-coding-helper 1.0.1 → 1.0.3

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
@@ -1,40 +1,56 @@
1
- # MiniMax Coding Helper
1
+ <div align="center">
2
2
 
3
- [![npm version](https://badge.fury.io/js/%40minimax_coding%2Fhelper.svg)](https://www.npmjs.com/package/@hunghoang3011/minimax-coding-helper)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3
+ <!-- Logo -->
4
+ <img src="https://raw.githubusercontent.com/hunghoang3011/minimax-coding-helper/main/assets/logo.png" alt="MiniMax Coding Helper" width="120" height="120">
5
5
 
6
- > A CLI helper for MiniMax Coding Plan Users to configure Claude Code with the MiniMax-M2.1 model.
6
+ <!-- Title -->
7
+ # 🤖 MiniMax Coding Helper
7
8
 
8
- ## Author
9
+ <!-- Badges -->
10
+ [![npm version](https://badge.fury.io/js/%40hunghoang3011%2Fminimax-coding-helper.svg)](https://www.npmjs.com/package/@hunghoang3011/minimax-coding-helper)
11
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
12
+ [![Node.js Version](https://img.shields.io/node/v/@hunghoang3011/minimax-coding-helper.svg)](https://nodejs.org)
13
+ [![Downloads](https://img.shields.io/npm/dm/@hunghoang3011/minimax-coding-helper.svg)](https://www.npmjs.com/package/@hunghoang3011/minimax-coding-helper)
9
14
 
10
- **[hunghoang3011](https://github.com/hunghoang3011)**
15
+ <!-- Description -->
16
+ **🚀 The ultimate CLI helper for MiniMax Coding Plan users to configure Claude Code with the powerful MiniMax-M2.1 model**
11
17
 
12
- GitHub: [@hunghoang3011](https://github.com/hunghoang3011)
18
+ [Features](#-features) [Quick Start](#-quick-start) • [Commands](#-commands) • [Configuration](#-configuration) • [FAQ](#-faq)
13
19
 
14
- ## Features
20
+ </div>
15
21
 
16
- - **Interactive wizard** - Friendly onboarding guidance on first launch
17
- - **MiniMax-M2.1 integration** - Use MiniMax's powerful coding model in Claude Code
18
- - **API key management** - Securely store and manage your MiniMax API key
19
- - **Region selection** - Support for both International and China regions
20
- - **Health check** - Verify your configuration with the `doctor` command
21
- - **Local storage** - All settings are stored securely on your machine
22
+ ---
22
23
 
23
- ## Prerequisites
24
+ ## ✨ Features
24
25
 
25
- - Node.js 18 or later
26
- - Claude Code CLI installed ([install from here](https://claude.ai/download))
27
- - MiniMax API key ([get one here](https://platform.minimax.io/))
26
+ - **🎯 Interactive Wizard** - User-friendly onboarding with step-by-step guidance
27
+ - **⚡ MiniMax-M2.1 Integration** - Harness the power of MiniMax's advanced coding model in Claude Code
28
+ - **🔐 Secure API Key Management** - Your API keys are stored locally and encrypted
29
+ - **🌍 Multi-Region Support** - Choose between International and China regions for optimal performance
30
+ - **🔍 Health Check System** - Built-in `doctor` command to diagnose and fix configuration issues
31
+ - **💾 Local Storage** - All settings stored securely on your machine - no cloud dependencies
32
+ - **🎨 Beautiful CLI Interface** - Modern, colorful terminal experience with emojis and rich formatting
33
+ - **🔄 Quick Config Menu** - Easy configuration refresh, unload, and API key changes
28
34
 
29
- ## Installation
35
+ ## 📋 Prerequisites
30
36
 
31
- ### Run directly with npx (Recommended)
37
+ Before you begin, ensure you have the following:
38
+
39
+ - **Node.js** 18 or later ([Download](https://nodejs.org/))
40
+ - **Claude Code CLI** installed ([Get it here](https://claude.ai/download))
41
+ - **MiniMax API Key** ([Get one free](https://platform.minimax.io/))
42
+
43
+ ## 🚀 Installation
44
+
45
+ ### Option 1: Run with npx (Recommended) 🌟
46
+
47
+ No installation required! Just run:
32
48
 
33
49
  ```bash
34
50
  npx @hunghoang3011/minimax-coding-helper
35
51
  ```
36
52
 
37
- ### Install globally
53
+ ### Option 2: Install Globally 📦
38
54
 
39
55
  ```bash
40
56
  npm install -g @hunghoang3011/minimax-coding-helper
@@ -44,29 +60,47 @@ Then run:
44
60
 
45
61
  ```bash
46
62
  minimax-helper
47
- # or
63
+ # or use the short alias
48
64
  mmhelper
49
65
  ```
50
66
 
51
- ## Quick Start
67
+ ## 🎯 Quick Start
68
+
69
+ Get up and running in under 2 minutes:
52
70
 
53
- 1. **Run the setup wizard:**
71
+ ### 1️⃣ Run the Setup Wizard
54
72
 
55
73
  ```bash
56
74
  mmhelper init
57
75
  ```
58
76
 
59
- 2. **Enter your MiniMax API key** when prompted
77
+ ### 2️⃣ Enter Your API Key
78
+
79
+ You'll be prompted for your MiniMax API key. Don't have one? [Get it here](https://platform.minimax.io/)
60
80
 
61
- 3. **Select your region** (International or China)
81
+ ### 3️⃣ Select Your Region
62
82
 
63
- 4. **Restart Claude Code** if it's running
83
+ Choose your region:
84
+ - **🌍 International** - For users outside China
85
+ - **🇨🇳 China** - For users in China
86
+
87
+ ### 4️⃣ Restart Claude Code
88
+
89
+ If Claude Code is running, restart it to apply the changes.
90
+
91
+ ### 5️⃣ Start Coding! 🎉
92
+
93
+ ```bash
94
+ claude
95
+ ```
64
96
 
65
- 5. **Start coding!** Run `claude` in your project directory
97
+ That's it! You're now using MiniMax-M2.1 in Claude Code.
66
98
 
67
- ## Commands
99
+ ---
68
100
 
69
- ### `mmhelper init`
101
+ ## 📚 Commands
102
+
103
+ ### 🎬 `mmhelper init`
70
104
 
71
105
  Run the interactive setup wizard.
72
106
 
@@ -74,7 +108,29 @@ Run the interactive setup wizard.
74
108
  mmhelper init
75
109
  ```
76
110
 
77
- ### `mmhelper auth`
111
+ **Perfect for:** First-time setup
112
+
113
+ ---
114
+
115
+ ### ⚙️ `mmhelper config`
116
+
117
+ **NEW!** Interactive configuration menu for quick management.
118
+
119
+ ```bash
120
+ mmhelper config
121
+ ```
122
+
123
+ **Options:**
124
+ - 🔄 **Configuration Refresh** - Reapply MiniMax settings to Claude Code
125
+ - 🗑️ **Unload Configuration** - Remove MiniMax from Claude Code (keeps API key)
126
+ - 🔑 **Change API Key** - Update your API key
127
+ - ❌ **Exit** - Close the menu
128
+
129
+ **Perfect for:** Quick configuration management
130
+
131
+ ---
132
+
133
+ ### 🔐 `mmhelper auth`
78
134
 
79
135
  Manage your MiniMax API authentication.
80
136
 
@@ -101,7 +157,11 @@ mmhelper auth revoke
101
157
  mmhelper auth path
102
158
  ```
103
159
 
104
- ### `mmhelper doctor`
160
+ **Perfect for:** Advanced configuration management
161
+
162
+ ---
163
+
164
+ ### 🏥 `mmhelper doctor`
105
165
 
106
166
  Run system health check to diagnose issues.
107
167
 
@@ -109,7 +169,11 @@ Run system health check to diagnose issues.
109
169
  mmhelper doctor
110
170
  ```
111
171
 
112
- ### `mmhelper --help`
172
+ **Perfect for:** Troubleshooting configuration problems
173
+
174
+ ---
175
+
176
+ ### ❓ `mmhelper --help`
113
177
 
114
178
  Show all available commands.
115
179
 
@@ -117,19 +181,22 @@ Show all available commands.
117
181
  mmhelper --help
118
182
  ```
119
183
 
120
- ## Configuration
184
+ ---
121
185
 
122
- The helper stores configuration in two locations:
186
+ ## ⚙️ Configuration
123
187
 
124
- 1. **MiniMax Helper Config**: `~/.minimax-helper/config.yaml`
125
- - Stores your API key and region settings
188
+ ### 📁 Storage Locations
126
189
 
127
- 2. **Claude Code Settings**: `~/.claude/settings.json`
128
- - Modified to use MiniMax API endpoints
190
+ The helper stores configuration in two locations:
129
191
 
130
- ### What gets configured in Claude Code?
192
+ | Location | Path | Purpose |
193
+ |----------|------|---------|
194
+ | **MiniMax Config** | `~/.minimax-helper/config.yaml` | API key and region settings |
195
+ | **Claude Code Settings** | `~/.claude/settings.json` | MiniMax API endpoints |
131
196
 
132
- When you apply the MiniMax configuration, the following environment variables are set in Claude Code's settings:
197
+ ### 🔧 Claude Code Environment Variables
198
+
199
+ When you apply MiniMax configuration, these environment variables are set:
133
200
 
134
201
  ```json
135
202
  {
@@ -147,62 +214,176 @@ When you apply the MiniMax configuration, the following environment variables ar
147
214
  }
148
215
  ```
149
216
 
150
- ## Region Configuration
217
+ ### 🌍 Region Configuration
218
+
219
+ Choose the region that matches your location:
220
+
221
+ | Region | Base URL | Best For | Latency |
222
+ |--------|----------|----------|---------|
223
+ | 🌍 **International** | `https://api.minimax.io/anthropic` | Users outside China | Lower outside China |
224
+ | 🇨🇳 **China** | `https://api.minimaxi.com/anthropic` | Users in China | Lower in China |
151
225
 
152
- Choose the appropriate region based on your location:
226
+ ---
153
227
 
154
- | Region | Base URL | Best For |
155
- |--------|----------|----------|
156
- | International | `https://api.minimax.io/anthropic` | Users outside China |
157
- | China | `https://api.minimaxi.com/anthropic` | Users in China |
228
+ ## ⚠️ Important Notes
158
229
 
159
- ## Important Notes
230
+ ### 🔴 Clear Anthropic Environment Variables
160
231
 
161
- ### Clear Anthropic Environment Variables
232
+ Before configuring MiniMax, ensure you **clear** these environment variables to avoid conflicts:
233
+
234
+ ```bash
235
+ unset ANTHROPIC_AUTH_TOKEN
236
+ unset ANTHROPIC_BASE_URL
237
+ ```
162
238
 
163
- Before configuring MiniMax, ensure you clear the following environment variables to avoid conflicts:
239
+ ### 💾 Automatic Backup
164
240
 
165
- - `ANTHROPIC_AUTH_TOKEN`
166
- - `ANTHROPIC_BASE_URL`
241
+ The helper **automatically backs up** your original Claude Code settings before applying MiniMax configuration.
167
242
 
168
- ### Backup
243
+ **Backup location:** `~/.minimax-helper/backups/`
169
244
 
170
- The helper automatically backs up your original Claude Code settings before applying MiniMax configuration. Backups are stored in `~/.minimax-helper/`.
245
+ ---
171
246
 
172
- ## Getting Your API Key
247
+ ## 🔑 Getting Your API Key
173
248
 
174
249
  1. Visit [https://platform.minimax.io/](https://platform.minimax.io/)
175
250
  2. Sign up or log in
176
- 3. Navigate to the API section
251
+ 3. Navigate to the **API** section
177
252
  4. Generate a new API key
178
253
  5. Copy the key and use it with this helper
179
254
 
180
- ## Troubleshooting
255
+ ---
256
+
257
+ ## 🔍 Troubleshooting
181
258
 
182
- ### Claude Code doesn't use MiniMax
259
+ ### Claude Code doesn't use MiniMax
183
260
 
184
- 1. Run `mmhelper doctor` to check your configuration
261
+ **Solution:**
262
+ 1. Run `mmhelper doctor` to check configuration
185
263
  2. Make sure you've run `mmhelper auth apply`
186
- 3. Restart Claude Code completely
264
+ 3. **Restart Claude Code completely**
187
265
  4. Check that `ANTHROPIC_BASE_URL` is not set in your shell environment
188
266
 
189
- ### API errors
267
+ ### API errors occur
268
+
269
+ **Solution:**
270
+ 1. Verify your API key: `mmhelper auth show`
271
+ 2. Check you selected the correct region
272
+ 3. Ensure you have API quota on [MiniMax Platform](https://platform.minimax.io/)
273
+
274
+ ### ❓ Claude Code not found
275
+
276
+ **Solution:**
277
+
278
+ Install Claude Code from the official website: [https://claude.ai/download](https://claude.ai/download)
279
+
280
+ ### ❓ Permission denied errors
281
+
282
+ **Solution:**
283
+
284
+ ```bash
285
+ # Fix Claude Code settings permissions
286
+ chmod 644 ~/.claude/settings.json
287
+ ```
288
+
289
+ ---
290
+
291
+ ## 📖 Usage Examples
292
+
293
+ ### Basic Setup
294
+
295
+ ```bash
296
+ # Interactive setup
297
+ mmhelper init
298
+
299
+ # Or use the new config menu
300
+ mmhelper config
301
+ ```
302
+
303
+ ### Change API Key
304
+
305
+ ```bash
306
+ # Option 1: Use the config menu (recommended)
307
+ mmhelper config
308
+
309
+ # Option 2: Use auth command
310
+ mmhelper auth set
311
+ ```
312
+
313
+ ### Refresh Configuration
314
+
315
+ ```bash
316
+ # Option 1: Use the config menu (recommended)
317
+ mmhelper config
318
+ # Select "Configuration Refresh"
319
+
320
+ # Option 2: Use auth command
321
+ mmhelper auth apply
322
+ ```
323
+
324
+ ### Remove MiniMax (Temporary)
325
+
326
+ ```bash
327
+ mmhelper config
328
+ # Select "Unload Configuration"
329
+ # Choose to keep API key for future use
330
+ ```
331
+
332
+ ### Remove MiniMax (Permanent)
333
+
334
+ ```bash
335
+ mmhelper auth revoke
336
+ ```
337
+
338
+ ---
339
+
340
+ ## 📚 Resources
341
+
342
+ - [MiniMax Platform](https://platform.minimax.io/) - Get your API key
343
+ - [MiniMax Documentation](https://platform.minimax.io/docs) - Official docs
344
+ - [Claude Code](https://claude.ai/download) - Download Claude Code
345
+ - [GitHub Repository](https://github.com/hunghoang3011/minimax-coding-helper) - Source code
346
+ - [Report Issues](https://github.com/hunghoang3011/minimax-coding-helper/issues) - Bug reports
347
+
348
+ ---
349
+
350
+ ## 🤝 Contributing
351
+
352
+ Contributions, issues, and feature requests are welcome!
353
+
354
+ 1. Fork the repository
355
+ 2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
356
+ 3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
357
+ 4. Push to the branch (`git push origin feature/AmazingFeature`)
358
+ 5. Open a Pull Request
359
+
360
+ ---
361
+
362
+ ## 👨‍💻 Author
363
+
364
+ **hunghoang3011**
365
+
366
+ - GitHub: [@hunghoang3011](https://github.com/hunghoang3011)
367
+ - Email: [Contact me](https://github.com/hunghoang3011)
368
+
369
+ ---
370
+
371
+ ## 📄 License
372
+
373
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
374
+
375
+ ---
190
376
 
191
- 1. Verify your API key is correct: `mmhelper auth show`
192
- 2. Check that you selected the correct region
193
- 3. Ensure you have API quota available on the MiniMax platform
377
+ ## Show Your Support
194
378
 
195
- ### Claude Code not found
379
+ If you find this project helpful, please consider giving it a ⭐ on [GitHub](https://github.com/hunghoang3011/minimax-coding-helper)!
196
380
 
197
- Install Claude Code from the official website: https://claude.ai/download
381
+ ---
198
382
 
199
- ## Links
383
+ <div align="center">
200
384
 
201
- - [MiniMax Platform](https://platform.minimax.io/)
202
- - [MiniMax Documentation](https://platform.minimax.io/docs)
203
- - [Claude Code](https://claude.ai/download)
204
- - [GitHub Repository](https://github.com/hunghoang3011/minimax-coding-helper)
385
+ **Made with ❤️ by [hunghoang3011](https://github.com/hunghoang3011)**
205
386
 
206
- ## License
387
+ [⬆ Back to Top](#-mini-max-coding-helper)
207
388
 
208
- MIT &copy; [hunghoang3011](https://github.com/hunghoang3011)
389
+ </div>
package/bin/cli.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require('../dist/cli.js');
package/dist/cli.js CHANGED
@@ -9,6 +9,7 @@ const chalk_1 = __importDefault(require("chalk"));
9
9
  const init_js_1 = require("./commands/init.js");
10
10
  const auth_js_1 = require("./commands/auth.js");
11
11
  const doctor_js_1 = require("./commands/doctor.js");
12
+ const config_js_1 = require("./commands/config.js");
12
13
  const program = new commander_1.Command();
13
14
  program
14
15
  .name('minimax-helper')
@@ -106,6 +107,19 @@ program
106
107
  process.exit(1);
107
108
  }
108
109
  });
110
+ // Config command - interactive menu
111
+ program
112
+ .command('config')
113
+ .description('Interactive configuration menu')
114
+ .action(async () => {
115
+ try {
116
+ await (0, config_js_1.configMenu)();
117
+ }
118
+ catch (error) {
119
+ console.error(chalk_1.default.red('Error:'), error);
120
+ process.exit(1);
121
+ }
122
+ });
109
123
  // Default to init if no command provided
110
124
  program.action(async () => {
111
125
  await (0, init_js_1.runInitWizard)();
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;AAEA,yCAAoC;AACpC,kDAA0B;AAC1B,gDAAmD;AACnD,gDAM4B;AAC5B,oDAAiD;AAEjD,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,gBAAgB,CAAC;KACtB,WAAW,CAAC,qEAAqE,CAAC;KAClF,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,eAAe;AACf,OAAO;KACJ,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,kCAAkC,CAAC;KAC/C,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,IAAI,CAAC;QACH,MAAM,IAAA,uBAAa,GAAE,CAAC;IACxB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,CAAC;QAC1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C,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,oCAAoC;AACpC,OAAO;KACJ,OAAO,CAAC,QAAQ,CAAC;KACjB,WAAW,CAAC,gCAAgC,CAAC;KAC7C,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,IAAI,CAAC;QACH,MAAM,IAAA,sBAAU,GAAE,CAAC;IACrB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,CAAC;QAC1C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,yCAAyC;AACzC,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;IACxB,MAAM,IAAA,uBAAa,GAAE,CAAC;AACxB,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,KAAK,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function configMenu(): Promise<void>;
2
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAMA,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAmFhD"}
@@ -0,0 +1,238 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.configMenu = configMenu;
40
+ const inquirer_1 = __importDefault(require("inquirer"));
41
+ const chalk_1 = __importDefault(require("chalk"));
42
+ const auth_js_1 = require("./auth.js");
43
+ const config_js_1 = require("../utils/config.js");
44
+ const logger_js_1 = require("../utils/logger.js");
45
+ async function configMenu() {
46
+ console.clear();
47
+ // Beautiful header
48
+ logger_js_1.logger.blank();
49
+ console.log(chalk_1.default.cyan.bold('╔════════════════════════════════════════════════════════════╗'));
50
+ console.log(chalk_1.default.cyan.bold('║') + chalk_1.default.white.bold(' 🤖 MiniMax Configuration Manager ') + chalk_1.default.cyan.bold('║'));
51
+ console.log(chalk_1.default.cyan.bold('║') + chalk_1.default.white(' Manage your MiniMax integration ') + chalk_1.default.cyan.bold('║'));
52
+ console.log(chalk_1.default.cyan.bold('╚════════════════════════════════════════════════════════════╝'));
53
+ logger_js_1.logger.blank();
54
+ // Check if there's an existing configuration
55
+ const config = await (0, config_js_1.loadConfig)();
56
+ if (!config || !config.api_key) {
57
+ console.log(chalk_1.default.yellow('⚠️ No MiniMax configuration found.'));
58
+ logger_js_1.logger.blank();
59
+ console.log(chalk_1.default.gray(' Please run ') + chalk_1.default.cyan.bold('mmhelper init') + chalk_1.default.gray(' to set up MiniMax.'));
60
+ logger_js_1.logger.blank();
61
+ return;
62
+ }
63
+ // Show current status with beautiful card
64
+ logger_js_1.logger.blank();
65
+ console.log(chalk_1.default.bold.cyan('┌─────────────────────────────────────────────────────────┐'));
66
+ console.log(chalk_1.default.bold.cyan('│') + chalk_1.default.white.bold(' 📋 Current Configuration ') + chalk_1.default.bold.cyan('│'));
67
+ console.log(chalk_1.default.bold.cyan('├─────────────────────────────────────────────────────────┤'));
68
+ console.log(chalk_1.default.bold.cyan('│') + chalk_1.default.white(' API Key: ') + chalk_1.default.green(config.api_key.slice(0, 8) + '****') + ' '.repeat(0) + chalk_1.default.bold.cyan('│'));
69
+ console.log(chalk_1.default.bold.cyan('│') + chalk_1.default.white(' Region: ') + chalk_1.default.cyan(config.region === 'international' ? '🌍 International' : '🇨🇳 China') + ' '.repeat(0) + chalk_1.default.bold.cyan('│'));
70
+ console.log(chalk_1.default.bold.cyan('│') + chalk_1.default.white(' Model: ') + chalk_1.default.yellow.bold('MiniMax-M2.1') + ' '.repeat(0) + chalk_1.default.bold.cyan('│'));
71
+ console.log(chalk_1.default.bold.cyan('│') + chalk_1.default.white(' Base URL: ') + chalk_1.default.gray(config.base_url) + ' '.repeat(0) + chalk_1.default.bold.cyan('│'));
72
+ console.log(chalk_1.default.bold.cyan('└─────────────────────────────────────────────────────────┘'));
73
+ logger_js_1.logger.blank();
74
+ logger_js_1.logger.blank();
75
+ // Show menu
76
+ const { action } = await inquirer_1.default.prompt([
77
+ {
78
+ type: 'list',
79
+ name: 'action',
80
+ message: chalk_1.default.bold.cyan('What would you like to do?'),
81
+ choices: [
82
+ {
83
+ name: chalk_1.default.green('🔄') + ' Configuration Refresh - ' + chalk_1.default.white('Update Claude Code\'s MiniMax configuration'),
84
+ value: 'refresh',
85
+ short: 'Configuration Refresh'
86
+ },
87
+ {
88
+ name: chalk_1.default.red('🗑️ ') + ' Unload Configuration - ' + chalk_1.default.white('Remove MiniMax from Claude Code'),
89
+ value: 'unload',
90
+ short: 'Unload Configuration'
91
+ },
92
+ {
93
+ name: chalk_1.default.yellow('🔑') + ' Change API Key - ' + chalk_1.default.white('Update your MiniMax API key'),
94
+ value: 'change-key',
95
+ short: 'Change API Key'
96
+ },
97
+ new inquirer_1.default.Separator(),
98
+ {
99
+ name: chalk_1.default.gray('❌ Exit'),
100
+ value: 'exit',
101
+ short: 'Exit'
102
+ }
103
+ ]
104
+ }
105
+ ]);
106
+ logger_js_1.logger.blank();
107
+ switch (action) {
108
+ case 'refresh':
109
+ await handleRefresh();
110
+ break;
111
+ case 'unload':
112
+ await handleUnload();
113
+ break;
114
+ case 'change-key':
115
+ await handleChangeKey();
116
+ break;
117
+ case 'exit':
118
+ console.log(chalk_1.default.gray('👋 Goodbye!'));
119
+ break;
120
+ }
121
+ }
122
+ async function handleRefresh() {
123
+ logger_js_1.logger.blank();
124
+ console.log(chalk_1.default.bold.cyan('┌─────────────────────────────────────────────────────────┐'));
125
+ console.log(chalk_1.default.bold.cyan('│') + chalk_1.default.white.bold(' 🔄 Configuration Refresh ') + chalk_1.default.bold.cyan('│'));
126
+ console.log(chalk_1.default.bold.cyan('└─────────────────────────────────────────────────────────┘'));
127
+ logger_js_1.logger.blank();
128
+ console.log(chalk_1.default.white(' This will reapply your MiniMax configuration to Claude Code.'));
129
+ logger_js_1.logger.blank();
130
+ console.log(chalk_1.default.gray(' ✅ Keeps your current API key'));
131
+ console.log(chalk_1.default.gray(' ✅ Updates Claude Code settings'));
132
+ console.log(chalk_1.default.gray(' ✅ Restarts MiniMax integration'));
133
+ logger_js_1.logger.blank();
134
+ const { confirm } = await inquirer_1.default.prompt([
135
+ {
136
+ type: 'confirm',
137
+ name: 'confirm',
138
+ message: chalk_1.default.bold.cyan('Continue?'),
139
+ default: true
140
+ }
141
+ ]);
142
+ if (!confirm) {
143
+ console.log(chalk_1.default.yellow(' ⚠️ Operation cancelled.'));
144
+ return;
145
+ }
146
+ try {
147
+ await (0, auth_js_1.authApply)();
148
+ }
149
+ catch (error) {
150
+ console.log(chalk_1.default.red(' ❌ Failed to refresh configuration.'));
151
+ if (error instanceof Error) {
152
+ console.log(chalk_1.default.red(' ' + error.message));
153
+ }
154
+ }
155
+ }
156
+ async function handleUnload() {
157
+ logger_js_1.logger.blank();
158
+ console.log(chalk_1.default.bold.cyan('┌─────────────────────────────────────────────────────────┐'));
159
+ console.log(chalk_1.default.bold.cyan('│') + chalk_1.default.white.bold(' 🗑️ Unload Configuration ') + chalk_1.default.bold.cyan('│'));
160
+ console.log(chalk_1.default.bold.cyan('└─────────────────────────────────────────────────────────┘'));
161
+ logger_js_1.logger.blank();
162
+ console.log(chalk_1.default.yellow(' ⚠️ This will remove MiniMax configuration from Claude Code.'));
163
+ console.log(chalk_1.default.white(' Your saved API key will be kept for future use.'));
164
+ logger_js_1.logger.blank();
165
+ const { confirm } = await inquirer_1.default.prompt([
166
+ {
167
+ type: 'confirm',
168
+ name: 'confirm',
169
+ message: chalk_1.default.bold.yellow('Continue?'),
170
+ default: false
171
+ }
172
+ ]);
173
+ if (!confirm) {
174
+ console.log(chalk_1.default.yellow(' ⚠️ Operation cancelled.'));
175
+ return;
176
+ }
177
+ try {
178
+ const { removeKey } = await inquirer_1.default.prompt([
179
+ {
180
+ type: 'confirm',
181
+ name: 'removeKey',
182
+ message: chalk_1.default.bold.yellow('Also remove your saved API key?'),
183
+ default: false
184
+ }
185
+ ]);
186
+ if (removeKey) {
187
+ await (0, auth_js_1.authRevoke)();
188
+ }
189
+ else {
190
+ // Only remove from Claude settings, keep saved config
191
+ const { loadClaudeSettings, saveClaudeSettings } = await Promise.resolve().then(() => __importStar(require('../utils/config.js')));
192
+ const claudeSettings = await loadClaudeSettings();
193
+ if (claudeSettings?.env) {
194
+ delete claudeSettings.env.ANTHROPIC_BASE_URL;
195
+ delete claudeSettings.env.ANTHROPIC_AUTH_TOKEN;
196
+ delete claudeSettings.env.API_TIMEOUT_MS;
197
+ delete claudeSettings.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC;
198
+ delete claudeSettings.env.ANTHROPIC_MODEL;
199
+ delete claudeSettings.env.ANTHROPIC_SMALL_FAST_MODEL;
200
+ delete claudeSettings.env.ANTHROPIC_DEFAULT_SONNET_MODEL;
201
+ delete claudeSettings.env.ANTHROPIC_DEFAULT_OPUS_MODEL;
202
+ delete claudeSettings.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;
203
+ await saveClaudeSettings(claudeSettings);
204
+ logger_js_1.logger.blank();
205
+ console.log(chalk_1.default.green(' ✅ MiniMax configuration removed from Claude Code.'));
206
+ console.log(chalk_1.default.gray(' Your API key is saved. Run ') + chalk_1.default.cyan('mmhelper config') + chalk_1.default.gray(' to reapply.'));
207
+ }
208
+ else {
209
+ console.log(chalk_1.default.yellow(' ⚠️ No Claude Code configuration found.'));
210
+ }
211
+ }
212
+ }
213
+ catch (error) {
214
+ console.log(chalk_1.default.red(' ❌ Failed to unload configuration.'));
215
+ if (error instanceof Error) {
216
+ console.log(chalk_1.default.red(' ' + error.message));
217
+ }
218
+ }
219
+ }
220
+ async function handleChangeKey() {
221
+ logger_js_1.logger.blank();
222
+ console.log(chalk_1.default.bold.cyan('┌─────────────────────────────────────────────────────────┐'));
223
+ console.log(chalk_1.default.bold.cyan('│') + chalk_1.default.white.bold(' 🔑 Change API Key ') + chalk_1.default.bold.cyan('│'));
224
+ console.log(chalk_1.default.bold.cyan('└─────────────────────────────────────────────────────────┘'));
225
+ logger_js_1.logger.blank();
226
+ console.log(chalk_1.default.white(' This will update your MiniMax API key.'));
227
+ logger_js_1.logger.blank();
228
+ try {
229
+ await (0, auth_js_1.authSet)();
230
+ }
231
+ catch (error) {
232
+ console.log(chalk_1.default.red(' ❌ Failed to change API key.'));
233
+ if (error instanceof Error) {
234
+ console.log(chalk_1.default.red(' ' + error.message));
235
+ }
236
+ }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,CAAC,CAAC,CAAC;QACxD,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;YAC3B,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@hunghoang3011/minimax-coding-helper",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "A CLI helper for MiniMax Coding Plan Users to configure Claude Code with MiniMax-M2.1 model",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
- "minimax-helper": "dist/cli.js",
8
- "mmhelper": "dist/cli.js"
7
+ "minimax-helper": "bin/cli.js",
8
+ "mmhelper": "bin/cli.js"
9
9
  },
10
10
  "scripts": {
11
11
  "build": "tsc",
@@ -50,6 +50,7 @@
50
50
  },
51
51
  "files": [
52
52
  "dist",
53
+ "bin",
53
54
  "README.md"
54
55
  ]
55
56
  }