@aiyiran/myclaw 1.1.12 → 1.1.13
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/gateway.js +0 -10
- package/package.json +1 -1
package/gateway.js
CHANGED
|
@@ -143,16 +143,6 @@ function start() {
|
|
|
143
143
|
// 等待启动完成
|
|
144
144
|
execSync(isWin ? 'timeout /t 3 /nobreak >nul' : 'sleep 3', { stdio: 'ignore' });
|
|
145
145
|
|
|
146
|
-
// 注册守卫(崩溃自动重启、开机自启)
|
|
147
|
-
if (!isWin) {
|
|
148
|
-
try {
|
|
149
|
-
execSync('openclaw gateway install', { stdio: 'pipe', timeout: 10000 });
|
|
150
|
-
console.log('[守卫] ' + colors.green + 'LaunchAgent 已注册,崩溃/重启会自动拉起' + colors.nc);
|
|
151
|
-
} catch (err) {
|
|
152
|
-
console.log('[守卫] ' + colors.yellow + '注册失败: ' + (err.message || err) + colors.nc);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
146
|
// 健康检查
|
|
157
147
|
try {
|
|
158
148
|
execSync('openclaw health', { stdio: 'pipe', timeout: 5000 });
|