@kevisual/cli 0.0.79 → 0.0.80
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/envision.js +21 -2
- package/package.json +1 -1
package/dist/envision.js
CHANGED
|
@@ -22327,8 +22327,8 @@ InitEnv.init();
|
|
|
22327
22327
|
var version = useContextKey("version", () => {
|
|
22328
22328
|
let version2 = "0.0.64";
|
|
22329
22329
|
try {
|
|
22330
|
-
if ("0.0.
|
|
22331
|
-
version2 = "0.0.
|
|
22330
|
+
if ("0.0.80")
|
|
22331
|
+
version2 = "0.0.80";
|
|
22332
22332
|
} catch (e) {}
|
|
22333
22333
|
return version2;
|
|
22334
22334
|
});
|
|
@@ -33978,6 +33978,24 @@ var changeGLM = (token2) => {
|
|
|
33978
33978
|
}
|
|
33979
33979
|
};
|
|
33980
33980
|
};
|
|
33981
|
+
var changeNoCheck = () => {
|
|
33982
|
+
const homeDir = os4.homedir();
|
|
33983
|
+
const claudeConfigPath = path14.join(homeDir, ".claude.json");
|
|
33984
|
+
let claudeConfig = {};
|
|
33985
|
+
if (fs18.existsSync(claudeConfigPath)) {
|
|
33986
|
+
const content = fs18.readFileSync(claudeConfigPath, "utf-8");
|
|
33987
|
+
try {
|
|
33988
|
+
claudeConfig = JSON.parse(content);
|
|
33989
|
+
} catch {
|
|
33990
|
+
claudeConfig = {};
|
|
33991
|
+
}
|
|
33992
|
+
}
|
|
33993
|
+
claudeConfig = {
|
|
33994
|
+
...claudeConfig,
|
|
33995
|
+
hasCompletedOnboarding: true
|
|
33996
|
+
};
|
|
33997
|
+
fs18.writeFileSync(claudeConfigPath, JSON.stringify(claudeConfig, null, 2));
|
|
33998
|
+
};
|
|
33981
33999
|
var modelConfig = {
|
|
33982
34000
|
minimax: changeMinimax,
|
|
33983
34001
|
glm: changeGLM
|
|
@@ -34011,6 +34029,7 @@ var command11 = new Command("cc").description("切换claude code模型,支持G
|
|
|
34011
34029
|
const updateConfig = modelConfig[selectedModel]();
|
|
34012
34030
|
Object.assign(config2, updateConfig);
|
|
34013
34031
|
saveConfig(configPath2, config2);
|
|
34032
|
+
changeNoCheck();
|
|
34014
34033
|
console.log(`已切换到模型: ${chalk2.green(selectedModel)}`);
|
|
34015
34034
|
console.log(`配置已保存到: ${configPath2}`);
|
|
34016
34035
|
});
|