ccjk 8.0.5 → 8.0.7
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/ccjk-all.mjs +32 -12
- package/dist/chunks/package.mjs +1 -1
- package/package.json +1 -1
package/dist/chunks/ccjk-all.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import ansis from 'ansis';
|
|
2
2
|
import consola from 'consola';
|
|
3
3
|
import { i18n, ensureI18nInitialized } from './index.mjs';
|
|
4
|
-
import { promises } from 'node:fs';
|
|
5
|
-
import { join } from 'node:path';
|
|
4
|
+
import { promises, readFileSync } from 'node:fs';
|
|
5
|
+
import { join, dirname } from 'node:path';
|
|
6
6
|
import { createHash } from 'node:crypto';
|
|
7
7
|
import { c as createCompleteCloudClient, a as ccjkSkills } from './ccjk-skills.mjs';
|
|
8
8
|
import { ccjkMcp } from './ccjk-mcp.mjs';
|
|
9
9
|
import { ccjkAgents } from './ccjk-agents.mjs';
|
|
10
10
|
import { ccjkHooks } from './ccjk-hooks.mjs';
|
|
11
|
+
import { fileURLToPath } from 'node:url';
|
|
11
12
|
import { a as analyzeProject } from '../shared/ccjk.CsujU3aC.mjs';
|
|
12
13
|
import 'node:process';
|
|
13
|
-
import 'node:url';
|
|
14
14
|
import 'i18next';
|
|
15
15
|
import 'i18next-fs-backend';
|
|
16
16
|
import 'pathe';
|
|
@@ -38,6 +38,9 @@ import 'url';
|
|
|
38
38
|
import 'module';
|
|
39
39
|
import 'smol-toml';
|
|
40
40
|
|
|
41
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
42
|
+
const packageJson = JSON.parse(readFileSync(join(__dirname, "../../package.json"), "utf-8"));
|
|
43
|
+
const CCJK_VERSION = packageJson.version;
|
|
41
44
|
class CloudSetupOrchestrator {
|
|
42
45
|
cloudClient;
|
|
43
46
|
logger = consola.withTag("cloud-setup");
|
|
@@ -112,11 +115,15 @@ class CloudSetupOrchestrator {
|
|
|
112
115
|
*/
|
|
113
116
|
generateProjectFingerprint(analysis) {
|
|
114
117
|
const hash = createHash("sha256");
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
const depNames = analysis.dependencies?.direct.map((d) => d.name).join(",") || "";
|
|
119
|
+
const devDepNames = analysis.dependencies?.direct.filter((d) => d.isDev).map((d) => d.name).join(",") || "";
|
|
120
|
+
const frameworkNames = analysis.frameworks?.map((f) => f.name).join(",") || "";
|
|
121
|
+
const languageNames = analysis.languages?.map((l) => l.language).join(",") || "";
|
|
122
|
+
hash.update(depNames);
|
|
123
|
+
hash.update(devDepNames);
|
|
117
124
|
hash.update(analysis.projectType || "");
|
|
118
|
-
hash.update(
|
|
119
|
-
hash.update(
|
|
125
|
+
hash.update(frameworkNames);
|
|
126
|
+
hash.update(languageNames);
|
|
120
127
|
return hash.digest("hex");
|
|
121
128
|
}
|
|
122
129
|
/**
|
|
@@ -148,12 +155,25 @@ class CloudSetupOrchestrator {
|
|
|
148
155
|
}
|
|
149
156
|
const request = {
|
|
150
157
|
projectRoot: options.targetDir || process.cwd(),
|
|
151
|
-
dependencies: analysis.dependencies,
|
|
152
|
-
devDependencies: analysis.devDependencies,
|
|
153
|
-
gitRemote: analysis.gitRemote,
|
|
154
158
|
language: options.lang,
|
|
155
|
-
ccjkVersion:
|
|
159
|
+
ccjkVersion: CCJK_VERSION
|
|
156
160
|
};
|
|
161
|
+
if (analysis.dependencies?.direct) {
|
|
162
|
+
const deps = {};
|
|
163
|
+
const devDeps = {};
|
|
164
|
+
for (const dep of analysis.dependencies.direct) {
|
|
165
|
+
if (dep.isDev) {
|
|
166
|
+
devDeps[dep.name] = dep.version || "*";
|
|
167
|
+
} else {
|
|
168
|
+
deps[dep.name] = dep.version || "*";
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
request.dependencies = deps;
|
|
172
|
+
request.devDependencies = devDeps;
|
|
173
|
+
}
|
|
174
|
+
if (analysis.gitRemote) {
|
|
175
|
+
request.gitRemote = analysis.gitRemote;
|
|
176
|
+
}
|
|
157
177
|
try {
|
|
158
178
|
const response = await this.cloudClient.analyzeProject(request);
|
|
159
179
|
const recommendations = {
|
|
@@ -562,7 +582,7 @@ class CloudSetupOrchestrator {
|
|
|
562
582
|
]
|
|
563
583
|
},
|
|
564
584
|
clientInfo: {
|
|
565
|
-
ccjkVersion:
|
|
585
|
+
ccjkVersion: CCJK_VERSION,
|
|
566
586
|
os: process.platform,
|
|
567
587
|
nodeVersion: process.version
|
|
568
588
|
},
|
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.0.
|
|
4
|
+
"version": "8.0.7",
|
|
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": {
|