ccg-workflow 1.7.87 → 1.7.88

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/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import cac from 'cac';
3
3
  import ansis from 'ansis';
4
- import { z as diagnoseMcpConfig, A as isWindows, B as readClaudeCodeConfig, C as fixWindowsMcpConfig, D as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, a as i18n, s as showMainMenu, i as init, E as configMcp, F as version } from './shared/ccg-workflow.CJXxHH9w.mjs';
4
+ import { z as diagnoseMcpConfig, A as isWindows, B as readClaudeCodeConfig, C as fixWindowsMcpConfig, D as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, a as i18n, s as showMainMenu, i as init, E as configMcp, F as version } from './shared/ccg-workflow.ZTLL0ziy.mjs';
5
5
  import 'inquirer';
6
6
  import 'node:child_process';
7
7
  import 'node:util';
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as changeLanguage, x as checkForUpdates, y as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, t as getCurrentVersion, v as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, k as installWorkflows, p as migrateToV1_4_0, q as needsMigration, r as readCcgConfig, s as showMainMenu, o as uninstallAceTool, n as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.CJXxHH9w.mjs';
1
+ export { c as changeLanguage, x as checkForUpdates, y as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, t as getCurrentVersion, v as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, k as installWorkflows, p as migrateToV1_4_0, q as needsMigration, r as readCcgConfig, s as showMainMenu, o as uninstallAceTool, n as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.ZTLL0ziy.mjs';
2
2
  import 'ansis';
3
3
  import 'inquirer';
4
4
  import 'node:child_process';
@@ -10,7 +10,7 @@ import { parse, stringify } from 'smol-toml';
10
10
  import i18next from 'i18next';
11
11
  import ora from 'ora';
12
12
 
13
- const version = "1.7.87";
13
+ const version = "1.7.88";
14
14
 
15
15
  function cmd(id, order, category, name, nameEn, description, descriptionEn, cmdOverride) {
16
16
  return {
@@ -3277,23 +3277,41 @@ const __filename$1 = fileURLToPath(import.meta.url);
3277
3277
  const __dirname$1 = dirname(__filename$1);
3278
3278
  function findPackageRoot(startDir) {
3279
3279
  let dir = startDir;
3280
- for (let i = 0; i < 5; i++) {
3280
+ while (true) {
3281
3281
  if (fs.existsSync(join(dir, "package.json"))) {
3282
3282
  return dir;
3283
3283
  }
3284
- dir = dirname(dir);
3284
+ const parentDir = dirname(dir);
3285
+ if (parentDir === dir) {
3286
+ return dir;
3287
+ }
3288
+ dir = parentDir;
3285
3289
  }
3286
- return startDir;
3287
3290
  }
3288
3291
  const PACKAGE_ROOT = findPackageRoot(__dirname$1);
3289
- async function getCurrentVersion() {
3292
+ async function readPackageVersion(pkgPath) {
3290
3293
  try {
3291
- const pkgPath = join(PACKAGE_ROOT, "package.json");
3294
+ if (!await fs.pathExists(pkgPath)) {
3295
+ return null;
3296
+ }
3292
3297
  const pkg = await fs.readJSON(pkgPath);
3293
- return pkg.version || "0.0.0";
3298
+ return pkg.version || null;
3294
3299
  } catch {
3295
- return "0.0.0";
3300
+ return null;
3301
+ }
3302
+ }
3303
+ async function getCurrentVersion() {
3304
+ const relativePkgPath = fileURLToPath(new URL("../../package.json", import.meta.url));
3305
+ const relativeVersion = await readPackageVersion(relativePkgPath);
3306
+ if (relativeVersion) {
3307
+ return relativeVersion;
3308
+ }
3309
+ const rootPkgPath = join(PACKAGE_ROOT, "package.json");
3310
+ const rootVersion = await readPackageVersion(rootPkgPath);
3311
+ if (rootVersion) {
3312
+ return rootVersion;
3296
3313
  }
3314
+ return process.env.npm_package_version || "0.0.0";
3297
3315
  }
3298
3316
  async function getLatestVersion(packageName = "ccg-workflow") {
3299
3317
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccg-workflow",
3
- "version": "1.7.87",
3
+ "version": "1.7.88",
4
4
  "description": "Claude + Codex + Gemini multi-model collaboration system - smart routing development workflow",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.17.1",