ccjk 10.1.0 → 10.2.0

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 (109) hide show
  1. package/dist/chunks/agent-teams.mjs +1 -1
  2. package/dist/chunks/agent.mjs +1 -1
  3. package/dist/chunks/api-providers.mjs +1 -1
  4. package/dist/chunks/api.mjs +3 -3
  5. package/dist/chunks/auto-bootstrap.mjs +1 -1
  6. package/dist/chunks/auto-updater.mjs +1 -1
  7. package/dist/{shared/ccjk.Br91zBIG.mjs → chunks/banner.mjs} +52 -3
  8. package/dist/chunks/boost.mjs +2 -2
  9. package/dist/chunks/ccjk-agents.mjs +1 -1
  10. package/dist/chunks/ccjk-all.mjs +1 -1
  11. package/dist/chunks/ccjk-config.mjs +1 -1
  12. package/dist/chunks/ccjk-hooks.mjs +1 -1
  13. package/dist/chunks/ccjk-mcp.mjs +2 -2
  14. package/dist/chunks/ccjk-setup.mjs +1 -1
  15. package/dist/chunks/ccjk-skills.mjs +1 -1
  16. package/dist/chunks/ccr.mjs +10 -10
  17. package/dist/chunks/ccu.mjs +1 -1
  18. package/dist/chunks/check-updates.mjs +3 -3
  19. package/dist/chunks/claude-code-config-manager.mjs +7 -7
  20. package/dist/chunks/claude-code-incremental-manager.mjs +2 -2
  21. package/dist/chunks/claude-config.mjs +3 -3
  22. package/dist/chunks/claude-wrapper.mjs +2 -2
  23. package/dist/chunks/codex-config-switch.mjs +2 -2
  24. package/dist/chunks/codex-provider-manager.mjs +2 -2
  25. package/dist/chunks/codex-uninstaller.mjs +2 -2
  26. package/dist/chunks/codex.mjs +5 -5
  27. package/dist/chunks/commands.mjs +88 -391
  28. package/dist/chunks/commands2.mjs +391 -88
  29. package/dist/chunks/completion.mjs +1 -1
  30. package/dist/chunks/config-consolidator.mjs +2 -2
  31. package/dist/chunks/config-switch.mjs +3 -3
  32. package/dist/chunks/config.mjs +5 -5
  33. package/dist/chunks/config2.mjs +410 -400
  34. package/dist/chunks/config3.mjs +400 -410
  35. package/dist/chunks/constants.mjs +1 -1
  36. package/dist/chunks/context.mjs +283 -1
  37. package/dist/chunks/dashboard.mjs +365 -0
  38. package/dist/chunks/doctor.mjs +4 -4
  39. package/dist/chunks/features.mjs +11 -11
  40. package/dist/chunks/fs-operations.mjs +1 -1
  41. package/dist/chunks/health-alerts.mjs +304 -0
  42. package/dist/chunks/health-check.mjs +532 -0
  43. package/dist/chunks/index.mjs +10 -177
  44. package/dist/chunks/index2.mjs +168 -1162
  45. package/dist/chunks/index3.mjs +1076 -910
  46. package/dist/chunks/index4.mjs +947 -137
  47. package/dist/chunks/index5.mjs +167 -635
  48. package/dist/chunks/index6.mjs +663 -0
  49. package/dist/chunks/init.mjs +19 -19
  50. package/dist/chunks/installer.mjs +649 -147
  51. package/dist/chunks/installer2.mjs +147 -649
  52. package/dist/chunks/interview.mjs +2 -2
  53. package/dist/chunks/marketplace.mjs +1 -1
  54. package/dist/chunks/mcp.mjs +4 -4
  55. package/dist/chunks/menu.mjs +16 -9
  56. package/dist/chunks/metrics-display.mjs +152 -0
  57. package/dist/chunks/migrator.mjs +1 -1
  58. package/dist/chunks/monitor.mjs +2 -2
  59. package/dist/chunks/notification.mjs +1 -1
  60. package/dist/chunks/onboarding.mjs +2 -2
  61. package/dist/chunks/package.mjs +1 -1
  62. package/dist/chunks/permission-manager.mjs +2 -2
  63. package/dist/chunks/permissions.mjs +1 -1
  64. package/dist/chunks/persistence-manager.mjs +781 -0
  65. package/dist/chunks/persistence.mjs +667 -0
  66. package/dist/chunks/platform.mjs +1 -1
  67. package/dist/chunks/plugin.mjs +1 -1
  68. package/dist/chunks/prompts.mjs +1 -1
  69. package/dist/chunks/providers.mjs +1 -1
  70. package/dist/chunks/quick-actions.mjs +321 -0
  71. package/dist/chunks/quick-setup.mjs +8 -8
  72. package/dist/chunks/silent-updater.mjs +1 -1
  73. package/dist/chunks/simple-config.mjs +2 -2
  74. package/dist/chunks/skill.mjs +1 -1
  75. package/dist/chunks/skills-sync.mjs +1 -1
  76. package/dist/chunks/skills.mjs +1 -1
  77. package/dist/chunks/slash-commands.mjs +208 -0
  78. package/dist/chunks/smart-defaults.mjs +1 -1
  79. package/dist/chunks/startup.mjs +1 -1
  80. package/dist/chunks/stats.mjs +1 -1
  81. package/dist/chunks/status.mjs +31 -2
  82. package/dist/chunks/team.mjs +1 -1
  83. package/dist/chunks/thinking.mjs +2 -2
  84. package/dist/chunks/uninstall.mjs +5 -5
  85. package/dist/chunks/update.mjs +7 -7
  86. package/dist/chunks/upgrade-manager.mjs +2 -2
  87. package/dist/chunks/version-checker.mjs +3 -3
  88. package/dist/chunks/vim.mjs +1 -1
  89. package/dist/cli.mjs +191 -21
  90. package/dist/i18n/locales/en/cli.json +14 -1
  91. package/dist/i18n/locales/en/common.json +27 -0
  92. package/dist/i18n/locales/en/context.json +54 -1
  93. package/dist/i18n/locales/en/dashboard.json +78 -0
  94. package/dist/i18n/locales/en/persistence.json +127 -0
  95. package/dist/i18n/locales/en/quick-actions.json +78 -0
  96. package/dist/i18n/locales/zh-CN/cli.json +14 -1
  97. package/dist/i18n/locales/zh-CN/common.json +27 -0
  98. package/dist/i18n/locales/zh-CN/context.json +54 -1
  99. package/dist/i18n/locales/zh-CN/dashboard.json +78 -0
  100. package/dist/i18n/locales/zh-CN/persistence.json +127 -0
  101. package/dist/i18n/locales/zh-CN/quick-actions.json +78 -0
  102. package/dist/index.mjs +2 -2
  103. package/dist/shared/{ccjk.DE91nClQ.mjs → ccjk.BKoi8-Hy.mjs} +1 -1
  104. package/dist/shared/{ccjk.Dpw86UX0.mjs → ccjk.CxtuJxaS.mjs} +1 -1
  105. package/dist/shared/{ccjk.ClzTOz9n.mjs → ccjk.DB2UYcq0.mjs} +5 -5
  106. package/dist/shared/{ccjk.Bndhan7G.mjs → ccjk.DfwJOEok.mjs} +1 -1
  107. package/dist/shared/{ccjk.DvIrK0wz.mjs → ccjk.DrMygfCF.mjs} +1 -1
  108. package/dist/shared/{ccjk.CmsW23FN.mjs → ccjk.IbImMVWM.mjs} +3 -3
  109. package/package.json +19 -19
@@ -0,0 +1,78 @@
1
+ {
2
+ "morning": {
3
+ "title": "早上好!这是您的 CCJK 状态:",
4
+ "healthScore": "健康评分:",
5
+ "totalSaved": "总节省:",
6
+ "costSavings": "成本节省:",
7
+ "last24h": "最近 24 小时:",
8
+ "streak": "连续天数:",
9
+ "recommendations": "主要建议:",
10
+ "compressions": "次压缩",
11
+ "saved": "已节省",
12
+ "day": "天",
13
+ "days": "天"
14
+ },
15
+ "review": {
16
+ "title": "每日回顾",
17
+ "overallStats": "总体统计",
18
+ "totalCompressions": "总压缩次数:",
19
+ "totalSaved": "总节省:",
20
+ "avgReduction": "平均压缩率:",
21
+ "costSavings": "成本节省:",
22
+ "last24Hours": "最近 24 小时",
23
+ "last7Days": "最近 7 天",
24
+ "last30Days": "最近 30 天",
25
+ "compressions": "压缩次数:",
26
+ "tokensSaved": "节省 Token:",
27
+ "yourHabits": "您的习惯",
28
+ "totalCommands": "总命令数:",
29
+ "currentStreak": "当前连续:",
30
+ "longestStreak": "最长连续:",
31
+ "daysActive": "活跃天数:",
32
+ "day": "天",
33
+ "days": "天"
34
+ },
35
+ "cleanup": {
36
+ "title": "数据库清理",
37
+ "sizeBefore": "清理前数据库大小:",
38
+ "totalContexts": "总上下文数:",
39
+ "deleted": "已删除",
40
+ "oldContext": "个旧上下文",
41
+ "oldContexts": "个旧上下文",
42
+ "oldMetric": "个旧指标",
43
+ "oldMetrics": "个旧指标",
44
+ "runningVacuum": "正在运行 VACUUM...",
45
+ "vacuumComplete": "VACUUM 完成",
46
+ "sizeAfter": "清理后数据库大小:",
47
+ "spaceReclaimed": "回收空间:",
48
+ "cleanupComplete": "清理完成!",
49
+ "tip": "提示:每周运行清理以保持数据库健康"
50
+ },
51
+ "motivational": {
52
+ "streakFire": "{{streak}} 天连续!你太棒了!",
53
+ "streakKeep": "{{streak}} 天连续!继续保持!",
54
+ "streakNew": "新的连续开始了!明天再来!",
55
+ "costSavingsHigh": "本周您已节省 ${{amount}}!",
56
+ "costSavingsMedium": "本周节省 ${{amount}}!",
57
+ "tokensSavedHigh": "已节省 {{tokens}} 个 token!",
58
+ "tokensSavedMedium": "已节省 {{tokens}} 个 token!",
59
+ "milestone10": "10 次命令里程碑!您正在掌握它!",
60
+ "milestone50": "50 次命令里程碑!您是高级用户!",
61
+ "milestone100": "100 次命令里程碑!您是 CCJK 大师!",
62
+ "longestStreakLegendary": "最长连续:{{streak}} 天!传奇!",
63
+ "longestStreakGood": "最长连续:{{streak}} 天!"
64
+ },
65
+ "suggestions": {
66
+ "cleanup": "提示:每周运行 {{command}} 以保持数据库健康",
67
+ "review": "提示:运行 {{command}} 查看每日统计",
68
+ "commit": "提示:尝试 {{command}} 进行智能提交并查看压缩统计",
69
+ "morning": "提示:{{command}} 为您提供快速健康检查",
70
+ "reviewStats": "提示:{{command}} 显示您的 token 节省情况",
71
+ "cleanupOptimize": "提示:{{command}} 保持数据库优化"
72
+ },
73
+ "errors": {
74
+ "morningFailed": "运行 morning 命令时出错:",
75
+ "reviewFailed": "运行 review 命令时出错:",
76
+ "cleanupFailed": "运行 cleanup 命令时出错:"
77
+ }
78
+ }
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import { promisify } from 'node:util';
7
7
  import ansis from 'ansis';
8
8
  import { version } from './chunks/package.mjs';
9
9
  import { join as join$1 } from 'pathe';
10
- export { c as config } from './chunks/config.mjs';
10
+ export { j as config } from './chunks/config.mjs';
11
11
  export { e as extractDisplayName, a as extractString, i as i18nHelpers, n as normalizeRecommendation, b as normalizeRecommendations } from './shared/ccjk.AqnXPAzw.mjs';
12
12
  export { p as platform } from './chunks/platform.mjs';
13
13
  import { Transform } from 'node:stream';
@@ -16,7 +16,7 @@ import 'node:url';
16
16
  import 'dayjs';
17
17
  import 'inquirer';
18
18
  import './chunks/constants.mjs';
19
- import './chunks/index.mjs';
19
+ import './chunks/index2.mjs';
20
20
  import 'node:process';
21
21
  import 'i18next';
22
22
  import 'i18next-fs-backend';
@@ -4,7 +4,7 @@ import { readFile } from 'node:fs/promises';
4
4
  import { homedir } from 'node:os';
5
5
  import { promisify } from 'node:util';
6
6
  import { join } from 'pathe';
7
- import { i18n } from '../chunks/index.mjs';
7
+ import { i18n } from '../chunks/index2.mjs';
8
8
 
9
9
  const execAsync = promisify(exec);
10
10
  function getClaudePluginDir() {
@@ -1,6 +1,6 @@
1
1
  import { detectCodeToolType } from '../chunks/smart-defaults.mjs';
2
2
  import { DEFAULT_CODE_TOOL_TYPE } from '../chunks/constants.mjs';
3
- import { i18n } from '../chunks/index.mjs';
3
+ import { i18n } from '../chunks/index2.mjs';
4
4
  import { readZcfConfigAsync } from '../chunks/ccjk-config.mjs';
5
5
 
6
6
  const CODE_TYPE_ABBREVIATIONS = {
@@ -1,13 +1,13 @@
1
1
  import ansis from 'ansis';
2
2
  import inquirer from 'inquirer';
3
- import { b as getMcpService, d as dynamicMcpRegistry, c as readCodexConfig, e as applyCodexPlatformCommand, w as writeCodexConfig, M as MCP_SERVICE_CONFIGS } from '../chunks/codex.mjs';
3
+ import { i as getMcpService, j as dynamicMcpRegistry, a as readCodexConfig, k as applyCodexPlatformCommand, w as writeCodexConfig, M as MCP_SERVICE_CONFIGS } from '../chunks/codex.mjs';
4
4
  import 'pathe';
5
5
  import { SETTINGS_FILE, CLAUDE_DIR, ClAUDE_CONFIG_FILE, CODEX_CONFIG_FILE } from '../chunks/constants.mjs';
6
6
  import { exists, ensureDir } from '../chunks/fs-operations.mjs';
7
7
  import { readJsonConfig, writeJsonConfig } from '../chunks/json-config.mjs';
8
- import { g as deepMerge, r as readMcpConfig, c as buildMcpServerConfig, w as writeMcpConfig } from '../chunks/claude-config.mjs';
9
- import { ensureI18nInitialized, i18n } from '../chunks/index.mjs';
10
- import { i as isWindows, g as getSystemRoot } from '../chunks/platform.mjs';
8
+ import { d as deepMerge, r as readMcpConfig, a as buildMcpServerConfig, w as writeMcpConfig } from '../chunks/claude-config.mjs';
9
+ import { ensureI18nInitialized, i18n } from '../chunks/index2.mjs';
10
+ import { i as isWindows, l as getSystemRoot } from '../chunks/platform.mjs';
11
11
 
12
12
  function readClaudeConfig(configPath = SETTINGS_FILE) {
13
13
  try {
@@ -349,4 +349,4 @@ async function removeAuthorizeMcpService(serviceId) {
349
349
  }
350
350
  }
351
351
 
352
- export { installMcpService as a, installMcpServices as b, displayInstalledMcpServices as d, isMcpServiceInstalled as i, uninstallMcpService as u };
352
+ export { isMcpServiceInstalled as a, installMcpService as b, displayInstalledMcpServices as d, installMcpServices as i, uninstallMcpService as u };
@@ -368,7 +368,7 @@ function mapCategory(name) {
368
368
  return "general";
369
369
  }
370
370
  async function runHealthCheck(checks) {
371
- const activeChecks = DEFAULT_CHECKS;
371
+ const activeChecks = checks || DEFAULT_CHECKS;
372
372
  const results = [];
373
373
  const promises = activeChecks.map(async (check) => {
374
374
  try {
@@ -1,6 +1,6 @@
1
1
  import process__default from 'node:process';
2
2
  import ansis from 'ansis';
3
- import { ensureI18nInitialized, i18n } from '../chunks/index.mjs';
3
+ import { ensureI18nInitialized, i18n } from '../chunks/index2.mjs';
4
4
 
5
5
  function handleExitPromptError(error) {
6
6
  const isExitError = error instanceof Error && (error.name === "ExitPromptError" || error.message?.includes("ExitPromptError") || error.message?.includes("User force closed the prompt"));
@@ -1,8 +1,8 @@
1
1
  import ansis from 'ansis';
2
2
  import inquirer from 'inquirer';
3
3
  import { CLAUDE_DIR, SETTINGS_FILE } from '../chunks/constants.mjs';
4
- import { ensureI18nInitialized, i18n } from '../chunks/index.mjs';
5
- import { m as mergeAndCleanPermissions, g as getExistingApiConfig, f as configureApi, s as switchToOfficialLogin, b as backupExistingConfig, d as applyAiLanguageDirective } from '../chunks/config.mjs';
4
+ import { ensureI18nInitialized, i18n } from '../chunks/index2.mjs';
5
+ import { m as mergeAndCleanPermissions, e as getExistingApiConfig, f as configureApi, s as switchToOfficialLogin, b as backupExistingConfig, a as applyAiLanguageDirective } from '../chunks/config.mjs';
6
6
  import { fileURLToPath } from 'node:url';
7
7
  import { join, dirname } from 'pathe';
8
8
  import { updateZcfConfig } from '../chunks/ccjk-config.mjs';
@@ -1047,4 +1047,4 @@ async function cleanupOldVersionFiles() {
1047
1047
  }
1048
1048
  }
1049
1049
 
1050
- export { WORKFLOW_CONFIG_BASE as W, migrateSettingsForTokenRetrieval as a, configureOutputStyle as b, configureApiCompletely as c, displayMigrationResult as d, formatApiKeyDisplay as f, modifyApiConfigPartially as m, needsMigration as n, promptMigration as p, selectAndInstallWorkflows as s, updatePromptOnly as u, validateApiKey as v };
1050
+ export { WORKFLOW_CONFIG_BASE as W, modifyApiConfigPartially as a, configureApiCompletely as b, configureOutputStyle as c, displayMigrationResult as d, formatApiKeyDisplay as f, migrateSettingsForTokenRetrieval as m, needsMigration as n, promptMigration as p, selectAndInstallWorkflows as s, updatePromptOnly as u, validateApiKey as v };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ccjk",
3
3
  "type": "module",
4
- "version": "10.1.0",
4
+ "version": "10.2.0",
5
5
  "packageManager": "pnpm@10.17.1",
6
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.",
7
7
  "author": {
@@ -138,36 +138,36 @@
138
138
  },
139
139
  "dependencies": {
140
140
  "@anthropic-ai/sdk": "^0.52.0",
141
- "ansis": "^4.1.0",
141
+ "ansis": "^4.2.0",
142
142
  "better-sqlite3": "^12.6.2",
143
143
  "cac": "^6.7.14",
144
144
  "chokidar": "^4.0.3",
145
145
  "consola": "^3.4.2",
146
- "dayjs": "^1.11.18",
146
+ "dayjs": "^1.11.19",
147
147
  "fdir": "^6.5.0",
148
148
  "find-up-simple": "^1.0.1",
149
- "fs-extra": "^11.3.2",
149
+ "fs-extra": "^11.3.3",
150
150
  "glob": "^11.0.3",
151
151
  "gray-matter": "^4.0.3",
152
152
  "handlebars": "^4.7.8",
153
- "i18next": "^25.5.2",
154
- "i18next-fs-backend": "^2.6.0",
153
+ "i18next": "^25.8.13",
154
+ "i18next-fs-backend": "^2.6.1",
155
155
  "inquirer": "^12.9.6",
156
156
  "inquirer-toggle": "^1.0.1",
157
- "ioredis": "^5.9.2",
157
+ "ioredis": "^5.9.3",
158
158
  "nanoid": "^5.1.6",
159
159
  "ofetch": "^1.5.1",
160
160
  "ohash": "^1.1.4",
161
- "ora": "^9.0.0",
161
+ "ora": "^9.3.0",
162
162
  "pathe": "^2.0.3",
163
- "semver": "^7.7.2",
164
- "smol-toml": "^1.4.2",
165
- "tar": "^7.5.2",
166
- "tinyexec": "^1.0.1",
163
+ "semver": "^7.7.4",
164
+ "smol-toml": "^1.6.0",
165
+ "tar": "^7.5.9",
166
+ "tinyexec": "^1.0.2",
167
167
  "tinyglobby": "^0.2.15",
168
- "trash": "^10.0.0",
168
+ "trash": "^10.1.0",
169
169
  "uuid": "^11.1.0",
170
- "web-tree-sitter": "^0.26.3"
170
+ "web-tree-sitter": "^0.26.5"
171
171
  },
172
172
  "devDependencies": {
173
173
  "@antfu/eslint-config": "^5.4.1",
@@ -183,12 +183,12 @@
183
183
  "@vitest/ui": "^3.2.4",
184
184
  "concurrently": "^9.2.1",
185
185
  "eslint": "^9.36.0",
186
- "eslint-plugin-format": "^1.0.2",
186
+ "eslint-plugin-format": "^1.4.0",
187
187
  "husky": "^9.1.7",
188
- "lint-staged": "^16.2.0",
189
- "prettier": "^3.0.0",
190
- "tsx": "^4.20.5",
191
- "typescript": "^5.9.2",
188
+ "lint-staged": "^16.2.7",
189
+ "prettier": "^3.8.1",
190
+ "tsx": "^4.21.0",
191
+ "typescript": "^5.9.3",
192
192
  "unbuild": "^3.6.1",
193
193
  "vitest": "^3.2.4"
194
194
  }