@xiaozhi-client/cli 1.9.6-beta.0 → 1.9.6-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaozhi-client/cli",
3
- "version": "1.9.6-beta.0",
3
+ "version": "1.9.6-beta.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "consola": "^3.4.2",
21
- "@xiaozhi-client/config": "1.9.6-beta.0"
21
+ "@xiaozhi-client/config": "1.9.6-beta.1"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "^24.3.0",
@@ -177,7 +177,15 @@ export class ServiceManagerImpl implements IServiceManager {
177
177
  // 重新加载配置管理器
178
178
  this.configManager.reloadConfig();
179
179
  } catch (error) {
180
- throw ConfigError.configNotFound();
180
+ // 保留原始错误信息,方便调试
181
+ const errorMessage =
182
+ error instanceof Error ? error.message : String(error);
183
+ console.error(`❌ 创建默认配置失败: ${errorMessage}`);
184
+
185
+ // 抛出包含原始错误信息的异常
186
+ throw new ConfigError(
187
+ `无法创建默认配置: ${errorMessage}\n请手动运行 'xiaozhi create' 创建配置文件`
188
+ );
181
189
  }
182
190
  }
183
191