claudmax 1.0.13 → 1.0.15

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.
Files changed (2) hide show
  1. package/index.js +9 -6
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -207,7 +207,7 @@ function configureSystem(apiKey) {
207
207
  apiKey,
208
208
  baseUrl: API_BASE,
209
209
  configuredAt: new Date().toISOString(),
210
- version: '1.0.2',
210
+ version: '1.0.14',
211
211
  });
212
212
  console.log(` ${CHECK} Config saved to ${C.magenta('~/.claudmax/config.json')}`);
213
213
  console.log(` ${INFO} ${C.dim('Claude Code CLI reads settings.json — no shell profile modification needed.')}`);
@@ -289,7 +289,7 @@ function configureCursor(apiKey) {
289
289
  writeJson(mcpPath, existing);
290
290
  console.log(` ${CHECK} Cursor configured ${C.dim('~/.cursor/mcp.json')}`);
291
291
  console.log(` ${INFO} ${C.dim('Add model in Cursor: Settings > Models > Add custom model')}`);
292
- console.log(` ${C.dim('Base URL: https://api.claudmax.pro/v1/chat')}`);
292
+ console.log(` ${C.dim('Anthropic Base URL: https://api.claudmax.pro')}`);
293
293
  }
294
294
 
295
295
  function configureWindsurf(apiKey) {
@@ -309,7 +309,7 @@ function configureWindsurf(apiKey) {
309
309
  writeJson(mcpPath, existing);
310
310
  console.log(` ${CHECK} Windsurf configured ${C.dim('~/.windsurf/mcp.json')}`);
311
311
  console.log(` ${INFO} ${C.dim('Set base URL in Windsurf: Settings > AI Provider')}`);
312
- console.log(` ${C.dim('https://api.claudmax.pro/v1/chat')}`);
312
+ console.log(` ${C.dim('https://api.claudmax.pro')}`);
313
313
  }
314
314
 
315
315
  function configureCline(apiKey) {
@@ -319,7 +319,7 @@ function configureCline(apiKey) {
319
319
  const existing = readJson(settingsPath) || {};
320
320
  deepMerge(existing, {
321
321
  'cline.apiProvider': 'anthropic',
322
- 'cline.anthropicBaseUrl': `${API_BASE}/v1/chat`,
322
+ 'cline.anthropicBaseUrl': API_BASE,
323
323
  'cline.apiKey': apiKey,
324
324
  });
325
325
  writeJson(settingsPath, existing);
@@ -333,7 +333,7 @@ function configureRooCode(apiKey) {
333
333
  const existing = readJson(settingsPath) || {};
334
334
  deepMerge(existing, {
335
335
  'roo-cline.apiProvider': 'anthropic',
336
- 'roo-cline.anthropicBaseUrl': `${API_BASE}/v1/chat`,
336
+ 'roo-cline.anthropicBaseUrl': API_BASE,
337
337
  'roo-cline.apiKey': apiKey,
338
338
  });
339
339
  writeJson(settingsPath, existing);
@@ -568,6 +568,9 @@ async function main() {
568
568
  }
569
569
 
570
570
  main().catch((err) => {
571
- console.error('\n' + C.red('\u2717 Fatal error: ' + err.message));
571
+ const msg = err && typeof err === 'object'
572
+ ? (String(err.stderr || err.message || err).trim())
573
+ : String(err);
574
+ console.error('\n' + C.red('\u2717 Fatal error: ' + msg));
572
575
  process.exit(1);
573
576
  });
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "claudmax",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "ClaudMax CLI — Configure Claude Code, Cursor, Windsurf, Cline, and Roo Code to use ClaudMax API gateway with one command",
5
5
  "main": "index.js",
6
6
  "bin": {
7
- "claudmax": "./index.js"
7
+ "claudmax": "./bin/claudmax.js"
8
8
  },
9
9
  "scripts": {
10
10
  "start": "node ./index.js"
@@ -30,4 +30,4 @@
30
30
  "node": ">=16.0.0"
31
31
  },
32
32
  "preferGlobal": true
33
- }
33
+ }