jialing-code 1.3.9 → 1.3.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.
@@ -6976,6 +6976,19 @@ async function run() {
6976
6976
  profileCheckpoint("preAction_after_mdm");
6977
6977
  await init();
6978
6978
  profileCheckpoint("preAction_after_init");
6979
+ const pendingCompanion = globalThis.__pendingCompanion;
6980
+ if (pendingCompanion) {
6981
+ delete globalThis.__pendingCompanion;
6982
+ saveGlobalConfig((current) => ({
6983
+ ...current,
6984
+ companion: {
6985
+ name: pendingCompanion.name,
6986
+ personality: pendingCompanion.personality,
6987
+ hatchedAt: pendingCompanion.hatchedAt
6988
+ },
6989
+ companionSpeciesOverride: pendingCompanion.species
6990
+ }));
6991
+ }
6979
6992
  if (!isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_TERMINAL_TITLE)) {
6980
6993
  process.title = "claude";
6981
6994
  }
package/dist/cli.js CHANGED
@@ -58,6 +58,9 @@ async function main() {
58
58
  if (args[0] === "--setup" || args[0] === "setup") {
59
59
  const config = await runSetupWizard();
60
60
  applyConfig(config);
61
+ if (config.companion) {
62
+ globalThis.__pendingCompanion = config.companion;
63
+ }
61
64
  args.shift();
62
65
  const setupIdx = process.argv.indexOf("--setup");
63
66
  if (setupIdx !== -1)
@@ -69,6 +72,9 @@ async function main() {
69
72
  } else if (!hasConfig() && !process.env.ANTHROPIC_API_KEY && args[0] !== "-p" && args[0] !== "--print") {
70
73
  const config = await runSetupWizard();
71
74
  applyConfig(config);
75
+ if (config.companion) {
76
+ globalThis.__pendingCompanion = config.companion;
77
+ }
72
78
  } else if (hasConfig()) {
73
79
  const config = loadConfig();
74
80
  if (config)
@@ -217,7 +223,7 @@ async function main() {
217
223
  const { startCapturingEarlyInput } = await import("./chunk-ywxd4qw4.js");
218
224
  startCapturingEarlyInput();
219
225
  profileCheckpoint("cli_before_main_import");
220
- const { main: cliMain } = await import("./chunk-gwrr2ne6.js");
226
+ const { main: cliMain } = await import("./chunk-7r3nvnj7.js");
221
227
  profileCheckpoint("cli_after_main_import");
222
228
  await cliMain();
223
229
  profileCheckpoint("cli_after_main_complete");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jialing-code",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "description": "嘉陵江-code — 终端 AI 编程助手,支持 22+ 大模型厂商,默认本地 Ollama 零配置启动",
5
5
  "type": "module",
6
6
  "author": "嘉陵江-code",