ccjk 10.0.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.
- package/dist/chunks/agent-teams.mjs +1 -1
- package/dist/chunks/agent.mjs +1 -1
- package/dist/chunks/agents.mjs +1 -1
- package/dist/chunks/api-providers.mjs +1 -1
- package/dist/chunks/api.mjs +3 -3
- package/dist/chunks/auto-bootstrap.mjs +1 -1
- package/dist/chunks/auto-updater.mjs +1 -1
- package/dist/{shared/ccjk.Br91zBIG.mjs → chunks/banner.mjs} +52 -3
- package/dist/chunks/boost.mjs +2 -2
- package/dist/chunks/ccjk-agents.mjs +1 -1
- package/dist/chunks/ccjk-all.mjs +1 -1
- package/dist/chunks/ccjk-config.mjs +1 -1
- package/dist/chunks/ccjk-hooks.mjs +1 -1
- package/dist/chunks/ccjk-mcp.mjs +2 -2
- package/dist/chunks/ccjk-setup.mjs +1 -1
- package/dist/chunks/ccjk-skills.mjs +1 -1
- package/dist/chunks/ccr.mjs +10 -10
- package/dist/chunks/ccu.mjs +1 -1
- package/dist/chunks/check-updates.mjs +3 -3
- package/dist/chunks/claude-code-config-manager.mjs +7 -7
- package/dist/chunks/claude-code-incremental-manager.mjs +2 -2
- package/dist/chunks/claude-config.mjs +3 -3
- package/dist/chunks/claude-wrapper.mjs +2 -2
- package/dist/chunks/codex-config-switch.mjs +2 -2
- package/dist/chunks/codex-provider-manager.mjs +2 -2
- package/dist/chunks/codex-uninstaller.mjs +2 -2
- package/dist/chunks/codex.mjs +5 -5
- package/dist/chunks/commands.mjs +88 -391
- package/dist/chunks/commands2.mjs +391 -88
- package/dist/chunks/completion.mjs +1 -1
- package/dist/chunks/config-consolidator.mjs +2 -2
- package/dist/chunks/config-switch.mjs +3 -3
- package/dist/chunks/config.mjs +5 -5
- package/dist/chunks/config2.mjs +410 -400
- package/dist/chunks/config3.mjs +400 -410
- package/dist/chunks/constants.mjs +1 -1
- package/dist/chunks/context.mjs +283 -1
- package/dist/chunks/dashboard.mjs +365 -0
- package/dist/chunks/doctor.mjs +4 -4
- package/dist/chunks/features.mjs +11 -11
- package/dist/chunks/fs-operations.mjs +1 -1
- package/dist/chunks/health-alerts.mjs +304 -0
- package/dist/chunks/health-check.mjs +532 -0
- package/dist/chunks/index.mjs +10 -177
- package/dist/chunks/index2.mjs +168 -1162
- package/dist/chunks/index3.mjs +1076 -910
- package/dist/chunks/index4.mjs +947 -137
- package/dist/chunks/index5.mjs +167 -635
- package/dist/chunks/index6.mjs +663 -0
- package/dist/chunks/init.mjs +19 -19
- package/dist/chunks/installer.mjs +649 -147
- package/dist/chunks/installer2.mjs +147 -649
- package/dist/chunks/interview.mjs +2 -2
- package/dist/chunks/marketplace.mjs +1 -1
- package/dist/chunks/mcp.mjs +4 -4
- package/dist/chunks/menu.mjs +16 -9
- package/dist/chunks/metrics-display.mjs +152 -0
- package/dist/chunks/migrator.mjs +1 -1
- package/dist/chunks/monitor.mjs +2 -2
- package/dist/chunks/notification.mjs +1 -1
- package/dist/chunks/onboarding.mjs +2 -2
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/permission-manager.mjs +2 -2
- package/dist/chunks/permissions.mjs +1 -1
- package/dist/chunks/persistence-manager.mjs +781 -0
- package/dist/chunks/persistence.mjs +667 -0
- package/dist/chunks/platform.mjs +1 -1
- package/dist/chunks/plugin.mjs +1 -1
- package/dist/chunks/prompts.mjs +1 -1
- package/dist/chunks/providers.mjs +1 -1
- package/dist/chunks/quick-actions.mjs +321 -0
- package/dist/chunks/quick-setup.mjs +8 -8
- package/dist/chunks/sessions.mjs +1 -1
- package/dist/chunks/silent-updater.mjs +1 -1
- package/dist/chunks/simple-config.mjs +2 -2
- package/dist/chunks/skill.mjs +1 -1
- package/dist/chunks/skills-sync.mjs +1 -1
- package/dist/chunks/skills.mjs +1 -1
- package/dist/chunks/slash-commands.mjs +208 -0
- package/dist/chunks/smart-defaults.mjs +1 -1
- package/dist/chunks/startup.mjs +1 -1
- package/dist/chunks/stats.mjs +1 -1
- package/dist/chunks/status.mjs +31 -2
- package/dist/chunks/team.mjs +1 -1
- package/dist/chunks/thinking.mjs +2 -2
- package/dist/chunks/uninstall.mjs +5 -5
- package/dist/chunks/update.mjs +7 -7
- package/dist/chunks/upgrade-manager.mjs +2 -2
- package/dist/chunks/version-checker.mjs +3 -3
- package/dist/chunks/vim.mjs +1 -1
- package/dist/cli.mjs +191 -21
- package/dist/i18n/locales/en/cli.json +14 -1
- package/dist/i18n/locales/en/common.json +27 -0
- package/dist/i18n/locales/en/context.json +54 -1
- package/dist/i18n/locales/en/dashboard.json +78 -0
- package/dist/i18n/locales/en/persistence.json +127 -0
- package/dist/i18n/locales/en/quick-actions.json +78 -0
- package/dist/i18n/locales/zh-CN/cli.json +14 -1
- package/dist/i18n/locales/zh-CN/common.json +27 -0
- package/dist/i18n/locales/zh-CN/context.json +54 -1
- package/dist/i18n/locales/zh-CN/dashboard.json +78 -0
- package/dist/i18n/locales/zh-CN/persistence.json +127 -0
- package/dist/i18n/locales/zh-CN/quick-actions.json +78 -0
- package/dist/index.mjs +2 -2
- package/dist/shared/{ccjk.DE91nClQ.mjs → ccjk.BKoi8-Hy.mjs} +1 -1
- package/dist/shared/{ccjk.Dpw86UX0.mjs → ccjk.CxtuJxaS.mjs} +1 -1
- package/dist/shared/{ccjk.ClzTOz9n.mjs → ccjk.DB2UYcq0.mjs} +5 -5
- package/dist/shared/{ccjk.Bndhan7G.mjs → ccjk.DfwJOEok.mjs} +1 -1
- package/dist/shared/{ccjk.DvIrK0wz.mjs → ccjk.DrMygfCF.mjs} +1 -1
- package/dist/shared/ccjk.DtMBiwVG.mjs +599 -0
- package/dist/shared/{ccjk.CmsW23FN.mjs → ccjk.IbImMVWM.mjs} +3 -3
- package/package.json +19 -19
- package/dist/shared/ccjk.OYWY25_l.mjs +0 -239
|
@@ -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 {
|
|
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/
|
|
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/
|
|
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/
|
|
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 {
|
|
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 {
|
|
9
|
-
import { ensureI18nInitialized, i18n } from '../chunks/
|
|
10
|
-
import { i as isWindows,
|
|
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 {
|
|
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/
|
|
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"));
|