@zhongqian97-code/ecode 0.5.44 → 0.5.45

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -334,7 +334,7 @@ var SessionRuntime = class {
334
334
  this.id = opts.sessionId ?? randomUUID2();
335
335
  this.config = config2;
336
336
  this.llm = opts.llm ?? createProvider(resolveActiveProfile(config2));
337
- this.model = config2.model;
337
+ this.model = resolveActiveProfile(config2).model;
338
338
  this.autoApproveNormal = opts.autoApproveNormal ?? false;
339
339
  if (opts.logFilePath) {
340
340
  this.logger = createLoggerAtPath(opts.logFilePath);
@@ -857,7 +857,7 @@ Press Ctrl+C to stop.
857
857
  process.exit(0);
858
858
  });
859
859
  } else {
860
- if (!finalConfig.apiKey) {
860
+ if (!resolveActiveProfile(finalConfig).apiKey) {
861
861
  console.error(
862
862
  "Error: no API key configured.\nSet ECODE_API_KEY or add apiKey to ~/.ecode/config.json"
863
863
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhongqian97-code/ecode",
3
- "version": "0.5.44",
3
+ "version": "0.5.45",
4
4
  "description": "A minimal Claude Code clone with REPL interface and bash tool calling",
5
5
  "type": "module",
6
6
  "author": "zhongqian97-code",