ccjk 13.3.9 → 13.3.10

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
@@ -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.DwbhKZGA.mjs';
5
5
  import './index2.mjs';
6
6
  import '../shared/ccjk.BAGoDD49.mjs';
7
7
  import './constants.mjs';
@@ -55,7 +55,7 @@ import './init.mjs';
55
55
  import '../shared/ccjk.CvIIxgUS.mjs';
56
56
  import './auto-updater.mjs';
57
57
  import './version-checker.mjs';
58
- import '../shared/ccjk.D9VwKRaD.mjs';
58
+ import '../shared/ccjk.DwbhKZGA.mjs';
59
59
  import './claude-code-config-manager.mjs';
60
60
  import './installer.mjs';
61
61
  import '../shared/ccjk._dESH4Rk.mjs';
@@ -78,7 +78,7 @@ import './uninstall.mjs';
78
78
  import '../shared/ccjk.CvChMYvB.mjs';
79
79
  import 'globby';
80
80
  import './update.mjs';
81
- import '../shared/ccjk.KpFl2RDA.mjs';
81
+ import '../shared/ccjk.BHBpQsHd.mjs';
82
82
 
83
83
  async function ccr(options = {}) {
84
84
  try {
@@ -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, d as applyAdaptiveModelEnv, n as normalizeAdaptiveModelSettings } 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';
@@ -256,6 +256,7 @@ class ClaudeCodeConfigManager {
256
256
  } else {
257
257
  clearModelEnv(settings.env);
258
258
  }
259
+ normalizeAdaptiveModelSettings(settings);
259
260
  writeJsonConfig(SETTINGS_FILE, settings);
260
261
  const { setPrimaryApiKey, addCompletedOnboarding } = await import('./claude-config.mjs').then(function (n) { return n.h; });
261
262
  setPrimaryApiKey();
@@ -41,6 +41,23 @@ function applyAdaptiveModelEnv(env, models) {
41
41
  if (defaultOpusModel) {
42
42
  env.ANTHROPIC_DEFAULT_OPUS_MODEL = defaultOpusModel;
43
43
  }
44
+ cleanAdaptiveModelEnv(env);
45
+ }
46
+ function cleanAdaptiveModelEnv(env) {
47
+ for (const key of MODEL_ENV_KEYS) {
48
+ const value = env[key];
49
+ if (typeof value === "string" && value.trim() === "") {
50
+ delete env[key];
51
+ }
52
+ }
53
+ }
54
+ function normalizeAdaptiveModelSettings(settings) {
55
+ if (settings.env) {
56
+ cleanAdaptiveModelEnv(settings.env);
57
+ }
58
+ if (settings.model === "default") {
59
+ delete settings.model;
60
+ }
44
61
  }
45
62
 
46
63
  function ensureClaudeDir() {
@@ -183,6 +200,7 @@ function updateCustomModel(primaryModel, haikuModel, sonnetModel, opusModel) {
183
200
  defaultSonnetModel: sonnetModel,
184
201
  defaultOpusModel: opusModel
185
202
  });
203
+ normalizeAdaptiveModelSettings(settings);
186
204
  writeJsonConfig(SETTINGS_FILE, settings);
187
205
  }
188
206
  function updateDefaultModel(model) {
@@ -202,6 +220,7 @@ function updateDefaultModel(model) {
202
220
  } else {
203
221
  settings.model = model;
204
222
  }
223
+ normalizeAdaptiveModelSettings(settings);
205
224
  writeJsonConfig(SETTINGS_FILE, settings);
206
225
  }
207
226
  function mergeSettingsFile(templatePath, targetPath) {
@@ -416,4 +435,4 @@ const config = {
416
435
  updateDefaultModel: updateDefaultModel
417
436
  };
418
437
 
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 };
438
+ 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, normalizeAdaptiveModelSettings as n, promptApiConfigurationAction as p, switchToOfficialLogin as s, updateCustomModel as u };
@@ -18,7 +18,7 @@ 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
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';
21
+ import { n as needsMigration, m as migrateSettingsForTokenRetrieval, d as displayMigrationResult, p as promptMigration } from '../shared/ccjk.DwbhKZGA.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';
@@ -2,7 +2,7 @@ import a from './index2.mjs';
2
2
  import { g as getMcpServices } from './codex.mjs';
3
3
  import { i18n } from './index5.mjs';
4
4
  import { r as readMcpConfig } from './claude-config.mjs';
5
- import { i as installMcpService, u as uninstallMcpService } from '../shared/ccjk.KpFl2RDA.mjs';
5
+ import { i as installMcpService, u as uninstallMcpService } from '../shared/ccjk.BHBpQsHd.mjs';
6
6
  import '../shared/ccjk.BAGoDD49.mjs';
7
7
  import 'node:process';
8
8
  import 'node:url';
@@ -6,7 +6,7 @@ import { M as MCP_SERVICE_TIERS, i as isCoreService, g as getServicesByTier, c a
6
6
  import { r as readMcpConfig, c as backupMcpConfig, w as writeMcpConfig } from './claude-config.mjs';
7
7
  import { i as inquirer } from './index3.mjs';
8
8
  import { M as MCP_SERVICE_CONFIGS } from './codex.mjs';
9
- import { d as displayInstalledMcpServices, b as isMcpServiceInstalled, i as installMcpService, u as uninstallMcpService } from '../shared/ccjk.KpFl2RDA.mjs';
9
+ import { d as displayInstalledMcpServices, b as isMcpServiceInstalled, i as installMcpService, u as uninstallMcpService } from '../shared/ccjk.BHBpQsHd.mjs';
10
10
  import { existsSync, unlinkSync, statSync, mkdirSync, readFileSync } from 'node:fs';
11
11
  import { homedir } from 'node:os';
12
12
  import { writeFileAtomic } from './fs-operations.mjs';
@@ -55,7 +55,7 @@ import './init.mjs';
55
55
  import '../shared/ccjk.CvIIxgUS.mjs';
56
56
  import './auto-updater.mjs';
57
57
  import './version-checker.mjs';
58
- import '../shared/ccjk.D9VwKRaD.mjs';
58
+ import '../shared/ccjk.DwbhKZGA.mjs';
59
59
  import './claude-code-config-manager.mjs';
60
60
  import './installer.mjs';
61
61
  import '../shared/ccjk._dESH4Rk.mjs';
@@ -78,7 +78,7 @@ import './uninstall.mjs';
78
78
  import '../shared/ccjk.CvChMYvB.mjs';
79
79
  import 'globby';
80
80
  import './update.mjs';
81
- import '../shared/ccjk.KpFl2RDA.mjs';
81
+ import '../shared/ccjk.BHBpQsHd.mjs';
82
82
 
83
83
  function renderMenuHeader(context, _isZh) {
84
84
  const title = context.breadcrumb.join(i18n.t("menu:menu.breadcrumb.separator"));
@@ -1,3 +1,3 @@
1
- const version = "13.3.9";
1
+ const version = "13.3.10";
2
2
 
3
3
  export { version };
@@ -53,7 +53,7 @@ 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';
56
+ import '../shared/ccjk.DwbhKZGA.mjs';
57
57
  import './claude-code-config-manager.mjs';
58
58
  import '../shared/ccjk.BIxuVL3_.mjs';
59
59
  import './installer.mjs';
@@ -8,10 +8,10 @@ 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';
11
+ import { n as needsMigration, m as migrateSettingsForTokenRetrieval, d as displayMigrationResult, p as promptMigration } from '../shared/ccjk.DwbhKZGA.mjs';
12
12
  import { u as updatePromptOnly, s as selectAndInstallWorkflows } from '../shared/ccjk.CvIIxgUS.mjs';
13
13
  import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.BIxuVL3_.mjs';
14
- import { a as installMcpServices } from '../shared/ccjk.KpFl2RDA.mjs';
14
+ import { a as installMcpServices } from '../shared/ccjk.BHBpQsHd.mjs';
15
15
  import { resolveAiOutputLanguage } from './prompts.mjs';
16
16
  import { g as getRuntimeVersion } from '../shared/ccjk.gDEDGD_t.mjs';
17
17
  import { checkClaudeCodeVersionAndPrompt } from './version-checker.mjs';
@@ -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": "读取、写入和管理本地文件系统中的文件和目录",
@@ -4,6 +4,7 @@ import { h as getMcpService, i as dynamicMcpRegistry, a as readCodexConfig, j as
4
4
  import { SETTINGS_FILE, CLAUDE_DIR, ClAUDE_CONFIG_FILE, CODEX_CONFIG_FILE } from '../chunks/constants.mjs';
5
5
  import { exists, ensureDir } from '../chunks/fs-operations.mjs';
6
6
  import { readJsonConfig, writeJsonConfig } from '../chunks/json-config.mjs';
7
+ import { n as normalizeAdaptiveModelSettings } from '../chunks/config.mjs';
7
8
  import { d as deepMerge, r as readMcpConfig, b as buildMcpServerConfig, w as writeMcpConfig } from '../chunks/claude-config.mjs';
8
9
  import { ensureI18nInitialized, i18n } from '../chunks/index5.mjs';
9
10
  import { k as isWindows, l as getSystemRoot } from '../chunks/platform.mjs';
@@ -22,6 +23,7 @@ function readClaudeConfig(configPath = SETTINGS_FILE) {
22
23
  function writeClaudeConfig(config, options = {}, configPath = SETTINGS_FILE) {
23
24
  try {
24
25
  ensureDir(CLAUDE_DIR);
26
+ normalizeAdaptiveModelSettings(config);
25
27
  writeJsonConfig(configPath, config, {
26
28
  atomic: options.atomic !== false,
27
29
  pretty: true,
@@ -2,7 +2,7 @@ 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
4
  import { ClaudeCodeConfigManager } from '../chunks/claude-code-config-manager.mjs';
5
- import { b as backupExistingConfig } from '../chunks/config.mjs';
5
+ import { n as normalizeAdaptiveModelSettings, b as backupExistingConfig } from '../chunks/config.mjs';
6
6
  import { exists } from '../chunks/fs-operations.mjs';
7
7
  import { readJsonConfig, writeJsonConfig } from '../chunks/json-config.mjs';
8
8
 
@@ -25,6 +25,23 @@ function migrateSettingsForTokenRetrieval() {
25
25
  return result;
26
26
  }
27
27
  let modified = false;
28
+ const hadDefaultModelSentinel = settings.model === "default";
29
+ const hadEmptyModelEnv = Boolean(settings.env && [
30
+ settings.env.ANTHROPIC_MODEL,
31
+ settings.env.ANTHROPIC_SMALL_FAST_MODEL,
32
+ settings.env.ANTHROPIC_DEFAULT_HAIKU_MODEL,
33
+ settings.env.ANTHROPIC_DEFAULT_SONNET_MODEL,
34
+ settings.env.ANTHROPIC_DEFAULT_OPUS_MODEL
35
+ ].some((value) => typeof value === "string" && value.trim() === ""));
36
+ normalizeAdaptiveModelSettings(settings);
37
+ if (hadDefaultModelSentinel) {
38
+ result.changes.push('Removed stale settings.model = "default" sentinel so Claude Code falls back to native auto-selection');
39
+ modified = true;
40
+ }
41
+ if (hadEmptyModelEnv) {
42
+ result.changes.push("Removed empty model environment variables left by the template/config merge path");
43
+ modified = true;
44
+ }
28
45
  if (settings.env) {
29
46
  if ("CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC" in settings.env) {
30
47
  delete settings.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC;
@@ -1,11 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
3
3
  "description": "CCJK settings template — auto-migrated on upgrade",
4
- "model": "default",
5
4
  "env": {
6
- "ANTHROPIC_DEFAULT_HAIKU_MODEL": "",
7
- "ANTHROPIC_DEFAULT_SONNET_MODEL": "",
8
- "ANTHROPIC_DEFAULT_OPUS_MODEL": "",
9
5
  "CCJK_CONTEXT_OPTIMIZATION": "true",
10
6
  "CCJK_TOOL_COMPRESSION": "true"
11
7
  },
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.10",
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"
@@ -1,11 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
3
3
  "description": "CCJK settings template — auto-migrated on upgrade",
4
- "model": "default",
5
4
  "env": {
6
- "ANTHROPIC_DEFAULT_HAIKU_MODEL": "",
7
- "ANTHROPIC_DEFAULT_SONNET_MODEL": "",
8
- "ANTHROPIC_DEFAULT_OPUS_MODEL": "",
9
5
  "CCJK_CONTEXT_OPTIMIZATION": "true",
10
6
  "CCJK_TOOL_COMPRESSION": "true"
11
7
  },