jialing-code 1.3.6 → 1.3.7
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.
|
@@ -298,15 +298,12 @@ var SPECIES_LIST = [
|
|
|
298
298
|
"mushroom",
|
|
299
299
|
"chonk"
|
|
300
300
|
];
|
|
301
|
-
function
|
|
302
|
-
return join(homedir(), ".claude");
|
|
303
|
-
}
|
|
304
|
-
function getClaudeConfigFile() {
|
|
305
|
-
return join(getClaudeConfigDir(), "config.json");
|
|
301
|
+
function getClaudeGlobalConfigFile() {
|
|
302
|
+
return join(homedir(), ".claude.json");
|
|
306
303
|
}
|
|
307
304
|
function readClaudeConfig() {
|
|
308
305
|
try {
|
|
309
|
-
const file =
|
|
306
|
+
const file = getClaudeGlobalConfigFile();
|
|
310
307
|
if (!existsSync(file))
|
|
311
308
|
return {};
|
|
312
309
|
return JSON.parse(readFileSync(file, "utf-8"));
|
|
@@ -315,10 +312,7 @@ function readClaudeConfig() {
|
|
|
315
312
|
}
|
|
316
313
|
}
|
|
317
314
|
function writeClaudeConfig(config) {
|
|
318
|
-
|
|
319
|
-
if (!existsSync(dir))
|
|
320
|
-
mkdirSync(dir, { recursive: true });
|
|
321
|
-
writeFileSync(getClaudeConfigFile(), JSON.stringify(config, null, 2));
|
|
315
|
+
writeFileSync(getClaudeGlobalConfigFile(), JSON.stringify(config, null, 2));
|
|
322
316
|
}
|
|
323
317
|
async function setupCompanion(rl) {
|
|
324
318
|
const wantPet = await selectMenu(rl, "\u662F\u5426\u914D\u7F6E\u7F16\u7A0B\u5BA0\u7269\u4F34\u4FA3\uFF1F", [
|
package/dist/cli.js
CHANGED
|
@@ -54,7 +54,7 @@ async function main() {
|
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
56
|
{
|
|
57
|
-
const { loadConfig, hasConfig, runSetupWizard, applyConfig } = await import("./chunk-
|
|
57
|
+
const { loadConfig, hasConfig, runSetupWizard, applyConfig } = await import("./chunk-0mrn7e26.js");
|
|
58
58
|
if (args[0] === "--setup" || args[0] === "setup") {
|
|
59
59
|
const config = await runSetupWizard();
|
|
60
60
|
applyConfig(config);
|