claude-manager 1.5.4 → 1.5.5
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 +9 -7
- package/dist/cli.js +12 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -144,13 +144,15 @@ Profiles are stored in `~/.claude/profiles/*.json`
|
|
|
144
144
|
|
|
145
145
|
Pre-configured in `cm new`:
|
|
146
146
|
|
|
147
|
-
| Provider | Base URL |
|
|
148
|
-
|
|
149
|
-
| Anthropic (Direct) | Default |
|
|
150
|
-
| Amazon Bedrock | Default |
|
|
151
|
-
| Z.AI | `https://api.z.ai/api/anthropic` |
|
|
152
|
-
| MiniMax | `https://api.minimax.io/anthropic` |
|
|
153
|
-
| Custom | Your URL |
|
|
147
|
+
| Provider | Base URL | Notes |
|
|
148
|
+
|----------|----------|-------|
|
|
149
|
+
| Anthropic (Direct) | Default | Standard `sk-ant-` keys |
|
|
150
|
+
| Amazon Bedrock | Default | No API key needed |
|
|
151
|
+
| Z.AI | `https://api.z.ai/api/anthropic` | Standard `sk-ant-` keys |
|
|
152
|
+
| MiniMax | `https://api.minimax.io/anthropic` | Supports both `sk-ant-` and `sk-cp-` (coding plan) keys |
|
|
153
|
+
| Custom | Your URL | Depends on provider |
|
|
154
|
+
|
|
155
|
+
**MiniMax Coding Plan Keys**: If you have a MiniMax coding plan subscription, get your `sk-cp-` key from the [Account/Coding Plan](https://platform.minimax.io/user-center/payment/coding-plan) page. Regular platform keys (`sk-ant-`) are available from the [API Keys](https://platform.minimax.io/user-center/basic-information/interface-key) page.
|
|
154
156
|
|
|
155
157
|
## Per-Project Profiles
|
|
156
158
|
|
package/dist/cli.js
CHANGED
|
@@ -12,7 +12,7 @@ import Fuse from "fuse.js";
|
|
|
12
12
|
// src/constants.js
|
|
13
13
|
import os from "os";
|
|
14
14
|
import path from "path";
|
|
15
|
-
var VERSION = "1.5.
|
|
15
|
+
var VERSION = "1.5.5";
|
|
16
16
|
var LOGO = `\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557
|
|
17
17
|
\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2551 \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D
|
|
18
18
|
\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2557
|
|
@@ -168,8 +168,16 @@ var validateProfile = (profile) => {
|
|
|
168
168
|
}
|
|
169
169
|
if (profile.env?.ANTHROPIC_AUTH_TOKEN) {
|
|
170
170
|
const key = profile.env.ANTHROPIC_AUTH_TOKEN;
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
const baseUrl = profile.env?.ANTHROPIC_BASE_URL || "";
|
|
172
|
+
const isMiniMax = baseUrl.includes("minimax.io") || baseUrl.includes("minimaxi.com");
|
|
173
|
+
if (isMiniMax) {
|
|
174
|
+
if (!key.startsWith("sk-ant-") && !key.startsWith("sk-cp-")) {
|
|
175
|
+
errors.push('MiniMax API key should start with "sk-ant-" or "sk-cp-" (for coding plans)');
|
|
176
|
+
}
|
|
177
|
+
} else {
|
|
178
|
+
if (!key.startsWith("sk-ant-")) {
|
|
179
|
+
errors.push('API key should start with "sk-ant-"');
|
|
180
|
+
}
|
|
173
181
|
}
|
|
174
182
|
if (key.length < 20) {
|
|
175
183
|
errors.push("API key appears too short");
|
|
@@ -181,6 +189,7 @@ var validateProfile = (profile) => {
|
|
|
181
189
|
/^claude-\d+(\.\d+)?(-\d+)?$/,
|
|
182
190
|
/^glm-/,
|
|
183
191
|
/^minimax-/,
|
|
192
|
+
/^MiniMax-M\d+(\.\d+)?$/,
|
|
184
193
|
/^anthropic\.claude-/
|
|
185
194
|
];
|
|
186
195
|
if (!validPatterns.some((p) => p.test(model))) {
|