ccjk 8.0.6 → 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.
@@ -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");
@@ -153,7 +156,7 @@ class CloudSetupOrchestrator {
153
156
  const request = {
154
157
  projectRoot: options.targetDir || process.cwd(),
155
158
  language: options.lang,
156
- ccjkVersion: require("../../package.json").version
159
+ ccjkVersion: CCJK_VERSION
157
160
  };
158
161
  if (analysis.dependencies?.direct) {
159
162
  const deps = {};
@@ -579,7 +582,7 @@ class CloudSetupOrchestrator {
579
582
  ]
580
583
  },
581
584
  clientInfo: {
582
- ccjkVersion: require("../../package.json").version,
585
+ ccjkVersion: CCJK_VERSION,
583
586
  os: process.platform,
584
587
  nodeVersion: process.version
585
588
  },
@@ -1,4 +1,4 @@
1
- const version = "8.0.6";
1
+ const version = "8.0.7";
2
2
  const homepage = "https://github.com/miounet11/ccjk";
3
3
 
4
4
  export { homepage, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ccjk",
3
3
  "type": "module",
4
- "version": "8.0.6",
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": {