claw-subagent-service 0.0.104 → 0.0.105

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": "claw-subagent-service",
3
- "version": "0.0.104",
3
+ "version": "0.0.105",
4
4
  "description": "虾说智能助手",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -389,6 +389,11 @@ class OpenClawClient {
389
389
  this.log?.error(`[OpenClawClient] 修改后请重启 OpenClaw gateway: openclaw gateway`);
390
390
  } else {
391
391
  this.log?.error(`[OpenClawClient] SSE 请求失败: ${err.message}`);
392
+ // 打印详细错误响应
393
+ if (err.response) {
394
+ this.log?.error(`[OpenClawClient] 错误状态码: ${err.response.status}`);
395
+ this.log?.error(`[OpenClawClient] 错误响应数据: ${JSON.stringify(err.response.data)}`);
396
+ }
392
397
  }
393
398
  // 不再内部调用 onError,让错误通过 Promise reject 向上传播,便于调用方回退
394
399
  throw err;