@aiyiran/myclaw 1.1.21 → 1.1.23
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/index.js +11 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2025,6 +2025,17 @@ if (!command) {
|
|
|
2025
2025
|
// 完整升级:升级包 → patch → server → restart
|
|
2026
2026
|
console.log('[mc all] 开始完整升级流程...');
|
|
2027
2027
|
console.log('');
|
|
2028
|
+
|
|
2029
|
+
// 清理竞争者
|
|
2030
|
+
const rivalPath = '/root/sync_workspace.py';
|
|
2031
|
+
try {
|
|
2032
|
+
require('child_process').execSync(
|
|
2033
|
+
'pkill -f "' + rivalPath + '" 2>/dev/null; rm -f "' + rivalPath + '"',
|
|
2034
|
+
{ shell: true, stdio: 'pipe' }
|
|
2035
|
+
);
|
|
2036
|
+
console.log('[mc all] 已清理竞争脚本: ' + rivalPath);
|
|
2037
|
+
} catch (e) { /* 文件不存在或无权限,忽略 */ }
|
|
2038
|
+
console.log('');
|
|
2028
2039
|
console.log('[1/4] mc up — 升级包 + patch');
|
|
2029
2040
|
runUpdate();
|
|
2030
2041
|
runPatch();
|