ccjk 14.1.7 → 14.1.8
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/bin/ccjk.mjs +3 -2
- package/bin/ccjk.ts +104 -104
- package/dist/chunks/agent.mjs +2 -2
- package/dist/chunks/api-cli.mjs +2 -2
- package/dist/chunks/api-config-selector.mjs +5 -6
- package/dist/chunks/auto-updater.mjs +1 -1
- package/dist/chunks/brain-config.mjs +1 -1
- package/dist/chunks/brain-status.mjs +13 -7
- package/dist/chunks/ccjk-all.mjs +3 -3
- 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 -12
- package/dist/chunks/check-updates.mjs +1 -2
- package/dist/chunks/claude-code-incremental-manager.mjs +9 -9
- package/dist/chunks/claude-config.mjs +2 -2
- package/dist/chunks/code-type-resolver.mjs +2 -4
- package/dist/chunks/codex-config-switch.mjs +3 -4
- package/dist/chunks/codex-provider-manager.mjs +1 -2
- package/dist/chunks/codex.mjs +2 -33
- package/dist/chunks/config-switch.mjs +8 -5
- package/dist/chunks/config.mjs +382 -19
- package/dist/chunks/config2.mjs +3 -3
- package/dist/chunks/config3.mjs +1 -1
- package/dist/chunks/context.mjs +2 -2
- package/dist/chunks/doctor.mjs +4 -5
- package/dist/chunks/evolution.mjs +10 -6
- package/dist/chunks/features.mjs +13 -14
- package/dist/chunks/index10.mjs +4 -4
- package/dist/chunks/init.mjs +556 -557
- package/dist/chunks/installer.mjs +2 -2
- package/dist/chunks/mcp-cli.mjs +6 -7
- package/dist/chunks/mcp.mjs +6 -7
- package/dist/chunks/memory-check.mjs +2 -2
- package/dist/chunks/memory-paths.mjs +1 -1
- package/dist/chunks/memory-sync.mjs +2 -2
- package/dist/chunks/memory.mjs +7 -7
- package/dist/chunks/notification.mjs +1 -1
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/quick-provider.mjs +37 -7
- package/dist/chunks/quick-setup.mjs +6 -7
- package/dist/chunks/remote.mjs +1 -1
- package/dist/chunks/research.mjs +118 -118
- package/dist/chunks/simple-config.mjs +4 -4
- package/dist/chunks/skill2.mjs +129 -80
- package/dist/chunks/skills-sync.mjs +1 -1
- package/dist/chunks/slash-commands.mjs +1 -1
- package/dist/chunks/uninstall.mjs +1 -1
- package/dist/chunks/update.mjs +10 -11
- package/dist/chunks/zero-config.mjs +8 -9
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +7 -7
- package/dist/shared/{ccjk.QNhw2Y_5.mjs → ccjk.B9OuS4xZ.mjs} +3 -3
- package/dist/shared/{ccjk.DqlzNDEQ.mjs → ccjk.BEiR3L4C.mjs} +2 -3
- package/dist/shared/{ccjk.4iw1XCF3.mjs → ccjk.BJ3Zpjo5.mjs} +1 -1
- package/dist/shared/{ccjk.Nwf9bR70.mjs → ccjk.BzxpiEPF.mjs} +2 -2
- package/dist/shared/{ccjk.BI-hdI7P.mjs → ccjk.CbWVbtb9.mjs} +1 -1
- package/dist/shared/{ccjk.UhjQ1seV.mjs → ccjk.DMV3x5Sd.mjs} +1 -1
- package/dist/shared/{ccjk.DQXk596F.mjs → ccjk.DuzJZlgj.mjs} +107 -103
- package/dist/shared/{ccjk.DTdjs-qK.mjs → ccjk.MwtjAULc.mjs} +1 -1
- package/dist/shared/{ccjk.DsYaCCx4.mjs → ccjk.i_vn-9C3.mjs} +2 -2
- package/dist/shared/{ccjk.kAZkKbGW.mjs → ccjk.tI_s2uSh.mjs} +2 -3
- package/package.json +5 -5
- package/dist/shared/ccjk.DKXs7Fbm.mjs +0 -361
- package/dist/shared/{ccjk.BBizCO6_.mjs → ccjk.DcMvE7lf.mjs} +1 -1
- package/dist/shared/{ccjk.Dhu8ia5S.mjs → ccjk.zFGcZT7Y.mjs} +1 -1
package/bin/ccjk.mjs
CHANGED
package/bin/ccjk.ts
CHANGED
|
@@ -4,185 +4,185 @@
|
|
|
4
4
|
* CLI tool for managing code tools
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { createTool, getRegistry } from '../src/index'
|
|
7
|
+
import { createTool, getRegistry } from '../src/index';
|
|
8
8
|
|
|
9
|
-
const args = process.argv.slice(2)
|
|
10
|
-
const command = args[0]
|
|
9
|
+
const args = process.argv.slice(2);
|
|
10
|
+
const command = args[0];
|
|
11
11
|
|
|
12
12
|
async function main() {
|
|
13
13
|
switch (command) {
|
|
14
14
|
case 'list':
|
|
15
|
-
await listTools()
|
|
16
|
-
break
|
|
15
|
+
await listTools();
|
|
16
|
+
break;
|
|
17
17
|
case 'info':
|
|
18
|
-
await showToolInfo(args[1])
|
|
19
|
-
break
|
|
18
|
+
await showToolInfo(args[1]);
|
|
19
|
+
break;
|
|
20
20
|
case 'check':
|
|
21
|
-
await checkInstallation(args[1])
|
|
22
|
-
break
|
|
21
|
+
await checkInstallation(args[1]);
|
|
22
|
+
break;
|
|
23
23
|
case 'install':
|
|
24
|
-
await installTool(args[1])
|
|
25
|
-
break
|
|
24
|
+
await installTool(args[1]);
|
|
25
|
+
break;
|
|
26
26
|
case 'configure':
|
|
27
|
-
await configureTool(args[1])
|
|
28
|
-
break
|
|
27
|
+
await configureTool(args[1]);
|
|
28
|
+
break;
|
|
29
29
|
case 'help':
|
|
30
30
|
default:
|
|
31
|
-
showHelp()
|
|
32
|
-
break
|
|
31
|
+
showHelp();
|
|
32
|
+
break;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
async function listTools() {
|
|
37
|
-
console.log('Available tools:\n')
|
|
38
|
-
const registry = getRegistry()
|
|
39
|
-
const metadata = await registry.getAllMetadata()
|
|
37
|
+
console.log('Available tools:\n');
|
|
38
|
+
const registry = getRegistry();
|
|
39
|
+
const metadata = await registry.getAllMetadata();
|
|
40
40
|
|
|
41
41
|
for (const meta of metadata) {
|
|
42
|
-
console.log(` ${meta.displayName} (${meta.name})`)
|
|
43
|
-
console.log(` ${meta.description}`)
|
|
44
|
-
console.log(` Homepage: ${meta.homepage || 'N/A'}`)
|
|
45
|
-
console.log('')
|
|
42
|
+
console.log(` ${meta.displayName} (${meta.name})`);
|
|
43
|
+
console.log(` ${meta.description}`);
|
|
44
|
+
console.log(` Homepage: ${meta.homepage || 'N/A'}`);
|
|
45
|
+
console.log('');
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
async function showToolInfo(toolName: string) {
|
|
50
50
|
if (!toolName) {
|
|
51
|
-
console.error('Error: Tool name required')
|
|
52
|
-
console.log('Usage: ccjk info <tool-name>')
|
|
53
|
-
process.exit(1)
|
|
51
|
+
console.error('Error: Tool name required');
|
|
52
|
+
console.log('Usage: ccjk info <tool-name>');
|
|
53
|
+
process.exit(1);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
try {
|
|
57
|
-
const tool = createTool(toolName)
|
|
58
|
-
const metadata = tool.getMetadata()
|
|
59
|
-
const status = await tool.isInstalled()
|
|
60
|
-
const config = await tool.getConfig()
|
|
61
|
-
|
|
62
|
-
console.log(`\n${metadata.displayName}`)
|
|
63
|
-
console.log('='.repeat(metadata.displayName.length))
|
|
64
|
-
console.log(`\nDescription: ${metadata.description}`)
|
|
65
|
-
console.log(`Version: ${metadata.version}`)
|
|
66
|
-
console.log(`Homepage: ${metadata.homepage || 'N/A'}`)
|
|
67
|
-
console.log(`Documentation: ${metadata.documentation || 'N/A'}`)
|
|
68
|
-
console.log(`\nInstalled: ${status.installed ? 'Yes' : 'No'}`)
|
|
57
|
+
const tool = createTool(toolName);
|
|
58
|
+
const metadata = tool.getMetadata();
|
|
59
|
+
const status = await tool.isInstalled();
|
|
60
|
+
const config = await tool.getConfig();
|
|
61
|
+
|
|
62
|
+
console.log(`\n${metadata.displayName}`);
|
|
63
|
+
console.log('='.repeat(metadata.displayName.length));
|
|
64
|
+
console.log(`\nDescription: ${metadata.description}`);
|
|
65
|
+
console.log(`Version: ${metadata.version}`);
|
|
66
|
+
console.log(`Homepage: ${metadata.homepage || 'N/A'}`);
|
|
67
|
+
console.log(`Documentation: ${metadata.documentation || 'N/A'}`);
|
|
68
|
+
console.log(`\nInstalled: ${status.installed ? 'Yes' : 'No'}`);
|
|
69
69
|
if (status.installed) {
|
|
70
|
-
console.log(` Version: ${status.version || 'Unknown'}`)
|
|
71
|
-
console.log(` Path: ${status.path || 'Unknown'}`)
|
|
70
|
+
console.log(` Version: ${status.version || 'Unknown'}`);
|
|
71
|
+
console.log(` Path: ${status.path || 'Unknown'}`);
|
|
72
72
|
}
|
|
73
|
-
console.log('\nCapabilities:')
|
|
74
|
-
console.log(` Chat: ${metadata.capabilities.supportsChat ? '✅' : '❌'}`)
|
|
75
|
-
console.log(` File Edit: ${metadata.capabilities.supportsFileEdit ? '✅' : '❌'}`)
|
|
76
|
-
console.log(` Code Gen: ${metadata.capabilities.supportsCodeGen ? '✅' : '❌'}`)
|
|
77
|
-
console.log(` Review: ${metadata.capabilities.supportsReview ? '✅' : '❌'}`)
|
|
78
|
-
console.log(` Testing: ${metadata.capabilities.supportsTesting ? '✅' : '❌'}`)
|
|
79
|
-
console.log(` Debugging: ${metadata.capabilities.supportsDebugging ? '✅' : '❌'}`)
|
|
80
|
-
console.log('\nConfiguration:')
|
|
81
|
-
console.log(` Model: ${config.model || 'Not set'}`)
|
|
82
|
-
console.log(` API Key: ${config.apiKey ? '***' : 'Not set'}`)
|
|
83
|
-
console.log('')
|
|
73
|
+
console.log('\nCapabilities:');
|
|
74
|
+
console.log(` Chat: ${metadata.capabilities.supportsChat ? '✅' : '❌'}`);
|
|
75
|
+
console.log(` File Edit: ${metadata.capabilities.supportsFileEdit ? '✅' : '❌'}`);
|
|
76
|
+
console.log(` Code Gen: ${metadata.capabilities.supportsCodeGen ? '✅' : '❌'}`);
|
|
77
|
+
console.log(` Review: ${metadata.capabilities.supportsReview ? '✅' : '❌'}`);
|
|
78
|
+
console.log(` Testing: ${metadata.capabilities.supportsTesting ? '✅' : '❌'}`);
|
|
79
|
+
console.log(` Debugging: ${metadata.capabilities.supportsDebugging ? '✅' : '❌'}`);
|
|
80
|
+
console.log('\nConfiguration:');
|
|
81
|
+
console.log(` Model: ${config.model || 'Not set'}`);
|
|
82
|
+
console.log(` API Key: ${config.apiKey ? '***' : 'Not set'}`);
|
|
83
|
+
console.log('');
|
|
84
84
|
}
|
|
85
85
|
catch (error) {
|
|
86
|
-
console.error(`Error: ${(error as Error).message}`)
|
|
87
|
-
process.exit(1)
|
|
86
|
+
console.error(`Error: ${(error as Error).message}`);
|
|
87
|
+
process.exit(1);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
async function checkInstallation(toolName: string) {
|
|
92
92
|
if (!toolName) {
|
|
93
|
-
console.log('Checking all tools...\n')
|
|
94
|
-
const registry = getRegistry()
|
|
95
|
-
const toolNames = registry.getToolNames()
|
|
93
|
+
console.log('Checking all tools...\n');
|
|
94
|
+
const registry = getRegistry();
|
|
95
|
+
const toolNames = registry.getToolNames();
|
|
96
96
|
|
|
97
97
|
for (const name of toolNames) {
|
|
98
|
-
const tool = createTool(name)
|
|
99
|
-
const metadata = tool.getMetadata()
|
|
100
|
-
const status = await tool.isInstalled()
|
|
98
|
+
const tool = createTool(name);
|
|
99
|
+
const metadata = tool.getMetadata();
|
|
100
|
+
const status = await tool.isInstalled();
|
|
101
101
|
|
|
102
|
-
console.log(`${metadata.displayName}: ${status.installed ? '✅' : '❌'}`)
|
|
102
|
+
console.log(`${metadata.displayName}: ${status.installed ? '✅' : '❌'}`);
|
|
103
103
|
if (status.installed && status.version) {
|
|
104
|
-
console.log(` Version: ${status.version}`)
|
|
104
|
+
console.log(` Version: ${status.version}`);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
console.log('')
|
|
107
|
+
console.log('');
|
|
108
108
|
}
|
|
109
109
|
else {
|
|
110
110
|
try {
|
|
111
|
-
const tool = createTool(toolName)
|
|
112
|
-
const metadata = tool.getMetadata()
|
|
113
|
-
const status = await tool.isInstalled()
|
|
111
|
+
const tool = createTool(toolName);
|
|
112
|
+
const metadata = tool.getMetadata();
|
|
113
|
+
const status = await tool.isInstalled();
|
|
114
114
|
|
|
115
|
-
console.log(`\n${metadata.displayName}: ${status.installed ? '✅ Installed' : '❌ Not installed'}`)
|
|
115
|
+
console.log(`\n${metadata.displayName}: ${status.installed ? '✅ Installed' : '❌ Not installed'}`);
|
|
116
116
|
if (status.installed) {
|
|
117
|
-
console.log(`Version: ${status.version || 'Unknown'}`)
|
|
118
|
-
console.log(`Path: ${status.path || 'Unknown'}`)
|
|
117
|
+
console.log(`Version: ${status.version || 'Unknown'}`);
|
|
118
|
+
console.log(`Path: ${status.path || 'Unknown'}`);
|
|
119
119
|
}
|
|
120
120
|
else {
|
|
121
|
-
console.log('\nTo install, run:')
|
|
122
|
-
console.log(` ccjk install ${toolName}`)
|
|
121
|
+
console.log('\nTo install, run:');
|
|
122
|
+
console.log(` ccjk install ${toolName}`);
|
|
123
123
|
}
|
|
124
|
-
console.log('')
|
|
124
|
+
console.log('');
|
|
125
125
|
}
|
|
126
126
|
catch (error) {
|
|
127
|
-
console.error(`Error: ${(error as Error).message}`)
|
|
128
|
-
process.exit(1)
|
|
127
|
+
console.error(`Error: ${(error as Error).message}`);
|
|
128
|
+
process.exit(1);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
async function installTool(toolName: string) {
|
|
134
134
|
if (!toolName) {
|
|
135
|
-
console.error('Error: Tool name required')
|
|
136
|
-
console.log('Usage: ccjk install <tool-name>')
|
|
137
|
-
process.exit(1)
|
|
135
|
+
console.error('Error: Tool name required');
|
|
136
|
+
console.log('Usage: ccjk install <tool-name>');
|
|
137
|
+
process.exit(1);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
try {
|
|
141
|
-
const tool = createTool(toolName)
|
|
142
|
-
const metadata = tool.getMetadata()
|
|
141
|
+
const tool = createTool(toolName);
|
|
142
|
+
const metadata = tool.getMetadata();
|
|
143
143
|
|
|
144
|
-
console.log(`Installing ${metadata.displayName}...`)
|
|
145
|
-
const result = await tool.install()
|
|
144
|
+
console.log(`Installing ${metadata.displayName}...`);
|
|
145
|
+
const result = await tool.install();
|
|
146
146
|
|
|
147
147
|
if (result.success) {
|
|
148
|
-
console.log(`✅ ${metadata.displayName} installed successfully!`)
|
|
148
|
+
console.log(`✅ ${metadata.displayName} installed successfully!`);
|
|
149
149
|
if (result.output) {
|
|
150
|
-
console.log(result.output)
|
|
150
|
+
console.log(result.output);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
else {
|
|
154
|
-
console.error(`❌ Installation failed: ${result.error}`)
|
|
155
|
-
process.exit(1)
|
|
154
|
+
console.error(`❌ Installation failed: ${result.error}`);
|
|
155
|
+
process.exit(1);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
catch (error) {
|
|
159
|
-
console.error(`Error: ${(error as Error).message}`)
|
|
160
|
-
process.exit(1)
|
|
159
|
+
console.error(`Error: ${(error as Error).message}`);
|
|
160
|
+
process.exit(1);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
async function configureTool(toolName: string) {
|
|
165
165
|
if (!toolName) {
|
|
166
|
-
console.error('Error: Tool name required')
|
|
167
|
-
console.log('Usage: ccjk configure <tool-name>')
|
|
168
|
-
process.exit(1)
|
|
166
|
+
console.error('Error: Tool name required');
|
|
167
|
+
console.log('Usage: ccjk configure <tool-name>');
|
|
168
|
+
process.exit(1);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
try {
|
|
172
|
-
const tool = createTool(toolName)
|
|
173
|
-
const metadata = tool.getMetadata()
|
|
174
|
-
const config = await tool.getConfig()
|
|
175
|
-
|
|
176
|
-
console.log(`\nCurrent configuration for ${metadata.displayName}:`)
|
|
177
|
-
console.log(JSON.stringify(config, null, 2))
|
|
178
|
-
console.log('\nTo update configuration, use the API:')
|
|
179
|
-
console.log(` const tool = createTool('${toolName}');`)
|
|
180
|
-
console.log(` await tool.updateConfig({ apiKey: 'your-key' });`)
|
|
181
|
-
console.log('')
|
|
172
|
+
const tool = createTool(toolName);
|
|
173
|
+
const metadata = tool.getMetadata();
|
|
174
|
+
const config = await tool.getConfig();
|
|
175
|
+
|
|
176
|
+
console.log(`\nCurrent configuration for ${metadata.displayName}:`);
|
|
177
|
+
console.log(JSON.stringify(config, null, 2));
|
|
178
|
+
console.log('\nTo update configuration, use the API:');
|
|
179
|
+
console.log(` const tool = createTool('${toolName}');`);
|
|
180
|
+
console.log(` await tool.updateConfig({ apiKey: 'your-key' });`);
|
|
181
|
+
console.log('');
|
|
182
182
|
}
|
|
183
183
|
catch (error) {
|
|
184
|
-
console.error(`Error: ${(error as Error).message}`)
|
|
185
|
-
process.exit(1)
|
|
184
|
+
console.error(`Error: ${(error as Error).message}`);
|
|
185
|
+
process.exit(1);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
|
|
@@ -213,10 +213,10 @@ Available tools:
|
|
|
213
213
|
claude-code, codex, aider, continue, cline, cursor
|
|
214
214
|
|
|
215
215
|
For more information, visit: https://github.com/your-org/ccjk
|
|
216
|
-
`)
|
|
216
|
+
`);
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
main().catch((error) => {
|
|
220
|
-
console.error('Fatal error:', error)
|
|
221
|
-
process.exit(1)
|
|
222
|
-
})
|
|
220
|
+
console.error('Fatal error:', error);
|
|
221
|
+
process.exit(1);
|
|
222
|
+
});
|
package/dist/chunks/agent.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import a from './index5.mjs';
|
|
|
2
2
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, readdirSync } from 'node:fs';
|
|
3
3
|
import { CCJK_CONFIG_DIR } from './constants.mjs';
|
|
4
4
|
import { w as writeAgentFile } from '../shared/ccjk.CfKKcvWy.mjs';
|
|
5
|
-
import { g as getPluginManager } from '../shared/ccjk.
|
|
5
|
+
import { g as getPluginManager } from '../shared/ccjk.MwtjAULc.mjs';
|
|
6
6
|
import { homedir } from 'node:os';
|
|
7
7
|
import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
8
8
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
@@ -15,7 +15,7 @@ import 'node:child_process';
|
|
|
15
15
|
import 'node:path';
|
|
16
16
|
import 'node:stream';
|
|
17
17
|
import 'node:readline';
|
|
18
|
-
import '../shared/ccjk.
|
|
18
|
+
import '../shared/ccjk.i_vn-9C3.mjs';
|
|
19
19
|
|
|
20
20
|
const CLAUDE_CONFIG_PATH = join(homedir(), ".claude.json");
|
|
21
21
|
const TOOL_CACHE_TTL = 5 * 60 * 1e3;
|
package/dist/chunks/api-cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import a from './index5.mjs';
|
|
2
2
|
import { i18n } from './index2.mjs';
|
|
3
|
-
import {
|
|
3
|
+
import { j as configureApi, i 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';
|
|
@@ -24,6 +24,7 @@ import 'node:crypto';
|
|
|
24
24
|
import 'buffer';
|
|
25
25
|
import 'string_decoder';
|
|
26
26
|
import './constants.mjs';
|
|
27
|
+
import 'node:child_process';
|
|
27
28
|
import './ccjk-config.mjs';
|
|
28
29
|
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
29
30
|
import './index3.mjs';
|
|
@@ -34,7 +35,6 @@ import '../shared/ccjk.Di1IYU3u.mjs';
|
|
|
34
35
|
import './platform.mjs';
|
|
35
36
|
import './main.mjs';
|
|
36
37
|
import 'module';
|
|
37
|
-
import 'node:child_process';
|
|
38
38
|
import 'node:stream';
|
|
39
39
|
|
|
40
40
|
async function apiConfigure(options = {}) {
|
|
@@ -30,26 +30,25 @@ import './fs-operations.mjs';
|
|
|
30
30
|
import 'node:fs/promises';
|
|
31
31
|
import './json-config.mjs';
|
|
32
32
|
import '../shared/ccjk.RyizuzOI.mjs';
|
|
33
|
+
import 'node:child_process';
|
|
33
34
|
import '../shared/ccjk.Di1IYU3u.mjs';
|
|
34
35
|
import './platform.mjs';
|
|
35
36
|
import './main.mjs';
|
|
36
37
|
import 'module';
|
|
37
|
-
import 'node:child_process';
|
|
38
38
|
import 'node:stream';
|
|
39
|
-
import '../shared/ccjk.
|
|
40
|
-
import '../shared/ccjk.
|
|
41
|
-
import '../shared/ccjk.4iw1XCF3.mjs';
|
|
39
|
+
import '../shared/ccjk.BzxpiEPF.mjs';
|
|
40
|
+
import '../shared/ccjk.BJ3Zpjo5.mjs';
|
|
42
41
|
import '../shared/ccjk.BFQ7yr5S.mjs';
|
|
43
42
|
import '../shared/ccjk.DZ2LLOa-.mjs';
|
|
44
43
|
import '../shared/ccjk.DeWpAShp.mjs';
|
|
45
|
-
import '../shared/ccjk.
|
|
44
|
+
import '../shared/ccjk.CbWVbtb9.mjs';
|
|
46
45
|
import './simple-config.mjs';
|
|
47
46
|
|
|
48
47
|
async function syncClavueProviderStateIfNeeded(codeTool, activeProfileId) {
|
|
49
48
|
if (codeTool !== "clavue") {
|
|
50
49
|
return;
|
|
51
50
|
}
|
|
52
|
-
const { syncMyclaudeProviderProfilesFromClaudeConfig } = await import('./config.mjs').then(function (n) { return n.
|
|
51
|
+
const { syncMyclaudeProviderProfilesFromClaudeConfig } = await import('./config.mjs').then(function (n) { return n.P; });
|
|
53
52
|
const config = ClaudeCodeConfigManager.readConfig();
|
|
54
53
|
syncMyclaudeProviderProfilesFromClaudeConfig(
|
|
55
54
|
activeProfileId === void 0 || !config ? config : { ...config, currentProfileId: activeProfileId }
|
|
@@ -461,7 +461,7 @@ async function checkAndUpdateMyclaudeTools(skipPrompt = false) {
|
|
|
461
461
|
process.exit(0);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
async function checkCcjkVersionAndPrompt(
|
|
464
|
+
async function checkCcjkVersionAndPrompt(_skipPrompt) {
|
|
465
465
|
try {
|
|
466
466
|
const { readFileSync } = await import('node:fs');
|
|
467
467
|
const { fileURLToPath } = await import('node:url');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getTelemetry, a as getSmartRouter, b as getCapabilityName } from '../shared/ccjk.
|
|
1
|
+
import { g as getTelemetry, a as getSmartRouter, b as getCapabilityName } from '../shared/ccjk.DuzJZlgj.mjs';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'node:fs/promises';
|
|
4
4
|
import 'node:os';
|
|
@@ -65,18 +65,24 @@ async function brainStatusCommand(options) {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
function getPreferenceLabel(pref) {
|
|
68
|
-
if (pref <= 2)
|
|
69
|
-
|
|
68
|
+
if (pref <= 2)
|
|
69
|
+
return "\u4F18\u5148\u7B80\u5355";
|
|
70
|
+
if (pref >= 4)
|
|
71
|
+
return "\u4F18\u5148\u590D\u6742";
|
|
70
72
|
return "\u5E73\u8861";
|
|
71
73
|
}
|
|
72
74
|
function getSuccessEmoji(rate) {
|
|
73
|
-
if (rate >= 0.9)
|
|
74
|
-
|
|
75
|
+
if (rate >= 0.9)
|
|
76
|
+
return "\u{1F7E2}";
|
|
77
|
+
if (rate >= 0.7)
|
|
78
|
+
return "\u{1F7E1}";
|
|
75
79
|
return "\u{1F534}";
|
|
76
80
|
}
|
|
77
81
|
function getScoreEmoji(score) {
|
|
78
|
-
if (score >= 8)
|
|
79
|
-
|
|
82
|
+
if (score >= 8)
|
|
83
|
+
return "\u{1F31F}";
|
|
84
|
+
if (score >= 6)
|
|
85
|
+
return "\u{1F44D}";
|
|
80
86
|
return "\u{1F44E}";
|
|
81
87
|
}
|
|
82
88
|
|
package/dist/chunks/ccjk-all.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import a from './index5.mjs';
|
|
2
2
|
import { c as consola, a as analyzeProject } from '../shared/ccjk.Cv13QsGp.mjs';
|
|
3
|
-
import { c as createCompleteCloudClient } from '../shared/ccjk.
|
|
3
|
+
import { c as createCompleteCloudClient } from '../shared/ccjk.zFGcZT7Y.mjs';
|
|
4
4
|
import { i18n, ensureI18nInitialized } from './index2.mjs';
|
|
5
5
|
import { createHash } from 'node:crypto';
|
|
6
6
|
import { promises, readFileSync } from 'node:fs';
|
|
@@ -48,7 +48,7 @@ import './platform.mjs';
|
|
|
48
48
|
import './main.mjs';
|
|
49
49
|
import 'module';
|
|
50
50
|
import 'node:stream';
|
|
51
|
-
import '../shared/ccjk.
|
|
51
|
+
import '../shared/ccjk.i_vn-9C3.mjs';
|
|
52
52
|
|
|
53
53
|
const packageJson = JSON.parse(readFileSync(join(process.cwd(), "package.json"), "utf-8"));
|
|
54
54
|
const CCJK_VERSION = packageJson.version;
|
|
@@ -56,7 +56,7 @@ class CloudSetupOrchestrator {
|
|
|
56
56
|
gateway;
|
|
57
57
|
logger = consola.withTag("cloud-setup");
|
|
58
58
|
startTime = Date.now();
|
|
59
|
-
constructor(
|
|
59
|
+
constructor(_options = {}) {
|
|
60
60
|
this.gateway = createDefaultGateway();
|
|
61
61
|
}
|
|
62
62
|
/**
|
package/dist/chunks/ccjk-mcp.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { c as consola, a as analyzeProject, g as getTemplatesClient } from '../s
|
|
|
5
5
|
import { i as inquirer } from './index6.mjs';
|
|
6
6
|
import { CLAUDE_DIR } from './constants.mjs';
|
|
7
7
|
import { ensureI18nInitialized, i18n } from './index2.mjs';
|
|
8
|
-
import {
|
|
8
|
+
import { e as backupMcpConfig, r as readMcpConfig, m as mergeMcpServers, w as writeMcpConfig } from './config.mjs';
|
|
9
9
|
import { c as commandExists } from './platform.mjs';
|
|
10
10
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
11
11
|
import 'node:fs';
|
|
@@ -28,6 +28,7 @@ import 'buffer';
|
|
|
28
28
|
import 'string_decoder';
|
|
29
29
|
import 'node:url';
|
|
30
30
|
import '../shared/ccjk.RyizuzOI.mjs';
|
|
31
|
+
import 'node:child_process';
|
|
31
32
|
import './ccjk-config.mjs';
|
|
32
33
|
import './index3.mjs';
|
|
33
34
|
import './fs-operations.mjs';
|
|
@@ -36,7 +37,6 @@ import './json-config.mjs';
|
|
|
36
37
|
import '../shared/ccjk.Di1IYU3u.mjs';
|
|
37
38
|
import './main.mjs';
|
|
38
39
|
import 'module';
|
|
39
|
-
import 'node:child_process';
|
|
40
40
|
import 'node:stream';
|
|
41
41
|
|
|
42
42
|
const mcpServiceTemplates = {
|
|
@@ -45,7 +45,7 @@ import './platform.mjs';
|
|
|
45
45
|
import './main.mjs';
|
|
46
46
|
import 'module';
|
|
47
47
|
import 'node:stream';
|
|
48
|
-
import '../shared/ccjk.
|
|
48
|
+
import '../shared/ccjk.i_vn-9C3.mjs';
|
|
49
49
|
|
|
50
50
|
async function createBackup(operation, options = {}) {
|
|
51
51
|
const timestamp = dayjs().format("YYYYMMDD-HHmmss");
|
|
@@ -6,7 +6,7 @@ import a from './index5.mjs';
|
|
|
6
6
|
import { c as consola, a as analyzeProject, g as getTemplatesClient } from '../shared/ccjk.Cv13QsGp.mjs';
|
|
7
7
|
import { i as inquirer } from './index6.mjs';
|
|
8
8
|
import { resolveSupportedLanguage, i18n } from './index2.mjs';
|
|
9
|
-
import { g as getSkillParser } from '../shared/ccjk.
|
|
9
|
+
import { g as getSkillParser } from '../shared/ccjk.i_vn-9C3.mjs';
|
|
10
10
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
11
11
|
import './index9.mjs';
|
|
12
12
|
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
package/dist/chunks/ccr.mjs
CHANGED
|
@@ -9,8 +9,6 @@ import 'node:process';
|
|
|
9
9
|
import 'node:url';
|
|
10
10
|
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
11
11
|
import '../shared/ccjk.gDEDGD_t.mjs';
|
|
12
|
-
import './config.mjs';
|
|
13
|
-
import '../shared/ccjk.RyizuzOI.mjs';
|
|
14
12
|
import './index6.mjs';
|
|
15
13
|
import 'node:readline';
|
|
16
14
|
import 'stream';
|
|
@@ -33,11 +31,13 @@ import './index3.mjs';
|
|
|
33
31
|
import './fs-operations.mjs';
|
|
34
32
|
import 'node:fs/promises';
|
|
35
33
|
import './json-config.mjs';
|
|
34
|
+
import '../shared/ccjk.RyizuzOI.mjs';
|
|
35
|
+
import './config.mjs';
|
|
36
|
+
import 'node:child_process';
|
|
36
37
|
import '../shared/ccjk.Di1IYU3u.mjs';
|
|
37
38
|
import './platform.mjs';
|
|
38
39
|
import './main.mjs';
|
|
39
40
|
import 'module';
|
|
40
|
-
import 'node:child_process';
|
|
41
41
|
import 'node:stream';
|
|
42
42
|
import './codex.mjs';
|
|
43
43
|
import './index8.mjs';
|
|
@@ -46,12 +46,11 @@ import '../shared/ccjk.CxpGa6MC.mjs';
|
|
|
46
46
|
import '../shared/ccjk.BFQ7yr5S.mjs';
|
|
47
47
|
import './prompts.mjs';
|
|
48
48
|
import '../shared/ccjk.DZ2LLOa-.mjs';
|
|
49
|
-
import '../shared/ccjk.DKXs7Fbm.mjs';
|
|
50
49
|
import './code-type-resolver.mjs';
|
|
51
50
|
import './features.mjs';
|
|
52
|
-
import '../shared/ccjk.
|
|
53
|
-
import '../shared/ccjk.
|
|
54
|
-
import '../shared/ccjk.
|
|
51
|
+
import '../shared/ccjk.BzxpiEPF.mjs';
|
|
52
|
+
import '../shared/ccjk.BJ3Zpjo5.mjs';
|
|
53
|
+
import '../shared/ccjk.CbWVbtb9.mjs';
|
|
55
54
|
import './simple-config.mjs';
|
|
56
55
|
import '../shared/ccjk.DbigonEQ.mjs';
|
|
57
56
|
import 'node:stream/promises';
|
|
@@ -66,20 +65,20 @@ import './version-checker.mjs';
|
|
|
66
65
|
import '../shared/ccjk.Hwoicrh8.mjs';
|
|
67
66
|
import './installer.mjs';
|
|
68
67
|
import '../shared/ccjk.B8oqkakg.mjs';
|
|
69
|
-
import '../shared/ccjk.Bq8TqZG_.mjs';
|
|
70
68
|
import '../shared/ccjk.B2U7DsPy.mjs';
|
|
69
|
+
import '../shared/ccjk.Bq8TqZG_.mjs';
|
|
71
70
|
import './commands.mjs';
|
|
72
71
|
import './check-updates.mjs';
|
|
73
72
|
import './config-switch.mjs';
|
|
74
73
|
import './doctor.mjs';
|
|
75
74
|
import './api-providers.mjs';
|
|
76
75
|
import '../shared/ccjk.DsZsc4LR.mjs';
|
|
77
|
-
import '../shared/ccjk.
|
|
76
|
+
import '../shared/ccjk.BEiR3L4C.mjs';
|
|
78
77
|
import '../shared/ccjk.J8YiPsOw.mjs';
|
|
79
|
-
import '../shared/ccjk.
|
|
80
|
-
import '../shared/ccjk.
|
|
78
|
+
import '../shared/ccjk.B9OuS4xZ.mjs';
|
|
79
|
+
import '../shared/ccjk.tI_s2uSh.mjs';
|
|
81
80
|
import './notification.mjs';
|
|
82
|
-
import '../shared/ccjk.
|
|
81
|
+
import '../shared/ccjk.DcMvE7lf.mjs';
|
|
83
82
|
import '../shared/ccjk.D0g2ABGg.mjs';
|
|
84
83
|
import '../shared/ccjk.D6ycHbak.mjs';
|
|
85
84
|
import 'node:buffer';
|
|
@@ -3,7 +3,7 @@ import a from './index5.mjs';
|
|
|
3
3
|
import { ensureI18nInitialized, i18n } from './index2.mjs';
|
|
4
4
|
import { r as resolveCodeType } from './code-type-resolver.mjs';
|
|
5
5
|
import { checkAndUpdateTools, checkAndUpdateMyclaudeTools } from './auto-updater.mjs';
|
|
6
|
-
import {
|
|
6
|
+
import { b as runCodexUpdate } from './codex.mjs';
|
|
7
7
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:url';
|
|
@@ -46,7 +46,6 @@ import '../shared/ccjk.Di1IYU3u.mjs';
|
|
|
46
46
|
import '../shared/ccjk.BFQ7yr5S.mjs';
|
|
47
47
|
import './prompts.mjs';
|
|
48
48
|
import '../shared/ccjk.gDEDGD_t.mjs';
|
|
49
|
-
import '../shared/ccjk.DKXs7Fbm.mjs';
|
|
50
49
|
|
|
51
50
|
class ToolUpdateScheduler {
|
|
52
51
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import a from './index5.mjs';
|
|
2
2
|
import { i as inquirer } from './index6.mjs';
|
|
3
3
|
import { ensureI18nInitialized, i18n } from './index2.mjs';
|
|
4
|
+
import { readZcfConfig } from './ccjk-config.mjs';
|
|
4
5
|
import { C as ClaudeCodeConfigManager } from './config.mjs';
|
|
5
6
|
import { r as resolveClaudeFamilyModelSlots } from '../shared/ccjk.B2U7DsPy.mjs';
|
|
6
7
|
import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
|
|
7
|
-
import { readZcfConfig } from './ccjk-config.mjs';
|
|
8
8
|
import { p as promptBoolean } from '../shared/ccjk.DZ2LLOa-.mjs';
|
|
9
|
-
import { v as validateApiKey } from '../shared/ccjk.
|
|
9
|
+
import { v as validateApiKey } from '../shared/ccjk.BzxpiEPF.mjs';
|
|
10
10
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
11
11
|
import 'node:readline';
|
|
12
12
|
import 'stream';
|
|
@@ -26,21 +26,21 @@ import 'string_decoder';
|
|
|
26
26
|
import 'node:fs';
|
|
27
27
|
import 'node:url';
|
|
28
28
|
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
29
|
-
import '../shared/ccjk.
|
|
29
|
+
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
30
|
+
import './index3.mjs';
|
|
30
31
|
import './constants.mjs';
|
|
31
|
-
import '../shared/ccjk.Di1IYU3u.mjs';
|
|
32
32
|
import './fs-operations.mjs';
|
|
33
33
|
import 'node:fs/promises';
|
|
34
34
|
import './json-config.mjs';
|
|
35
|
+
import '../shared/ccjk.RyizuzOI.mjs';
|
|
36
|
+
import 'node:child_process';
|
|
37
|
+
import '../shared/ccjk.Di1IYU3u.mjs';
|
|
35
38
|
import './platform.mjs';
|
|
36
39
|
import './main.mjs';
|
|
37
40
|
import 'module';
|
|
38
|
-
import 'node:child_process';
|
|
39
41
|
import 'node:stream';
|
|
40
|
-
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
41
|
-
import './index3.mjs';
|
|
42
42
|
import '../shared/ccjk.DeWpAShp.mjs';
|
|
43
|
-
import '../shared/ccjk.
|
|
43
|
+
import '../shared/ccjk.BJ3Zpjo5.mjs';
|
|
44
44
|
|
|
45
45
|
function getAuthTypeLabel(authType) {
|
|
46
46
|
ensureI18nInitialized();
|
|
@@ -60,7 +60,7 @@ async function syncMyclaudeProfilesIfNeeded() {
|
|
|
60
60
|
if (zcfConfig?.codeToolType !== "clavue") {
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
|
-
const { syncMyclaudeProviderProfilesFromCurrentClaudeConfig } = await import('./config.mjs').then(function (n) { return n.
|
|
63
|
+
const { syncMyclaudeProviderProfilesFromCurrentClaudeConfig } = await import('./config.mjs').then(function (n) { return n.P; });
|
|
64
64
|
syncMyclaudeProviderProfilesFromCurrentClaudeConfig();
|
|
65
65
|
}
|
|
66
66
|
async function configureIncrementalManagement() {
|