ccjk 10.1.0 → 10.3.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/README.md +28 -0
- package/dist/chunks/agent-teams.mjs +1 -1
- package/dist/chunks/agent.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 +11 -10
- package/dist/chunks/ccu.mjs +1 -1
- package/dist/chunks/check-updates.mjs +4 -3
- package/dist/chunks/claude-code-config-manager.mjs +8 -7
- package/dist/chunks/claude-code-incremental-manager.mjs +3 -2
- package/dist/chunks/claude-config.mjs +3 -3
- package/dist/chunks/claude-wrapper.mjs +2 -2
- package/dist/chunks/codex-config-switch.mjs +3 -2
- package/dist/chunks/codex-provider-manager.mjs +3 -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 +4 -3
- package/dist/chunks/config.mjs +6 -98
- package/dist/chunks/config2.mjs +411 -400
- package/dist/chunks/config3.mjs +401 -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 +12 -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 +5 -4
- package/dist/chunks/menu.mjs +22 -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-provider.mjs +2 -0
- package/dist/chunks/quick-setup.mjs +9 -8
- package/dist/chunks/silent-updater.mjs +1 -1
- package/dist/chunks/simple-config.mjs +3 -8
- 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 +8 -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/chunks/zero-config.mjs +359 -0
- package/dist/cli.mjs +212 -21
- package/dist/i18n/locales/en/cli.json +14 -1
- package/dist/i18n/locales/en/common.json +27 -0
- package/dist/i18n/locales/en/configuration.json +33 -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/configuration.json +33 -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 +3 -2
- package/dist/shared/{ccjk.DE91nClQ.mjs → ccjk.BKoi8-Hy.mjs} +1 -1
- package/dist/shared/ccjk.BiCrMV5O.mjs +94 -0
- 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.CmsW23FN.mjs → ccjk.DVBW2wxp.mjs} +4 -3
- package/dist/shared/{ccjk.Bndhan7G.mjs → ccjk.DfwJOEok.mjs} +1 -1
- package/dist/shared/{ccjk.DvIrK0wz.mjs → ccjk.DrMygfCF.mjs} +1 -1
- package/package.json +19 -19
package/dist/chunks/index.mjs
CHANGED
|
@@ -1,177 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
// Agent Teams quick-enable
|
|
12
|
-
"agentBrowser",
|
|
13
|
-
// Agent Browser - AI browser automation
|
|
14
|
-
"common",
|
|
15
|
-
"api",
|
|
16
|
-
"ccr",
|
|
17
|
-
"ccjk",
|
|
18
|
-
// CCJK-specific translations
|
|
19
|
-
"ccjk-skills",
|
|
20
|
-
// CCJK Skills installation command
|
|
21
|
-
"ccjk-agents",
|
|
22
|
-
// CCJK Agents management command
|
|
23
|
-
"ccjk-all",
|
|
24
|
-
// CCJK All-in-one setup command
|
|
25
|
-
"cli",
|
|
26
|
-
"cloud-setup",
|
|
27
|
-
// Cloud-based setup wizard
|
|
28
|
-
"cloudPlugins",
|
|
29
|
-
// Cloud-based plugin system
|
|
30
|
-
"cometix",
|
|
31
|
-
"codex",
|
|
32
|
-
"configuration",
|
|
33
|
-
"context",
|
|
34
|
-
// Context compression system
|
|
35
|
-
"errors",
|
|
36
|
-
"hooks",
|
|
37
|
-
// Git hooks management
|
|
38
|
-
"hooksSync",
|
|
39
|
-
// Hooks cloud synchronization
|
|
40
|
-
"installation",
|
|
41
|
-
"interview",
|
|
42
|
-
// Interview-Driven Development
|
|
43
|
-
"language",
|
|
44
|
-
"lsp",
|
|
45
|
-
// Language Server Protocol (v3.8+)
|
|
46
|
-
"marketplace",
|
|
47
|
-
// Marketplace system for plugins, skills, and workflows
|
|
48
|
-
"mcp",
|
|
49
|
-
"menu",
|
|
50
|
-
"multi-config",
|
|
51
|
-
"notification",
|
|
52
|
-
// Task completion notifications
|
|
53
|
-
"permissions",
|
|
54
|
-
// Permission system for API providers, models, and tools
|
|
55
|
-
"plugins",
|
|
56
|
-
// Cloud plugins management
|
|
57
|
-
"registry",
|
|
58
|
-
// Version checking, China detection, and multiple installations
|
|
59
|
-
"sandbox",
|
|
60
|
-
// Sandbox mode for secure request/response handling
|
|
61
|
-
"setup",
|
|
62
|
-
// Setup wizard
|
|
63
|
-
"shencha",
|
|
64
|
-
"skills",
|
|
65
|
-
// Skills management system
|
|
66
|
-
"skillsSync",
|
|
67
|
-
// Skills cloud synchronization
|
|
68
|
-
"smartGuide",
|
|
69
|
-
// Smart Guide for quick actions
|
|
70
|
-
"stats",
|
|
71
|
-
// Usage statistics
|
|
72
|
-
"superpowers",
|
|
73
|
-
// Superpowers plugin integration
|
|
74
|
-
"team",
|
|
75
|
-
"thinking",
|
|
76
|
-
// Thinking mode for Claude Code CLI 2.0.67+
|
|
77
|
-
"tools",
|
|
78
|
-
"uninstall",
|
|
79
|
-
"updater",
|
|
80
|
-
"vim",
|
|
81
|
-
// Vim mode enhancement for Claude Code CLI 2.1.0+
|
|
82
|
-
"workflow",
|
|
83
|
-
"cloud-sync",
|
|
84
|
-
"workspace"
|
|
85
|
-
// Workspace diagnostics and guide
|
|
86
|
-
];
|
|
87
|
-
function ensureI18nInitialized() {
|
|
88
|
-
if (!i18n.isInitialized) {
|
|
89
|
-
throw new Error(
|
|
90
|
-
"i18n is not initialized. Please call initI18n() in CLI command before using utility functions."
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
async function initI18n(language = "zh-CN") {
|
|
95
|
-
if (i18n.isInitialized) {
|
|
96
|
-
if (i18n.language !== language) {
|
|
97
|
-
await i18n.changeLanguage(language);
|
|
98
|
-
}
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
await i18n.use(Backend).init({
|
|
102
|
-
lng: language,
|
|
103
|
-
fallbackLng: "en",
|
|
104
|
-
// Load all translations as a single flat structure
|
|
105
|
-
ns: NAMESPACES,
|
|
106
|
-
defaultNS: "common",
|
|
107
|
-
preload: [language],
|
|
108
|
-
// Preload the selected language
|
|
109
|
-
// Suppress i18next locize promotional banner in CLI output
|
|
110
|
-
partialBundledLanguages: true,
|
|
111
|
-
// Backend configuration for loading JSON files
|
|
112
|
-
backend: {
|
|
113
|
-
loadPath: (() => {
|
|
114
|
-
const currentDir = dirname(fileURLToPath(import.meta.url));
|
|
115
|
-
const packageRoot = (() => {
|
|
116
|
-
let dir = currentDir;
|
|
117
|
-
while (dir !== dirname(dir)) {
|
|
118
|
-
if (existsSync(join(dir, "package.json"))) {
|
|
119
|
-
return dir;
|
|
120
|
-
}
|
|
121
|
-
dir = dirname(dir);
|
|
122
|
-
}
|
|
123
|
-
return currentDir;
|
|
124
|
-
})();
|
|
125
|
-
const possibleBasePaths = [
|
|
126
|
-
join(currentDir, "locales"),
|
|
127
|
-
// Development: src/i18n/locales
|
|
128
|
-
join(packageRoot, "dist/i18n/locales"),
|
|
129
|
-
// NPM package: /node_modules/ccjk/dist/i18n/locales
|
|
130
|
-
join(process__default.cwd(), "dist/i18n/locales"),
|
|
131
|
-
// Production build: ./dist/i18n/locales
|
|
132
|
-
join(currentDir, "../../../dist/i18n/locales"),
|
|
133
|
-
// Fallback for deep chunk paths
|
|
134
|
-
join(currentDir, "../../i18n/locales")
|
|
135
|
-
// Alternative chunk structure
|
|
136
|
-
];
|
|
137
|
-
for (const basePath of possibleBasePaths) {
|
|
138
|
-
const testFile = join(basePath, "zh-CN/common.json");
|
|
139
|
-
if (existsSync(testFile)) {
|
|
140
|
-
return join(basePath, "{{lng}}/{{ns}}.json");
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
return join(process__default.cwd(), "dist/i18n/locales/{{lng}}/{{ns}}.json");
|
|
144
|
-
})()
|
|
145
|
-
},
|
|
146
|
-
// Interpolation settings
|
|
147
|
-
interpolation: {
|
|
148
|
-
escapeValue: false
|
|
149
|
-
// Not needed for server-side usage
|
|
150
|
-
},
|
|
151
|
-
// Enable key separator for nested keys, enable namespace separator
|
|
152
|
-
keySeparator: ".",
|
|
153
|
-
nsSeparator: ":",
|
|
154
|
-
// Debugging (disable for clean output)
|
|
155
|
-
debug: false
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
function format(template, values) {
|
|
159
|
-
if (!values)
|
|
160
|
-
return template;
|
|
161
|
-
return Object.keys(values).reduce((result, key) => {
|
|
162
|
-
return result.replace(new RegExp(`{${key}}`, "g"), values[key]);
|
|
163
|
-
}, template);
|
|
164
|
-
}
|
|
165
|
-
async function changeLanguage(lng) {
|
|
166
|
-
await i18n.changeLanguage(lng);
|
|
167
|
-
}
|
|
168
|
-
function getTranslation(_lang) {
|
|
169
|
-
return (key, options) => {
|
|
170
|
-
if (key.includes(":")) {
|
|
171
|
-
return i18n.t(key, options);
|
|
172
|
-
}
|
|
173
|
-
return i18n.t(`common:${key}`, options);
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export { changeLanguage, ensureI18nInitialized, format, getTranslation, i18n, initI18n };
|
|
1
|
+
export { r as runHealthCheck } from '../shared/ccjk.DfwJOEok.mjs';
|
|
2
|
+
import 'node:fs';
|
|
3
|
+
import './constants.mjs';
|
|
4
|
+
import 'node:os';
|
|
5
|
+
import 'pathe';
|
|
6
|
+
import './index2.mjs';
|
|
7
|
+
import 'node:process';
|
|
8
|
+
import 'node:url';
|
|
9
|
+
import 'i18next';
|
|
10
|
+
import 'i18next-fs-backend';
|