claudmax 1.0.6 → 1.0.8

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 +5 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -284,8 +284,9 @@ function configureClaudeCLI(apiKey) {
284
284
 
285
285
  ensureDir(path.dirname(settingsPath));
286
286
 
287
- // settings.json — start fresh to override OpusCode settings
288
- const settings = {
287
+ // settings.json — use deepMerge to preserve OpusCode settings
288
+ const existing = readJson(settingsPath) || {};
289
+ const settings = deepMerge(existing, {
289
290
  env: {
290
291
  ANTHROPIC_AUTH_TOKEN: apiKey,
291
292
  ANTHROPIC_BASE_URL: `${API_BASE}/v1/messages`,
@@ -296,7 +297,7 @@ function configureClaudeCLI(apiKey) {
296
297
  ANTHROPIC_DEFAULT_HAIKU_MODEL: 'claude-haiku-4-5-20251001',
297
298
  },
298
299
  hasCompletedOnboarding: true,
299
- };
300
+ });
300
301
  writeJson(settingsPath, settings);
301
302
  console.log(` ${CHECK} Wrote Claude Code settings: ${C.magenta(settingsPath)}`);
302
303
 
@@ -412,7 +413,7 @@ function installMCPServer() {
412
413
  return true;
413
414
  } catch (err) {
414
415
  const errMsg = String(err.stderr || err.message || '');
415
- console.log(` ${WARN} Could not install ${MCP_PKG}: ${C.dim(errMsg.trim())}`);
416
+ console.log(` ${WARN} Could not install ${MCP_PKG}: ${C.dim(String(errMsg).trim())}`);
416
417
  console.log(` ${INFO} Install manually later: ${C.bold('npm install -g ' + MCP_PKG)}`);
417
418
  return false;
418
419
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudmax",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
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": {