ccjk 8.1.2 → 8.1.4
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
2
|
import process__default, { cwd } from 'node:process';
|
|
3
3
|
import { P as ProjectAnalyzer } from '../shared/ccjk.CsujU3aC.mjs';
|
|
4
|
-
import { join } from 'pathe';
|
|
4
|
+
import { join, dirname } from 'pathe';
|
|
5
|
+
import { fileURLToPath } from 'node:url';
|
|
5
6
|
import { existsSync, readdirSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
|
|
6
7
|
import { homedir } from 'node:os';
|
|
7
8
|
import { c as createCloudClient } from '../shared/ccjk.DR7dAWAm.mjs';
|
|
@@ -13,27 +14,27 @@ import 'url';
|
|
|
13
14
|
import 'module';
|
|
14
15
|
import 'smol-toml';
|
|
15
16
|
import 'ofetch';
|
|
16
|
-
import 'node:url';
|
|
17
17
|
import 'i18next';
|
|
18
18
|
import 'i18next-fs-backend';
|
|
19
19
|
|
|
20
20
|
async function getCloudRecommendations(analysis) {
|
|
21
21
|
try {
|
|
22
22
|
const client = createCloudClient();
|
|
23
|
-
const response = await client.
|
|
23
|
+
const response = await client.analyzeProject({
|
|
24
|
+
projectRoot: analysis.projectRoot || process.cwd(),
|
|
24
25
|
projectType: analysis.projectType,
|
|
25
26
|
frameworks: analysis.frameworks.map((f) => f.name),
|
|
26
27
|
languages: analysis.languages.map((l) => l.language),
|
|
27
28
|
dependencies: analysis.dependencies?.direct.map((d) => d.name) || []
|
|
28
29
|
});
|
|
29
|
-
return response.recommendations.map((rec) => ({
|
|
30
|
-
name: rec.name,
|
|
31
|
-
description: rec.description,
|
|
30
|
+
return (response.recommendations || []).map((rec) => ({
|
|
31
|
+
name: rec.name || rec.id || "Unknown Agent",
|
|
32
|
+
description: rec.description || "No description available",
|
|
32
33
|
skills: rec.skills || [],
|
|
33
34
|
mcpServers: rec.mcpServers || [],
|
|
34
35
|
persona: rec.persona,
|
|
35
36
|
capabilities: rec.capabilities || [],
|
|
36
|
-
confidence: rec.confidence || 0.8,
|
|
37
|
+
confidence: rec.confidence || rec.relevanceScore || 0.8,
|
|
37
38
|
reason: rec.reason || "Recommended by CCJK Cloud"
|
|
38
39
|
}));
|
|
39
40
|
} catch (error) {
|
|
@@ -42,18 +43,27 @@ async function getCloudRecommendations(analysis) {
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
const
|
|
46
|
+
const _dirname = dirname(fileURLToPath(import.meta.url));
|
|
47
|
+
const AGENT_TEMPLATES_DIR = join(_dirname, "..", "templates", "agents");
|
|
48
|
+
const AGENT_TEMPLATES_DIR_FALLBACK = join(process.cwd(), "templates", "agents");
|
|
49
|
+
function getAgentTemplatesDir() {
|
|
50
|
+
if (existsSync(AGENT_TEMPLATES_DIR)) {
|
|
51
|
+
return AGENT_TEMPLATES_DIR;
|
|
52
|
+
}
|
|
53
|
+
return AGENT_TEMPLATES_DIR_FALLBACK;
|
|
54
|
+
}
|
|
46
55
|
async function loadAgentTemplates() {
|
|
47
|
-
|
|
48
|
-
|
|
56
|
+
const templatesDir = getAgentTemplatesDir();
|
|
57
|
+
if (!existsSync(templatesDir)) {
|
|
58
|
+
console.warn("Agent templates directory not found:", templatesDir);
|
|
49
59
|
return [];
|
|
50
60
|
}
|
|
51
61
|
const templates = [];
|
|
52
|
-
const files = readdirSync(
|
|
62
|
+
const files = readdirSync(templatesDir);
|
|
53
63
|
for (const file of files) {
|
|
54
64
|
if (!file.endsWith(".json")) continue;
|
|
55
65
|
try {
|
|
56
|
-
const filePath = join(
|
|
66
|
+
const filePath = join(templatesDir, file);
|
|
57
67
|
const content = readFileSync(filePath, "utf-8");
|
|
58
68
|
const template = JSON.parse(content);
|
|
59
69
|
const recommendation = {
|
package/dist/chunks/package.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccjk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.1.
|
|
4
|
+
"version": "8.1.4",
|
|
5
5
|
"packageManager": "pnpm@10.17.1",
|
|
6
6
|
"description": "Ultimate AI Development Tool - Code Tool Abstraction Layer with 83% Token Savings - Now with Cloud Sync, Hot-Reload Skills, Multi-Agent Orchestration, and Full Claude Code CLI 2.1+ Compatibility",
|
|
7
7
|
"author": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/claude-code-settings",
|
|
3
|
-
"description": "Default Claude Code settings.json template for CCJK
|
|
2
|
+
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
|
3
|
+
"description": "Default Claude Code settings.json template for CCJK v8.1.2 - Supports Claude Code CLI 2.0-2.1",
|
|
4
4
|
|
|
5
5
|
"model": "default",
|
|
6
6
|
|
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
|
|
14
14
|
"language": "",
|
|
15
15
|
|
|
16
|
-
"plansDirectory": null,
|
|
17
|
-
|
|
18
16
|
"showTurnDuration": false,
|
|
19
17
|
|
|
20
18
|
"respectGitignore": true,
|
|
@@ -31,6 +29,7 @@
|
|
|
31
29
|
},
|
|
32
30
|
|
|
33
31
|
"fileSuggestion": {
|
|
32
|
+
"type": "command",
|
|
34
33
|
"command": "git"
|
|
35
34
|
},
|
|
36
35
|
|
|
@@ -38,7 +37,7 @@
|
|
|
38
37
|
|
|
39
38
|
"disallowedTools": [],
|
|
40
39
|
|
|
41
|
-
"attribution":
|
|
40
|
+
"attribution": {},
|
|
42
41
|
|
|
43
42
|
"index": {
|
|
44
43
|
"maxFiles": 10000,
|
|
@@ -49,16 +48,16 @@
|
|
|
49
48
|
|
|
50
49
|
"permissions": {
|
|
51
50
|
"allow": [
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
51
|
+
"AllowEdit",
|
|
52
|
+
"AllowWrite",
|
|
53
|
+
"AllowRead",
|
|
54
|
+
"AllowExec",
|
|
55
|
+
"AllowCreateProcess",
|
|
56
|
+
"AllowKillProcess",
|
|
57
|
+
"AllowNetworkAccess",
|
|
58
|
+
"AllowFileSystemAccess",
|
|
59
|
+
"AllowShellAccess",
|
|
60
|
+
"AllowHttpAccess"
|
|
62
61
|
]
|
|
63
62
|
},
|
|
64
63
|
|