aicodeswitch 1.1.1 → 1.1.2

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.
@@ -55,8 +55,7 @@ const writeClaudeConfig = (dbManager) => __awaiter(void 0, void 0, void 0, funct
55
55
  ANTHROPIC_AUTH_TOKEN: config.apiKey || "api_key",
56
56
  ANTHROPIC_BASE_URL: `http://${host}:${port}/claude-code`,
57
57
  API_TIMEOUT_MS: "3000000"
58
- },
59
- hasCompletedOnboarding: true
58
+ }
60
59
  };
61
60
  fs_1.default.writeFileSync(claudeSettingsPath, JSON.stringify(claudeSettings, null, 2));
62
61
  // Claude Code .claude.json
@@ -65,9 +64,11 @@ const writeClaudeConfig = (dbManager) => __awaiter(void 0, void 0, void 0, funct
65
64
  if (fs_1.default.existsSync(claudeJsonPath)) {
66
65
  fs_1.default.renameSync(claudeJsonPath, claudeJsonBakPath);
67
66
  }
68
- const claudeJson = {
69
- hasCompletedOnboarding: true
70
- };
67
+ let claudeJson = {};
68
+ if (fs_1.default.existsSync(claudeJsonPath)) {
69
+ claudeJson = JSON.parse(fs_1.default.readFileSync(claudeJsonPath, 'utf8'));
70
+ }
71
+ claudeJson.hasCompletedOnboarding = true;
71
72
  fs_1.default.writeFileSync(claudeJsonPath, JSON.stringify(claudeJson, null, 2));
72
73
  return true;
73
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aicodeswitch",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A tool to help you manage AI programming tools to access large language models locally. It allows your Claude Code, Codex and other tools to no longer be limited to official models.",
5
5
  "author": "tangshuang",
6
6
  "license": "MIT",