cc-hub-cli 1.1.9 → 1.1.10

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1056,7 +1056,7 @@ function execClaude(profileName, p, extraArgs) {
1056
1056
  ).then(({ baseUrl, stop }) => {
1057
1057
  env.ANTHROPIC_BASE_URL = baseUrl;
1058
1058
  debug(`execClaude: proxy running at ${baseUrl}`);
1059
- const child = spawn(cmd[0], cmd.slice(1), { stdio: "inherit", env });
1059
+ const child = spawn(cmd[0], cmd.slice(1), { stdio: "inherit", env, shell: process.platform === "win32" });
1060
1060
  child.on("close", (code) => {
1061
1061
  stop();
1062
1062
  process.exit(code ?? 1);
@@ -1069,7 +1069,8 @@ function execClaude(profileName, p, extraArgs) {
1069
1069
  } else {
1070
1070
  const result = spawnSync2(cmd[0], cmd.slice(1), {
1071
1071
  stdio: "inherit",
1072
- env
1072
+ env,
1073
+ shell: process.platform === "win32"
1073
1074
  });
1074
1075
  process.exit(result.status ?? 1);
1075
1076
  }
@@ -1085,7 +1086,8 @@ function execClaudeBuiltIn(extraArgs) {
1085
1086
  info(`Launching Claude with built-in official models: binary=${binary}`);
1086
1087
  const result = spawnSync2(cmd[0], cmd.slice(1), {
1087
1088
  stdio: "inherit",
1088
- env
1089
+ env,
1090
+ shell: process.platform === "win32"
1089
1091
  });
1090
1092
  process.exit(result.status ?? 1);
1091
1093
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-hub-cli",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Manage Claude CLI profiles, hooks, and sessions",
5
5
  "type": "module",
6
6
  "bin": {