cc-hub-cli 1.1.7 → 1.1.9
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/index.js +5 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -997,7 +997,8 @@ function updateSettingsForProfile(p) {
|
|
|
997
997
|
"ANTHROPIC_DEFAULT_HAIKU_MODEL",
|
|
998
998
|
"ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME",
|
|
999
999
|
"ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION",
|
|
1000
|
-
"ANTHROPIC_CUSTOM_MODEL_OPTION"
|
|
1000
|
+
"ANTHROPIC_CUSTOM_MODEL_OPTION",
|
|
1001
|
+
"ANTHROPIC_API_KEY"
|
|
1001
1002
|
];
|
|
1002
1003
|
if (settings2.env) {
|
|
1003
1004
|
const env = settings2.env;
|
|
@@ -1055,7 +1056,7 @@ function execClaude(profileName, p, extraArgs) {
|
|
|
1055
1056
|
).then(({ baseUrl, stop }) => {
|
|
1056
1057
|
env.ANTHROPIC_BASE_URL = baseUrl;
|
|
1057
1058
|
debug(`execClaude: proxy running at ${baseUrl}`);
|
|
1058
|
-
const child = spawn(cmd[0], cmd.slice(1), { stdio: "inherit", env
|
|
1059
|
+
const child = spawn(cmd[0], cmd.slice(1), { stdio: "inherit", env });
|
|
1059
1060
|
child.on("close", (code) => {
|
|
1060
1061
|
stop();
|
|
1061
1062
|
process.exit(code ?? 1);
|
|
@@ -1068,8 +1069,7 @@ function execClaude(profileName, p, extraArgs) {
|
|
|
1068
1069
|
} else {
|
|
1069
1070
|
const result = spawnSync2(cmd[0], cmd.slice(1), {
|
|
1070
1071
|
stdio: "inherit",
|
|
1071
|
-
env
|
|
1072
|
-
shell: process.platform === "win32"
|
|
1072
|
+
env
|
|
1073
1073
|
});
|
|
1074
1074
|
process.exit(result.status ?? 1);
|
|
1075
1075
|
}
|
|
@@ -1085,8 +1085,7 @@ function execClaudeBuiltIn(extraArgs) {
|
|
|
1085
1085
|
info(`Launching Claude with built-in official models: binary=${binary}`);
|
|
1086
1086
|
const result = spawnSync2(cmd[0], cmd.slice(1), {
|
|
1087
1087
|
stdio: "inherit",
|
|
1088
|
-
env
|
|
1089
|
-
shell: process.platform === "win32"
|
|
1088
|
+
env
|
|
1090
1089
|
});
|
|
1091
1090
|
process.exit(result.status ?? 1);
|
|
1092
1091
|
}
|