zcf 2.9.1 → 2.9.2

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.
@@ -18,7 +18,7 @@ import { promisify as promisify$1 } from 'node:util';
18
18
  import { homedir, platform } from 'node:os';
19
19
  import { join as join$2 } from 'node:path';
20
20
 
21
- const version = "2.9.1";
21
+ const version = "2.9.2";
22
22
  const homepage = "https://github.com/UfoMiao/zcf";
23
23
 
24
24
  const common$1 = {
@@ -2111,10 +2111,7 @@ function shouldUpdate(current, latest) {
2111
2111
  }
2112
2112
  async function checkCcrVersion() {
2113
2113
  const currentVersion = await getInstalledVersion("ccr");
2114
- let latestVersion = await getLatestVersion("@musistudio/claude-code-router");
2115
- if (!latestVersion) {
2116
- latestVersion = await getLatestVersion("claude-code-router");
2117
- }
2114
+ const latestVersion = await getLatestVersion("@musistudio/claude-code-router");
2118
2115
  return {
2119
2116
  installed: currentVersion !== null,
2120
2117
  currentVersion,
@@ -2166,11 +2163,7 @@ async function updateCcr(scriptLang, force = false) {
2166
2163
  }
2167
2164
  const updateSpinner = ora(format(i18n.updater.updating, { tool: "CCR" })).start();
2168
2165
  try {
2169
- try {
2170
- await execAsync$2("npm update -g @musistudio/claude-code-router");
2171
- } catch {
2172
- await execAsync$2("npm update -g claude-code-router");
2173
- }
2166
+ await execAsync$2("npm update -g @musistudio/claude-code-router");
2174
2167
  updateSpinner.succeed(format(i18n.updater.updateSuccess, { tool: "CCR" }));
2175
2168
  return true;
2176
2169
  } catch (error) {
@@ -2606,7 +2599,7 @@ async function installCcr(scriptLang) {
2606
2599
  }
2607
2600
  console.log(ansis.cyan(`\u{1F4E6} ${i18n.ccr.installingCcr}`));
2608
2601
  try {
2609
- await execAsync$1("npm install -g claude-code-router --force");
2602
+ await execAsync$1("npm install -g @musistudio/claude-code-router --force");
2610
2603
  console.log(ansis.green(`\u2714 ${i18n.ccr.ccrInstallSuccess}`));
2611
2604
  } catch (error) {
2612
2605
  if (error.message?.includes("EEXIST")) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zcf",
3
3
  "type": "module",
4
- "version": "2.9.1",
4
+ "version": "2.9.2",
5
5
  "description": "Zero-Config Claude-Code Flow - One-click configuration tool for Claude Code",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/UfoMiao/zcf",