ccjk 13.3.9 → 13.3.11

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
@@ -2,9 +2,9 @@
2
2
 
3
3
  # 🚀 CCJK
4
4
 
5
- ### Claude Code just got superpowers
5
+ ### Turn Claude Code into a production-ready AI dev environment
6
6
 
7
- **One command. Minimal config. 10x productivity.**
7
+ **One command setup · Persistent memory · MCP automation · Cloud sync**
8
8
 
9
9
  <br/>
10
10
 
@@ -18,6 +18,7 @@ npx ccjk
18
18
  [![downloads](https://img.shields.io/npm/dm/ccjk?style=flat-square&color=cb3837)](https://www.npmjs.com/package/ccjk)
19
19
  [![license](https://img.shields.io/github/license/miounet11/ccjk?style=flat-square)](./LICENSE)
20
20
  [![stars](https://img.shields.io/github/stars/miounet11/ccjk?style=flat-square)](https://github.com/miounet11/ccjk/stargazers)
21
+ [![Agent Browser](https://img.shields.io/badge/agent--browser-ready-111827?style=flat-square)](https://github.com/vercel-labs/agent-browser)
21
22
 
22
23
  [English](./README.en.md) · [中文](./README.zh-CN.md) · [日本語](./README.ja.md)
23
24
 
@@ -25,6 +26,14 @@ npx ccjk
25
26
 
26
27
  ---
27
28
 
29
+ ## ✨ Why CCJK
30
+
31
+ - **30-second onboarding** for Claude Code, Codex, MCP services, and browser automation
32
+ - **Persistent project memory** so your AI stops forgetting architecture and conventions
33
+ - **Smarter model + context usage** to cut waste and keep long sessions usable
34
+ - **Cloud sync and remote control** so your setup follows you across devices
35
+ - **Production-ready defaults** with hardened config, validation, and safer automation
36
+
28
37
  ## 💡 What is CCJK?
29
38
 
30
39
  The **missing toolkit** for [Claude Code](https://github.com/anthropics/claude-code) that developers actually want:
@@ -54,6 +63,13 @@ npx ccjk init --silent
54
63
  # Done. Claude Code is now 10x smarter.
55
64
  ```
56
65
 
66
+ ```bash
67
+ # Popular one-liners
68
+ npx ccjk init --silent
69
+ npx ccjk boost
70
+ npx ccjk browser open https://example.com --headed
71
+ ```
72
+
57
73
  **What just happened?**
58
74
  - ✅ Auto-detected your project type (React/Vue/Node/Python/Go/Rust/etc)
59
75
  - ✅ Configured optimal MCP services for your stack
@@ -96,6 +112,13 @@ npx ccjk init --silent
96
112
  | 📱 "Can't control Claude from my phone" | 🌐 **Remote Control** | Web/App control with one-command setup |
97
113
  | 🔐 "Worried about production security" | 🛡️ **Production-Grade Security** | HTTPS enforcement, CORS hardening, secrets validation |
98
114
 
115
+ ## 🏆 Built For Real Work
116
+
117
+ - **Claude Code users** who want setup done once, correctly
118
+ - **Teams** who need repeatable onboarding and shared conventions
119
+ - **Power users** who want memory, MCP, browser automation, and multi-agent workflows in one CLI
120
+ - **API users** who care about reducing token waste without losing context quality
121
+
99
122
  ## 🔥 Features That Matter
100
123
 
101
124
  ### 🧠 Persistent Memory
package/bin/ccjk.mjs CHANGED
@@ -1,2 +1,4 @@
1
1
  #!/usr/bin/env node
2
+ // Suppress i18next promotional message
3
+ process.env.I18NEXT_SUPPRESS_WARNING = '1'
2
4
  import '../dist/cli.mjs'
@@ -1,6 +1,6 @@
1
1
  import a from './index2.mjs';
2
2
  import { i18n } from './index5.mjs';
3
- import { e as configureApi, g as getExistingApiConfig } from './config.mjs';
3
+ import { d as configureApi, g as getExistingApiConfig } from './config.mjs';
4
4
  import { g as getAllPresets } from '../shared/ccjk.DopKzo3z.mjs';
5
5
  import '../shared/ccjk.BAGoDD49.mjs';
6
6
  import 'node:fs';
@@ -1,7 +1,7 @@
1
1
  import { existsSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { homedir } from 'node:os';
3
3
  import { join } from 'node:path';
4
- import { n as needsMigration, m as migrateSettingsForTokenRetrieval } from '../shared/ccjk.D9VwKRaD.mjs';
4
+ import { n as needsMigration, m as migrateSettingsForTokenRetrieval } from '../shared/ccjk.j_kFuqW1.mjs';
5
5
  import './index2.mjs';
6
6
  import '../shared/ccjk.BAGoDD49.mjs';
7
7
  import './constants.mjs';
@@ -9,16 +9,8 @@ import './index5.mjs';
9
9
  import 'node:process';
10
10
  import 'node:url';
11
11
  import '../shared/ccjk.bQ7Dh1g4.mjs';
12
- import './claude-code-config-manager.mjs';
13
- import '../shared/ccjk.RyizuzOI.mjs';
14
- import './ccjk-config.mjs';
15
- import '../shared/ccjk.BBtCGd_g.mjs';
16
- import './index6.mjs';
17
- import './fs-operations.mjs';
18
- import 'node:crypto';
19
- import 'node:fs/promises';
20
- import './json-config.mjs';
21
12
  import './config.mjs';
13
+ import '../shared/ccjk.RyizuzOI.mjs';
22
14
  import './index3.mjs';
23
15
  import 'node:readline';
24
16
  import 'stream';
@@ -29,9 +21,13 @@ import 'node:util';
29
21
  import 'tty';
30
22
  import 'fs';
31
23
  import 'child_process';
24
+ import 'node:crypto';
32
25
  import 'buffer';
33
26
  import 'string_decoder';
34
27
  import './claude-config.mjs';
28
+ import './json-config.mjs';
29
+ import './fs-operations.mjs';
30
+ import 'node:fs/promises';
35
31
  import './platform.mjs';
36
32
  import './main.mjs';
37
33
  import 'module';
@@ -52,11 +52,10 @@ import './smart-defaults.mjs';
52
52
  import '../shared/ccjk.DJuyfrlL.mjs';
53
53
  import './config2.mjs';
54
54
  import './init.mjs';
55
- import '../shared/ccjk.CvIIxgUS.mjs';
55
+ import '../shared/ccjk.DfZKjHvG.mjs';
56
56
  import './auto-updater.mjs';
57
57
  import './version-checker.mjs';
58
- import '../shared/ccjk.D9VwKRaD.mjs';
59
- import './claude-code-config-manager.mjs';
58
+ import '../shared/ccjk.j_kFuqW1.mjs';
60
59
  import './installer.mjs';
61
60
  import '../shared/ccjk._dESH4Rk.mjs';
62
61
  import './simple-config.mjs';
@@ -1,7 +1,7 @@
1
1
  import { d as dayjs } from '../shared/ccjk.RyizuzOI.mjs';
2
2
  import { ZCF_CONFIG_FILE, ZCF_CONFIG_DIR, SETTINGS_FILE } from './constants.mjs';
3
3
  import { readDefaultTomlConfig, createDefaultTomlConfig, writeTomlConfig } from './ccjk-config.mjs';
4
- import { a as clearModelEnv, d as applyAdaptiveModelEnv } from './config.mjs';
4
+ import { a as clearModelEnv } from './config.mjs';
5
5
  import { ensureDir, exists, copyFile } from './fs-operations.mjs';
6
6
  import { readJsonConfig } from './json-config.mjs';
7
7
  import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
@@ -206,7 +206,7 @@ class ClaudeCodeConfigManager {
206
206
  ensureI18nInitialized();
207
207
  try {
208
208
  if (!profile) {
209
- const { switchToOfficialLogin } = await import('./config.mjs').then(function (n) { return n.l; });
209
+ const { switchToOfficialLogin } = await import('./config.mjs').then(function (n) { return n.k; });
210
210
  switchToOfficialLogin();
211
211
  return;
212
212
  }
@@ -242,17 +242,18 @@ class ClaudeCodeConfigManager {
242
242
  else
243
243
  delete settings.env.ANTHROPIC_BASE_URL;
244
244
  }
245
- const hasAdaptiveModelConfig = Boolean(
245
+ const hasModelConfig = Boolean(
246
246
  profile.primaryModel || profile.defaultHaikuModel || profile.defaultSonnetModel || profile.defaultOpusModel
247
247
  );
248
- if (hasAdaptiveModelConfig) {
249
- delete settings.model;
250
- applyAdaptiveModelEnv(settings.env, {
251
- primaryModel: profile.primaryModel,
252
- defaultHaikuModel: profile.defaultHaikuModel,
253
- defaultSonnetModel: profile.defaultSonnetModel,
254
- defaultOpusModel: profile.defaultOpusModel
255
- });
248
+ if (hasModelConfig) {
249
+ if (profile.primaryModel)
250
+ settings.env.ANTHROPIC_MODEL = profile.primaryModel;
251
+ if (profile.defaultHaikuModel)
252
+ settings.env.ANTHROPIC_DEFAULT_HAIKU_MODEL = profile.defaultHaikuModel;
253
+ if (profile.defaultSonnetModel)
254
+ settings.env.ANTHROPIC_DEFAULT_SONNET_MODEL = profile.defaultSonnetModel;
255
+ if (profile.defaultOpusModel)
256
+ settings.env.ANTHROPIC_DEFAULT_OPUS_MODEL = profile.defaultOpusModel;
256
257
  } else {
257
258
  clearModelEnv(settings.env);
258
259
  }
@@ -4,7 +4,7 @@ import { ensureI18nInitialized, i18n } from './index5.mjs';
4
4
  import { ClaudeCodeConfigManager } from './claude-code-config-manager.mjs';
5
5
  import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
6
6
  import { p as promptBoolean } from '../shared/ccjk.BWFpnOr3.mjs';
7
- import { v as validateApiKey } from '../shared/ccjk.CvIIxgUS.mjs';
7
+ import { v as validateApiKey } from '../shared/ccjk.DfZKjHvG.mjs';
8
8
  import '../shared/ccjk.BAGoDD49.mjs';
9
9
  import 'node:readline';
10
10
  import 'stream';
@@ -10,7 +10,7 @@ import { x as K } from './main.mjs';
10
10
  import { CODEX_AUTH_FILE, SUPPORTED_LANGS, CODEX_DIR, CODEX_AGENTS_FILE, CODEX_PROMPTS_DIR, CODEX_CONFIG_FILE, AI_OUTPUT_LANGUAGES, ZCF_CONFIG_FILE } from './constants.mjs';
11
11
  import { ensureI18nInitialized, i18n, format } from './index5.mjs';
12
12
  import { updateZcfConfig, readZcfConfig, readDefaultTomlConfig, updateTomlConfig } from './ccjk-config.mjs';
13
- import { f as applyAiLanguageDirective } from './config.mjs';
13
+ import { e as applyAiLanguageDirective } from './config.mjs';
14
14
  import { exists, readFile, ensureDir, writeFileAtomic, writeFile, copyFile, copyDir } from './fs-operations.mjs';
15
15
  import { readJsonConfig, writeJsonConfig } from './json-config.mjs';
16
16
  import { k as isWindows, m as getMcpCommand, l as getSystemRoot, w as wrapCommandWithSudo, n as normalizeTomlPath } from './platform.mjs';
@@ -12,10 +12,11 @@ import { j as join, d as dirname } from '../shared/ccjk.bQ7Dh1g4.mjs';
12
12
 
13
13
  const MODEL_ENV_KEYS = [
14
14
  "ANTHROPIC_MODEL",
15
- "ANTHROPIC_SMALL_FAST_MODEL",
16
15
  "ANTHROPIC_DEFAULT_HAIKU_MODEL",
17
16
  "ANTHROPIC_DEFAULT_SONNET_MODEL",
18
- "ANTHROPIC_DEFAULT_OPUS_MODEL"
17
+ "ANTHROPIC_DEFAULT_OPUS_MODEL",
18
+ // Deprecated but still cleaned to avoid stale values
19
+ "ANTHROPIC_SMALL_FAST_MODEL"
19
20
  ];
20
21
  function clearModelEnv(env) {
21
22
  for (const key of MODEL_ENV_KEYS) {
@@ -23,26 +24,6 @@ function clearModelEnv(env) {
23
24
  }
24
25
  }
25
26
 
26
- function applyAdaptiveModelEnv(env, models) {
27
- const primaryModel = models.primaryModel?.trim();
28
- const defaultHaikuModel = models.defaultHaikuModel?.trim();
29
- const defaultSonnetModel = models.defaultSonnetModel?.trim();
30
- const defaultOpusModel = models.defaultOpusModel?.trim();
31
- if (primaryModel) {
32
- env.ANTHROPIC_MODEL = primaryModel;
33
- }
34
- if (defaultHaikuModel) {
35
- env.ANTHROPIC_SMALL_FAST_MODEL = defaultHaikuModel;
36
- env.ANTHROPIC_DEFAULT_HAIKU_MODEL = defaultHaikuModel;
37
- }
38
- if (defaultSonnetModel) {
39
- env.ANTHROPIC_DEFAULT_SONNET_MODEL = defaultSonnetModel;
40
- }
41
- if (defaultOpusModel) {
42
- env.ANTHROPIC_DEFAULT_OPUS_MODEL = defaultOpusModel;
43
- }
44
- }
45
-
46
27
  function ensureClaudeDir() {
47
28
  ensureDir(CLAUDE_DIR);
48
29
  }
@@ -177,12 +158,15 @@ function updateCustomModel(primaryModel, haikuModel, sonnetModel, opusModel) {
177
158
  delete settings.model;
178
159
  settings.env = settings.env || {};
179
160
  clearModelEnv(settings.env);
180
- applyAdaptiveModelEnv(settings.env, {
181
- primaryModel,
182
- defaultHaikuModel: haikuModel,
183
- defaultSonnetModel: sonnetModel,
184
- defaultOpusModel: opusModel
185
- });
161
+ if (primaryModel?.trim()) {
162
+ settings.env.ANTHROPIC_MODEL = primaryModel.trim();
163
+ }
164
+ if (haikuModel?.trim())
165
+ settings.env.ANTHROPIC_DEFAULT_HAIKU_MODEL = haikuModel.trim();
166
+ if (sonnetModel?.trim())
167
+ settings.env.ANTHROPIC_DEFAULT_SONNET_MODEL = sonnetModel.trim();
168
+ if (opusModel?.trim())
169
+ settings.env.ANTHROPIC_DEFAULT_OPUS_MODEL = opusModel.trim();
186
170
  writeJsonConfig(SETTINGS_FILE, settings);
187
171
  }
188
172
  function updateDefaultModel(model) {
@@ -286,7 +270,6 @@ function getExistingCustomModelConfig() {
286
270
  }
287
271
  const {
288
272
  ANTHROPIC_MODEL,
289
- ANTHROPIC_SMALL_FAST_MODEL,
290
273
  ANTHROPIC_DEFAULT_HAIKU_MODEL,
291
274
  ANTHROPIC_DEFAULT_SONNET_MODEL,
292
275
  ANTHROPIC_DEFAULT_OPUS_MODEL
@@ -296,7 +279,7 @@ function getExistingCustomModelConfig() {
296
279
  }
297
280
  return {
298
281
  primaryModel: ANTHROPIC_MODEL,
299
- haikuModel: ANTHROPIC_DEFAULT_HAIKU_MODEL || ANTHROPIC_SMALL_FAST_MODEL,
282
+ haikuModel: ANTHROPIC_DEFAULT_HAIKU_MODEL,
300
283
  sonnetModel: ANTHROPIC_DEFAULT_SONNET_MODEL,
301
284
  opusModel: ANTHROPIC_DEFAULT_OPUS_MODEL
302
285
  };
@@ -416,4 +399,4 @@ const config = {
416
399
  updateDefaultModel: updateDefaultModel
417
400
  };
418
401
 
419
- export { clearModelEnv as a, backupExistingConfig as b, copyConfigFiles as c, applyAdaptiveModelEnv as d, configureApi as e, applyAiLanguageDirective as f, getExistingApiConfig as g, getExistingModelConfig as h, getExistingCustomModelConfig as i, updateDefaultModel as j, ensureClaudeDir as k, config as l, promptApiConfigurationAction as p, switchToOfficialLogin as s, updateCustomModel as u };
402
+ export { clearModelEnv as a, backupExistingConfig as b, copyConfigFiles as c, configureApi as d, applyAiLanguageDirective as e, getExistingModelConfig as f, getExistingApiConfig as g, getExistingCustomModelConfig as h, updateDefaultModel as i, ensureClaudeDir as j, config as k, promptApiConfigurationAction as p, switchToOfficialLogin as s, updateCustomModel as u };
@@ -814,7 +814,7 @@ async function checkPermissionRules() {
814
814
  }
815
815
  async function fixSettingsFile() {
816
816
  const isZh = i18n.language === "zh-CN";
817
- const { copyConfigFiles } = await import('./config.mjs').then(function (n) { return n.l; });
817
+ const { copyConfigFiles } = await import('./config.mjs').then(function (n) { return n.k; });
818
818
  console.log("");
819
819
  console.log(a.bold.cyan("\u{1F527} Fixing settings.json"));
820
820
  console.log(a.dim("\u2500".repeat(50)));
@@ -7428,6 +7428,10 @@ var Backend = function () {
7428
7428
  }();
7429
7429
  Backend.type = 'backend';
7430
7430
 
7431
+ const originalLog = console.log;
7432
+ console.log = () => {
7433
+ };
7434
+ console.log = originalLog;
7431
7435
  const i18n = instance.createInstance();
7432
7436
  const NAMESPACES = [
7433
7437
  "agent-teams",
@@ -7523,7 +7527,7 @@ async function initI18n(language = "zh-CN") {
7523
7527
  }
7524
7528
  return;
7525
7529
  }
7526
- const originalLog = console.log;
7530
+ const originalLog2 = console.log;
7527
7531
  console.log = () => {
7528
7532
  };
7529
7533
  await i18n.use(Backend).init({
@@ -7586,7 +7590,7 @@ async function initI18n(language = "zh-CN") {
7586
7590
  updateMissing: false,
7587
7591
  missingKeyHandler: false
7588
7592
  });
7589
- console.log = originalLog;
7593
+ console.log = originalLog2;
7590
7594
  }
7591
7595
  function format(template, values) {
7592
7596
  if (!values)
@@ -3,7 +3,7 @@ import process__default from 'node:process';
3
3
  import a from './index2.mjs';
4
4
  import { i as inquirer } from './index3.mjs';
5
5
  import { m as runCodexFullInit, k as selectMcpServices, g as getMcpServices, M as MCP_SERVICE_CONFIGS } from './codex.mjs';
6
- import { m as modifyApiConfigPartially, a as configureApiCompletely, s as selectAndInstallWorkflows, c as configureOutputStyle, f as formatApiKeyDisplay, W as WORKFLOW_CONFIG_BASE } from '../shared/ccjk.CvIIxgUS.mjs';
6
+ import { m as modifyApiConfigPartially, a as configureApiCompletely, s as selectAndInstallWorkflows, c as configureOutputStyle, f as formatApiKeyDisplay, W as WORKFLOW_CONFIG_BASE } from '../shared/ccjk.DfZKjHvG.mjs';
7
7
  import { SETTINGS_FILE, DEFAULT_CODE_TOOL_TYPE, CODE_TOOL_BANNERS, API_DEFAULT_URL } from './constants.mjs';
8
8
  import { ensureI18nInitialized, i18n } from './index5.mjs';
9
9
  import { displayBannerWithInfo, padToDisplayWidth } from './banner.mjs';
@@ -17,8 +17,8 @@ import { a as addCompletedOnboarding, s as setPrimaryApiKey, c as backupMcpConfi
17
17
  import { r as resolveCodeType } from '../shared/ccjk.Cjj8SVrn.mjs';
18
18
  import { exists } from './fs-operations.mjs';
19
19
  import { readJsonConfig, writeJsonConfig } from './json-config.mjs';
20
- import { p as promptApiConfigurationAction, k as ensureClaudeDir, g as getExistingApiConfig, s as switchToOfficialLogin, b as backupExistingConfig, c as copyConfigFiles, f as applyAiLanguageDirective, e as configureApi } from './config.mjs';
21
- import { n as needsMigration, m as migrateSettingsForTokenRetrieval, d as displayMigrationResult, p as promptMigration } from '../shared/ccjk.D9VwKRaD.mjs';
20
+ import { p as promptApiConfigurationAction, j as ensureClaudeDir, g as getExistingApiConfig, s as switchToOfficialLogin, b as backupExistingConfig, c as copyConfigFiles, e as applyAiLanguageDirective, d as configureApi } from './config.mjs';
21
+ import { n as needsMigration, m as migrateSettingsForTokenRetrieval, d as displayMigrationResult, p as promptMigration } from '../shared/ccjk.j_kFuqW1.mjs';
22
22
  import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.BIxuVL3_.mjs';
23
23
  import { getInstallationStatus, installClaudeCode } from './installer.mjs';
24
24
  import { p as parseOrchestrationLevel, w as writeOrchestrationPolicy } from './smart-defaults.mjs';
@@ -1030,7 +1030,7 @@ async function init(options = {}) {
1030
1030
  const hasModelParams = options.apiModel || options.apiHaikuModel || options.apiSonnetModel || options.apiOpusModel;
1031
1031
  if (hasModelParams && action !== "docs-only" && codeToolType === "claude-code") {
1032
1032
  if (options.skipPrompt) {
1033
- const { updateCustomModel } = await import('./config.mjs').then(function (n) { return n.l; });
1033
+ const { updateCustomModel } = await import('./config.mjs').then(function (n) { return n.k; });
1034
1034
  updateCustomModel(
1035
1035
  options.apiModel || void 0,
1036
1036
  options.apiHaikuModel || void 0,
@@ -52,11 +52,10 @@ import '../shared/ccjk.DJuyfrlL.mjs';
52
52
  import '../shared/ccjk.BIxuVL3_.mjs';
53
53
  import './config2.mjs';
54
54
  import './init.mjs';
55
- import '../shared/ccjk.CvIIxgUS.mjs';
55
+ import '../shared/ccjk.DfZKjHvG.mjs';
56
56
  import './auto-updater.mjs';
57
57
  import './version-checker.mjs';
58
- import '../shared/ccjk.D9VwKRaD.mjs';
59
- import './claude-code-config-manager.mjs';
58
+ import '../shared/ccjk.j_kFuqW1.mjs';
60
59
  import './installer.mjs';
61
60
  import '../shared/ccjk._dESH4Rk.mjs';
62
61
  import './simple-config.mjs';
@@ -13,8 +13,8 @@ import { h as handleExitPromptError, a as handleGeneralError } from '../shared/c
13
13
  import { homedir } from 'node:os';
14
14
  import { setupCcrConfiguration, readCcrConfig, configureCcrFeature } from './config2.mjs';
15
15
  import { a as isCcrInstalled, b as installCcr, i as init } from './init.mjs';
16
- import { f as applyAiLanguageDirective, h as getExistingModelConfig, i as getExistingCustomModelConfig, u as updateCustomModel, j as updateDefaultModel, g as getExistingApiConfig, p as promptApiConfigurationAction, e as configureApi, s as switchToOfficialLogin } from './config.mjs';
17
- import { c as configureOutputStyle, m as modifyApiConfigPartially, v as validateApiKey, f as formatApiKeyDisplay } from '../shared/ccjk.CvIIxgUS.mjs';
16
+ import { e as applyAiLanguageDirective, f as getExistingModelConfig, h as getExistingCustomModelConfig, u as updateCustomModel, i as updateDefaultModel, g as getExistingApiConfig, p as promptApiConfigurationAction, d as configureApi, s as switchToOfficialLogin } from './config.mjs';
17
+ import { c as configureOutputStyle, m as modifyApiConfigPartially, v as validateApiKey, f as formatApiKeyDisplay } from '../shared/ccjk.DfZKjHvG.mjs';
18
18
  import { k as isWindows } from './platform.mjs';
19
19
  import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
20
20
  import { openSettingsJson, importRecommendedPermissions, importRecommendedEnv } from './simple-config.mjs';
@@ -79,7 +79,7 @@ async function runOnboardingWizard(options = {}) {
79
79
  console.log(a.bold(`${isZh ? "\u6B65\u9AA4 2/3" : "Step 2/3"}: ${isZh ? "API \u914D\u7F6E" : "API Configuration"}${step2Done ? a.green(" \u2714") : ""}`));
80
80
  if (!step2Done) {
81
81
  try {
82
- const { getExistingApiConfig } = await import('./config.mjs').then(function (n) { return n.l; });
82
+ const { getExistingApiConfig } = await import('./config.mjs').then(function (n) { return n.k; });
83
83
  const existing = getExistingApiConfig();
84
84
  if (existing?.key || existing?.url) {
85
85
  console.log(a.green(` \u2714 ${isZh ? "\u5DF2\u914D\u7F6E" : "Already configured"}`));
@@ -1,3 +1,3 @@
1
- const version = "13.3.9";
1
+ const version = "13.3.11";
2
2
 
3
3
  export { version };
@@ -649,7 +649,7 @@ async function saveProviderConfig(config) {
649
649
  settings.apiProvider = "custom";
650
650
  settings.apiUrl = config.provider.apiUrl;
651
651
  settings.apiKey = config.apiKey;
652
- delete settings.model;
652
+ settings.model = config.model;
653
653
  const envConfig = {
654
654
  ANTHROPIC_BASE_URL: config.provider.apiUrl,
655
655
  ANTHROPIC_API_KEY: config.apiKey,
@@ -47,14 +47,13 @@ import '../shared/ccjk.DScm_NnL.mjs';
47
47
  import '../shared/ccjk.BFQ7yr5S.mjs';
48
48
  import './prompts.mjs';
49
49
  import '../shared/ccjk.BWFpnOr3.mjs';
50
- import '../shared/ccjk.CvIIxgUS.mjs';
50
+ import '../shared/ccjk.DfZKjHvG.mjs';
51
51
  import './banner.mjs';
52
52
  import './config2.mjs';
53
53
  import './auto-updater.mjs';
54
54
  import './version-checker.mjs';
55
55
  import '../shared/ccjk.Cjj8SVrn.mjs';
56
- import '../shared/ccjk.D9VwKRaD.mjs';
57
- import './claude-code-config-manager.mjs';
56
+ import '../shared/ccjk.j_kFuqW1.mjs';
58
57
  import '../shared/ccjk.BIxuVL3_.mjs';
59
58
  import './installer.mjs';
60
59
  import '../shared/ccjk._dESH4Rk.mjs';
@@ -122,7 +122,7 @@ function getSlashCommands() {
122
122
  descriptionZh: "\u521B\u5EFA\u914D\u7F6E\u5907\u4EFD",
123
123
  category: "system",
124
124
  handler: async () => {
125
- const { backupExistingConfig } = await import('./config.mjs').then(function (n) { return n.l; });
125
+ const { backupExistingConfig } = await import('./config.mjs').then(function (n) { return n.k; });
126
126
  const backupPath = backupExistingConfig();
127
127
  if (backupPath) {
128
128
  console.log(a.green(`\u2705 Backup created: ${backupPath}`));
@@ -8,8 +8,8 @@ import { displayBanner } from './banner.mjs';
8
8
  import { readZcfConfig, updateZcfConfig } from './ccjk-config.mjs';
9
9
  import { r as readMcpConfig } from './claude-config.mjs';
10
10
  import { c as copyConfigFiles } from './config.mjs';
11
- import { n as needsMigration, m as migrateSettingsForTokenRetrieval, d as displayMigrationResult, p as promptMigration } from '../shared/ccjk.D9VwKRaD.mjs';
12
- import { u as updatePromptOnly, s as selectAndInstallWorkflows } from '../shared/ccjk.CvIIxgUS.mjs';
11
+ import { n as needsMigration, m as migrateSettingsForTokenRetrieval, d as displayMigrationResult, p as promptMigration } from '../shared/ccjk.j_kFuqW1.mjs';
12
+ import { u as updatePromptOnly, s as selectAndInstallWorkflows } from '../shared/ccjk.DfZKjHvG.mjs';
13
13
  import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.BIxuVL3_.mjs';
14
14
  import { a as installMcpServices } from '../shared/ccjk.KpFl2RDA.mjs';
15
15
  import { resolveAiOutputLanguage } from './prompts.mjs';
@@ -50,7 +50,6 @@ import '../shared/ccjk.BFQ7yr5S.mjs';
50
50
  import '../shared/ccjk.BWFpnOr3.mjs';
51
51
  import './index6.mjs';
52
52
  import '../shared/ccjk.DScm_NnL.mjs';
53
- import './claude-code-config-manager.mjs';
54
53
 
55
54
  const ccjkVersion = getRuntimeVersion();
56
55
  function resolveCodeToolType(optionValue, savedValue) {
@@ -13,7 +13,7 @@
13
13
  "services.spec-workflow.name": "Spec Workflow",
14
14
  "services.serena.name": "Serena Assistant",
15
15
  "services.serena.description": "Semantic code retrieval and editing akin to an IDE; extracts symbol-level entities and leverages relations to greatly improve token efficiency with coding agents",
16
- "services.agent-browser.description": "Anthropic official browser automation for web interaction and testing",
16
+ "services.agent-browser.description": "Vercel Labs browser automation for web interaction and testing",
17
17
  "services.agent-browser.name": "Agent Browser",
18
18
  "services.filesystem.name": "Filesystem Operations",
19
19
  "services.filesystem.description": "Read, write, and manage files and directories on the local filesystem",
@@ -13,7 +13,7 @@
13
13
  "services.spec-workflow.name": "Spec 工作流",
14
14
  "services.serena.name": "Serena 助手",
15
15
  "services.serena.description": "提供类似 IDE 的语义代码检索与编辑,支持符号级实体提取与关系结构利用;与现有编码代理配合可显著提升标记效率",
16
- "services.agent-browser.description": "Anthropic 官方浏览器自动化,用于网页交互和测试",
16
+ "services.agent-browser.description": "Vercel Labs 浏览器自动化,用于网页交互和测试",
17
17
  "services.agent-browser.name": "Agent Browser 浏览器自动化",
18
18
  "services.filesystem.name": "文件系统操作",
19
19
  "services.filesystem.description": "读取、写入和管理本地文件系统中的文件和目录",
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ import { promisify } from 'node:util';
13
13
  import a from './chunks/index2.mjs';
14
14
  import { g as getRuntimeVersion } from './shared/ccjk.gDEDGD_t.mjs';
15
15
  import { j as join$1 } from './shared/ccjk.bQ7Dh1g4.mjs';
16
- export { l as config } from './chunks/config.mjs';
16
+ export { k as config } from './chunks/config.mjs';
17
17
  export { a as loggerUtils } from './shared/ccjk.BJMRY2Ra.mjs';
18
18
  export { p as platform } from './chunks/platform.mjs';
19
19
  import { Transform } from 'node:stream';
@@ -2,7 +2,7 @@ import a from '../chunks/index2.mjs';
2
2
  import { i as inquirer } from '../chunks/index3.mjs';
3
3
  import { CLAUDE_DIR, SETTINGS_FILE } from '../chunks/constants.mjs';
4
4
  import { ensureI18nInitialized, i18n } from '../chunks/index5.mjs';
5
- import { g as getExistingApiConfig, e as configureApi, s as switchToOfficialLogin, b as backupExistingConfig, f as applyAiLanguageDirective } from '../chunks/config.mjs';
5
+ import { g as getExistingApiConfig, d as configureApi, s as switchToOfficialLogin, b as backupExistingConfig, e as applyAiLanguageDirective } from '../chunks/config.mjs';
6
6
  import { fileURLToPath } from 'node:url';
7
7
  import { updateZcfConfig } from '../chunks/ccjk-config.mjs';
8
8
  import { exists, removeFile, ensureDir, copyFile } from '../chunks/fs-operations.mjs';
@@ -1,7 +1,6 @@
1
1
  import a from '../chunks/index2.mjs';
2
2
  import { SETTINGS_FILE } from '../chunks/constants.mjs';
3
3
  import { ensureI18nInitialized, i18n } from '../chunks/index5.mjs';
4
- import { ClaudeCodeConfigManager } from '../chunks/claude-code-config-manager.mjs';
5
4
  import { b as backupExistingConfig } from '../chunks/config.mjs';
6
5
  import { exists } from '../chunks/fs-operations.mjs';
7
6
  import { readJsonConfig, writeJsonConfig } from '../chunks/json-config.mjs';
@@ -40,25 +39,6 @@ function migrateSettingsForTokenRetrieval() {
40
39
  modified = true;
41
40
  }
42
41
  }
43
- if (settings.env.ANTHROPIC_DEFAULT_HAIKU_MODEL && !settings.env.ANTHROPIC_SMALL_FAST_MODEL) {
44
- settings.env.ANTHROPIC_SMALL_FAST_MODEL = settings.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;
45
- result.changes.push("Restored ANTHROPIC_SMALL_FAST_MODEL from defaultHaikuModel so Claude Code can auto-route lightweight requests again");
46
- modified = true;
47
- }
48
- }
49
- if (settings.model && (settings.env?.ANTHROPIC_DEFAULT_HAIKU_MODEL || settings.env?.ANTHROPIC_DEFAULT_SONNET_MODEL || settings.env?.ANTHROPIC_DEFAULT_OPUS_MODEL)) {
50
- delete settings.model;
51
- result.changes.push("Removed stale settings.model override because adaptive default model variants are configured");
52
- modified = true;
53
- }
54
- const profileConfig = ClaudeCodeConfigManager.readConfig();
55
- if (profileConfig) {
56
- const hasAdaptiveProfiles = Object.entries(profileConfig.profiles).some(
57
- ([_profileId, profile]) => Boolean(profile.primaryModel || profile.defaultHaikuModel || profile.defaultSonnetModel || profile.defaultOpusModel)
58
- );
59
- if (hasAdaptiveProfiles) {
60
- result.changes.push("Preserved profile-level primaryModel values; migration now keeps primary routing and restores fast-model compatibility instead of deleting them");
61
- }
62
42
  }
63
43
  if (!modified) {
64
44
  result.success = true;
@@ -89,15 +69,7 @@ function needsMigration() {
89
69
  }
90
70
  const hasProblematicVar = "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC" in settings.env;
91
71
  const hasExcessiveTimeout = settings.env.MCP_TIMEOUT && Number.parseInt(settings.env.MCP_TIMEOUT, 10) > 2e4;
92
- const hasAdaptiveModelDefaults = Boolean(
93
- settings.env.ANTHROPIC_DEFAULT_HAIKU_MODEL || settings.env.ANTHROPIC_DEFAULT_SONNET_MODEL || settings.env.ANTHROPIC_DEFAULT_OPUS_MODEL
94
- );
95
- const isMissingFastModelCompat = Boolean(
96
- settings.env.ANTHROPIC_DEFAULT_HAIKU_MODEL && !settings.env.ANTHROPIC_SMALL_FAST_MODEL
97
- );
98
- const hasPinnedAdaptiveOverride = Boolean(settings.model && hasAdaptiveModelDefaults);
99
- const hasProfilePinnedAdaptiveOverride = false;
100
- return Boolean(hasProblematicVar || hasExcessiveTimeout || hasPinnedAdaptiveOverride || hasProfilePinnedAdaptiveOverride || isMissingFastModelCompat);
72
+ return Boolean(hasProblematicVar || hasExcessiveTimeout);
101
73
  } catch {
102
74
  return false;
103
75
  }
@@ -3,11 +3,10 @@
3
3
  "description": "CCJK settings template — auto-migrated on upgrade",
4
4
  "model": "default",
5
5
  "env": {
6
+ "ANTHROPIC_MODEL": "",
6
7
  "ANTHROPIC_DEFAULT_HAIKU_MODEL": "",
7
8
  "ANTHROPIC_DEFAULT_SONNET_MODEL": "",
8
- "ANTHROPIC_DEFAULT_OPUS_MODEL": "",
9
- "CCJK_CONTEXT_OPTIMIZATION": "true",
10
- "CCJK_TOOL_COMPRESSION": "true"
9
+ "ANTHROPIC_DEFAULT_OPUS_MODEL": ""
11
10
  },
12
11
  "language": "",
13
12
  "showTurnDuration": false,
@@ -42,7 +41,6 @@
42
41
  },
43
42
  "permissions": {
44
43
  "allow": [
45
- "Bash(*)",
46
44
  "Bash(sips *)",
47
45
  "Bash(pnpm *)",
48
46
  "Bash(npm *)",
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "ccjk",
3
3
  "type": "module",
4
- "version": "13.3.9",
4
+ "version": "13.3.11",
5
5
  "packageManager": "pnpm@10.17.1",
6
- "description": "CLI toolkit for Claude Code and Codex setup. Simplifies MCP service installation, API configuration, workflow management, and multi-provider support with guided interactive setup.",
6
+ "description": "Turn Claude Code into a production-ready AI dev environment with one-command setup, persistent memory, MCP automation, cloud sync, and zero-config browser workflows.",
7
7
  "author": {
8
8
  "name": "CCJK Team",
9
9
  "email": "9248293@gmail.com"
@@ -3,11 +3,10 @@
3
3
  "description": "CCJK settings template — auto-migrated on upgrade",
4
4
  "model": "default",
5
5
  "env": {
6
+ "ANTHROPIC_MODEL": "",
6
7
  "ANTHROPIC_DEFAULT_HAIKU_MODEL": "",
7
8
  "ANTHROPIC_DEFAULT_SONNET_MODEL": "",
8
- "ANTHROPIC_DEFAULT_OPUS_MODEL": "",
9
- "CCJK_CONTEXT_OPTIMIZATION": "true",
10
- "CCJK_TOOL_COMPRESSION": "true"
9
+ "ANTHROPIC_DEFAULT_OPUS_MODEL": ""
11
10
  },
12
11
  "language": "",
13
12
  "showTurnDuration": false,
@@ -42,7 +41,6 @@
42
41
  },
43
42
  "permissions": {
44
43
  "allow": [
45
- "Bash(*)",
46
44
  "Bash(sips *)",
47
45
  "Bash(pnpm *)",
48
46
  "Bash(npm *)",