claw-subagent-service 0.0.137 → 0.0.138

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.137",
3
+ "version": "0.0.138",
4
4
  "description": "虾说智能助手",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -59,6 +59,14 @@ function fixShellScriptLineEndings() {
59
59
  fixedCount++;
60
60
  console.log(`[postinstall] 已修复 ${file} 换行符(CRLF → LF)`);
61
61
  }
62
+ // 确保脚本有执行权限
63
+ try {
64
+ fs.accessSync(filePath, fs.constants.X_OK);
65
+ } catch (e) {
66
+ // 没有执行权限,添加
67
+ fs.chmodSync(filePath, 0o755);
68
+ console.log(`[postinstall] 已添加 ${file} 执行权限`);
69
+ }
62
70
  } catch (e) {
63
71
  console.warn(`[postinstall] 修复 ${file} 失败: ${e.message}`);
64
72
  }